@opensearch-project/opensearch 3.6.0 → 3.9.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 +288 -0
- package/api/OpenSearchApi.js +202 -139
- package/api/_core/bulk.d.ts +2 -7
- package/api/_core/bulk.js +3 -3
- package/api/_core/bulkStream.d.ts +2 -7
- package/api/_core/bulkStream.js +2 -2
- package/api/_core/clearScroll.js +3 -3
- package/api/_core/count.js +3 -3
- package/api/_core/create.js +4 -4
- package/api/_core/createPit.d.ts +7 -4
- package/api/_core/createPit.js +8 -4
- package/api/_core/delete.js +4 -4
- package/api/_core/deleteAllPits.js +1 -1
- package/api/_core/deleteByQuery.js +3 -3
- package/api/_core/deleteByQueryRethrottle.js +1 -1
- package/api/_core/deletePit.js +1 -1
- package/api/_core/deleteScript.js +1 -1
- package/api/_core/exists.js +4 -4
- package/api/_core/existsSource.js +4 -4
- package/api/_core/explain.d.ts +3 -1
- package/api/_core/explain.js +3 -3
- package/api/_core/fieldCaps.js +4 -4
- package/api/_core/get.d.ts +3 -1
- package/api/_core/get.js +5 -5
- package/api/_core/getAllPits.js +1 -1
- package/api/_core/getScript.js +1 -1
- package/api/_core/getScriptContext.js +1 -1
- package/api/_core/getScriptLanguages.js +1 -1
- package/api/_core/getSource.d.ts +1 -1
- package/api/_core/getSource.js +5 -5
- package/api/_core/index.js +4 -4
- package/api/_core/info.js +1 -1
- package/api/_core/mget.js +4 -4
- package/api/_core/msearch.d.ts +1 -0
- package/api/_core/msearch.js +3 -2
- package/api/_core/msearchTemplate.js +2 -2
- package/api/_core/mtermvectors.js +9 -9
- package/api/_core/ping.js +1 -1
- package/api/_core/putScript.js +1 -1
- package/api/_core/rankEval.js +2 -2
- package/api/_core/reindex.js +1 -1
- package/api/_core/reindexRethrottle.js +1 -1
- package/api/_core/renderSearchTemplate.js +1 -1
- package/api/_core/scriptsPainlessExecute.d.ts +1 -1
- package/api/_core/scriptsPainlessExecute.js +1 -1
- package/api/_core/scroll.d.ts +1 -1
- package/api/_core/scroll.js +1 -1
- package/api/_core/search.d.ts +6 -3
- package/api/_core/search.js +3 -3
- package/api/_core/searchShards.js +2 -2
- package/api/_core/searchTemplate.d.ts +4 -17
- package/api/_core/searchTemplate.js +5 -3
- package/api/_core/termvectors.js +9 -9
- package/api/_core/update.js +2 -2
- package/api/_core/updateByQuery.js +3 -3
- package/api/_core/updateByQueryRethrottle.js +1 -1
- package/api/_types/_common.aggregations.d.ts +232 -175
- package/api/_types/_common.analysis.d.ts +10 -3
- package/api/_types/_common.d.ts +67 -47
- package/api/_types/_common.mapping.d.ts +34 -2
- package/api/_types/_common.query_dsl.d.ts +48 -24
- package/api/_types/_core.bulk.d.ts +17 -1
- package/api/_types/_core.explain.d.ts +1 -1
- package/api/_types/_core.get.d.ts +7 -3
- package/api/_types/_core.msearch.d.ts +1 -1
- package/api/_types/_core.pit.d.ts +2 -2
- package/api/_types/_core.search.d.ts +69 -36
- package/api/_types/asynchronous_search._common.d.ts +3 -4
- package/api/_types/cat._common.d.ts +19 -0
- package/api/_types/cat.indices.d.ts +28 -0
- package/api/_types/cat.nodes.d.ts +13 -0
- package/api/_types/cat.shards.d.ts +13 -0
- package/api/_types/cat.thread_pool.d.ts +1 -0
- package/api/_types/cluster.allocation_explain.d.ts +3 -0
- package/api/_types/cluster.decommission_awareness.d.ts +1 -3
- package/api/_types/cluster.pending_tasks.d.ts +2 -0
- package/api/_types/cluster.weighted_routing.d.ts +1 -8
- package/api/_types/flow_framework.common.d.ts +5 -2
- package/api/_types/geospatial._common.d.ts +9 -3
- package/api/_types/index.d.ts +18 -0
- package/api/_types/indices._common.d.ts +69 -16
- package/api/_types/indices.modify_data_stream.d.ts +33 -0
- package/api/_types/ingest._common.d.ts +37 -0
- package/api/_types/ingestion._common.d.ts +70 -0
- package/api/_types/insights._common.d.ts +8 -35
- package/api/_types/ism._common.d.ts +3 -3
- package/api/_types/knn._common.d.ts +45 -6
- package/api/_types/list._common.d.ts +19 -0
- package/api/_types/ltr._common.d.ts +11 -4
- package/api/_types/ml._common.d.ts +209 -168
- package/api/_types/neural._common.d.ts +146 -11
- package/api/_types/nodes.info.d.ts +8 -2
- package/api/_types/nodes.stats.d.ts +50 -2
- package/api/_types/observability._common.d.ts +0 -16
- package/api/_types/ppl._common.d.ts +19 -0
- package/api/_types/query._common.d.ts +0 -20
- package/api/_types/replication._common.d.ts +4 -1
- package/api/_types/rollups._common.d.ts +2 -0
- package/api/_types/search_pipeline._common.d.ts +33 -0
- package/api/_types/search_relevance._common.d.ts +132 -0
- package/api/_types/security._common.d.ts +25 -16
- package/api/_types/security_analytics.alerts.d.ts +59 -0
- package/api/_types/security_analytics.findings.d.ts +65 -0
- package/api/_types/sm._common.d.ts +3 -39
- package/api/_types/sql._common.d.ts +8 -0
- package/api/_types/transforms._common.d.ts +0 -23
- package/api/_types/ubi._common.d.ts +19 -0
- package/api/_types/wlm._common.d.ts +5 -3
- package/api/asynchronousSearch/_api.js +12 -4
- package/api/asynchronousSearch/delete.js +1 -1
- package/api/asynchronousSearch/get.js +1 -1
- package/api/asynchronousSearch/search.js +1 -1
- package/api/asynchronousSearch/stats.js +1 -1
- package/api/cat/_api.js +58 -30
- package/api/cat/aliases.d.ts +2 -1
- package/api/cat/aliases.js +2 -2
- package/api/cat/allPitSegments.d.ts +2 -1
- package/api/cat/allPitSegments.js +2 -2
- package/api/cat/allocation.d.ts +2 -1
- package/api/cat/allocation.js +2 -2
- package/api/cat/clusterManager.d.ts +2 -1
- package/api/cat/clusterManager.js +2 -2
- package/api/cat/count.d.ts +2 -1
- package/api/cat/count.js +3 -3
- package/api/cat/fielddata.d.ts +2 -1
- package/api/cat/fielddata.js +2 -2
- package/api/cat/health.d.ts +2 -1
- package/api/cat/health.js +2 -2
- package/api/cat/help.js +1 -1
- package/api/cat/indices.d.ts +2 -1
- package/api/cat/indices.js +2 -2
- package/api/cat/master.d.ts +2 -1
- package/api/cat/master.js +2 -2
- package/api/cat/nodeattrs.d.ts +2 -1
- package/api/cat/nodeattrs.js +2 -2
- package/api/cat/nodes.d.ts +2 -1
- package/api/cat/nodes.js +3 -3
- package/api/cat/pendingTasks.d.ts +2 -1
- package/api/cat/pendingTasks.js +3 -3
- package/api/cat/pitSegments.d.ts +2 -1
- package/api/cat/pitSegments.js +2 -2
- package/api/cat/plugins.d.ts +2 -1
- package/api/cat/plugins.js +2 -2
- package/api/cat/recovery.d.ts +2 -1
- package/api/cat/recovery.js +3 -3
- package/api/cat/repositories.d.ts +2 -1
- package/api/cat/repositories.js +2 -2
- package/api/cat/segmentReplication.d.ts +2 -1
- package/api/cat/segmentReplication.js +3 -3
- package/api/cat/segments.d.ts +2 -1
- package/api/cat/segments.js +2 -2
- package/api/cat/shards.d.ts +2 -1
- package/api/cat/shards.js +3 -3
- package/api/cat/snapshots.d.ts +2 -1
- package/api/cat/snapshots.js +3 -3
- package/api/cat/tasks.d.ts +2 -1
- package/api/cat/tasks.js +3 -3
- package/api/cat/templates.d.ts +2 -1
- package/api/cat/templates.js +2 -2
- package/api/cat/threadPool.d.ts +2 -1
- package/api/cat/threadPool.js +2 -2
- package/api/cluster/_api.js +63 -38
- package/api/cluster/allocationExplain.js +1 -1
- package/api/cluster/deleteComponentTemplate.js +2 -2
- package/api/cluster/deleteDecommissionAwareness.js +1 -1
- package/api/cluster/deleteVotingConfigExclusions.js +1 -1
- package/api/cluster/deleteWeightedRouting.d.ts +5 -2
- package/api/cluster/deleteWeightedRouting.js +1 -1
- package/api/cluster/existsComponentTemplate.js +2 -2
- package/api/cluster/getComponentTemplate.js +2 -2
- package/api/cluster/getDecommissionAwareness.d.ts +1 -1
- package/api/cluster/getDecommissionAwareness.js +1 -1
- package/api/cluster/getSettings.js +2 -2
- package/api/cluster/getWeightedRouting.d.ts +3 -1
- package/api/cluster/getWeightedRouting.js +1 -1
- package/api/cluster/health.js +3 -3
- package/api/cluster/pendingTasks.js +2 -2
- package/api/cluster/postVotingConfigExclusions.js +1 -1
- package/api/cluster/putComponentTemplate.js +3 -3
- package/api/cluster/putDecommissionAwareness.js +1 -1
- package/api/cluster/putSettings.js +2 -2
- package/api/cluster/putWeightedRouting.d.ts +5 -2
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/remoteInfo.js +1 -1
- package/api/cluster/reroute.js +2 -2
- package/api/cluster/state.js +3 -3
- package/api/cluster/stats.js +3 -3
- package/api/danglingIndices/_api.js +13 -6
- package/api/danglingIndices/deleteDanglingIndex.js +1 -1
- package/api/danglingIndices/importDanglingIndex.js +1 -1
- package/api/danglingIndices/listDanglingIndices.d.ts +2 -2
- package/api/danglingIndices/listDanglingIndices.js +1 -1
- package/api/flowFramework/_api.js +27 -13
- package/api/flowFramework/create.js +1 -1
- package/api/flowFramework/delete.js +1 -1
- package/api/flowFramework/deprovision.js +1 -1
- package/api/flowFramework/get.js +1 -1
- package/api/flowFramework/getStatus.js +1 -1
- package/api/flowFramework/getSteps.js +1 -1
- package/api/flowFramework/provision.js +1 -1
- package/api/flowFramework/search.js +1 -1
- package/api/flowFramework/searchState.js +1 -1
- package/api/flowFramework/update.js +1 -1
- package/api/geospatial/_api.js +25 -14
- package/api/geospatial/deleteIp2GeoDatasource.js +1 -1
- package/api/geospatial/getIp2GeoDatasource.js +1 -1
- package/api/geospatial/putIp2GeoDatasource.js +1 -1
- package/api/geospatial/putIp2GeoDatasourceSettings.js +1 -1
- package/api/http/_api.js +22 -9
- package/api/index.d.ts +132 -6
- package/api/indices/_api.js +134 -78
- package/api/indices/addBlock.js +1 -1
- package/api/indices/analyze.js +1 -1
- package/api/indices/clearCache.js +3 -3
- package/api/indices/clone.js +1 -1
- package/api/indices/close.js +2 -2
- package/api/indices/create.js +2 -2
- package/api/indices/createDataStream.js +1 -1
- package/api/indices/dataStreamsStats.js +2 -2
- package/api/indices/delete.js +2 -2
- package/api/indices/deleteAlias.js +3 -3
- package/api/indices/deleteDataStream.js +2 -2
- package/api/indices/deleteIndexTemplate.js +2 -2
- package/api/indices/deleteTemplate.js +1 -1
- package/api/indices/exists.js +2 -2
- package/api/indices/existsAlias.js +3 -3
- package/api/indices/existsIndexTemplate.js +2 -2
- package/api/indices/existsTemplate.js +1 -1
- package/api/indices/flush.js +2 -2
- package/api/indices/forcemerge.js +1 -1
- package/api/indices/get.js +2 -2
- package/api/indices/getAlias.js +3 -3
- package/api/indices/getDataStream.js +2 -2
- package/api/indices/getFieldMapping.js +3 -3
- package/api/indices/getIndexTemplate.js +2 -2
- package/api/indices/getMapping.js +2 -2
- package/api/indices/getSettings.js +3 -3
- package/api/indices/getTemplate.js +2 -2
- package/api/indices/getUpgrade.js +2 -2
- package/api/indices/modifyDataStream.d.ts +37 -0
- package/api/indices/modifyDataStream.js +50 -0
- package/api/indices/open.js +2 -2
- package/api/indices/putAlias.js +2 -2
- package/api/indices/putIndexTemplate.js +1 -1
- package/api/indices/putMapping.js +1 -1
- package/api/indices/putSettings.js +2 -2
- package/api/indices/putTemplate.js +1 -1
- package/api/indices/recovery.js +2 -2
- package/api/indices/refresh.js +2 -2
- package/api/indices/resolveIndex.js +1 -1
- package/api/indices/rollover.js +2 -2
- package/api/indices/segments.js +2 -2
- package/api/indices/shardStores.js +5 -5
- package/api/indices/shrink.js +1 -1
- package/api/indices/simulateIndexTemplate.js +1 -1
- package/api/indices/simulateTemplate.js +2 -2
- package/api/indices/split.js +1 -1
- package/api/indices/stats.js +5 -5
- package/api/indices/updateAliases.js +1 -1
- package/api/indices/upgrade.js +2 -2
- package/api/indices/validateQuery.js +2 -2
- package/api/ingest/_api.js +18 -9
- package/api/ingest/deletePipeline.js +1 -1
- package/api/ingest/getPipeline.js +1 -1
- package/api/ingest/processorGrok.js +1 -1
- package/api/ingest/putPipeline.js +1 -1
- package/api/ingest/simulate.js +1 -1
- package/api/ingestion/_api.js +37 -0
- package/api/ingestion/getState.d.ts +34 -0
- package/api/ingestion/getState.js +52 -0
- package/api/ingestion/pause.d.ts +33 -0
- package/api/ingestion/pause.js +51 -0
- package/api/ingestion/resume.d.ts +34 -0
- package/api/ingestion/resume.js +52 -0
- package/api/insights/_api.js +7 -2
- package/api/insights/topQueries.d.ts +1 -1
- package/api/ism/_api.js +40 -24
- package/api/ism/addPolicy.d.ts +1 -1
- package/api/ism/addPolicy.js +2 -2
- package/api/ism/changePolicy.d.ts +1 -1
- package/api/ism/changePolicy.js +2 -2
- package/api/ism/deletePolicy.js +1 -1
- package/api/ism/existsPolicy.js +1 -1
- package/api/ism/explainPolicy.d.ts +1 -1
- package/api/ism/explainPolicy.js +2 -2
- package/api/ism/getPolicies.js +1 -1
- package/api/ism/getPolicy.js +1 -1
- package/api/ism/putPolicies.js +1 -1
- package/api/ism/putPolicy.js +1 -1
- package/api/ism/refreshSearchAnalyzers.d.ts +1 -1
- package/api/ism/refreshSearchAnalyzers.js +2 -2
- package/api/ism/removePolicy.d.ts +1 -1
- package/api/ism/removePolicy.js +2 -2
- package/api/ism/retryIndex.d.ts +1 -1
- package/api/ism/retryIndex.js +2 -2
- package/api/knn/_api.js +20 -10
- package/api/knn/deleteModel.js +1 -1
- package/api/knn/getModel.js +1 -1
- package/api/knn/searchModels.d.ts +1 -1
- package/api/knn/searchModels.js +5 -5
- package/api/knn/stats.d.ts +1 -1
- package/api/knn/stats.js +3 -3
- package/api/knn/trainModel.js +1 -1
- package/api/knn/warmup.js +2 -2
- package/api/list/_api.js +10 -3
- package/api/list/help.js +1 -1
- package/api/list/indices.d.ts +3 -2
- package/api/list/indices.js +5 -5
- package/api/list/shards.d.ts +3 -2
- package/api/list/shards.js +4 -4
- package/api/ltr/_api.js +98 -17
- package/api/ltr/addFeaturesToSet.d.ts +37 -0
- package/api/ltr/addFeaturesToSet.js +55 -0
- package/api/ltr/addFeaturesToSetByQuery.d.ts +35 -0
- package/api/ltr/addFeaturesToSetByQuery.js +57 -0
- package/api/ltr/createFeature.d.ts +35 -0
- package/api/ltr/createFeature.js +53 -0
- package/api/ltr/createFeatureset.d.ts +35 -0
- package/api/ltr/createFeatureset.js +53 -0
- package/api/ltr/createModel.d.ts +35 -0
- package/api/ltr/createModel.js +53 -0
- package/api/ltr/createModelFromSet.d.ts +35 -0
- package/api/ltr/createModelFromSet.js +53 -0
- package/api/ltr/deleteFeature.d.ts +31 -0
- package/api/ltr/deleteFeature.js +51 -0
- package/api/ltr/deleteFeatureset.d.ts +31 -0
- package/api/ltr/deleteFeatureset.js +51 -0
- package/api/ltr/deleteModel.d.ts +31 -0
- package/api/ltr/deleteModel.js +51 -0
- package/api/ltr/getFeature.d.ts +30 -0
- package/api/ltr/getFeature.js +51 -0
- package/api/ltr/getFeatureset.d.ts +30 -0
- package/api/ltr/getFeatureset.js +51 -0
- package/api/ltr/getModel.d.ts +30 -0
- package/api/ltr/getModel.js +51 -0
- package/api/ltr/searchFeatures.d.ts +33 -0
- package/api/ltr/searchFeatures.js +51 -0
- package/api/ltr/searchFeaturesets.d.ts +33 -0
- package/api/ltr/searchFeaturesets.js +51 -0
- package/api/ltr/searchModels.d.ts +33 -0
- package/api/ltr/searchModels.js +51 -0
- package/api/ltr/stats.d.ts +1 -1
- package/api/ltr/stats.js +2 -2
- package/api/ltr/updateFeature.d.ts +35 -0
- package/api/ltr/updateFeature.js +53 -0
- package/api/ltr/updateFeatureset.d.ts +35 -0
- package/api/ltr/updateFeatureset.js +53 -0
- package/api/ml/_api.js +239 -116
- package/api/ml/addAgenticMemory.d.ts +45 -0
- package/api/ml/addAgenticMemory.js +50 -0
- package/api/ml/createConnector.d.ts +1 -1
- package/api/ml/createMemoryContainer.d.ts +40 -0
- package/api/ml/createMemoryContainer.js +47 -0
- package/api/ml/createMemoryContainerSession.d.ts +41 -0
- package/api/ml/createMemoryContainerSession.js +50 -0
- package/api/ml/createModelMeta.d.ts +1 -0
- package/api/ml/deleteAgenticMemory.d.ts +33 -0
- package/api/ml/deleteAgenticMemory.js +55 -0
- package/api/ml/deleteAgenticMemoryQuery.d.ts +37 -0
- package/api/ml/deleteAgenticMemoryQuery.js +53 -0
- package/api/ml/deleteMemoryContainer.d.ts +33 -0
- package/api/ml/deleteMemoryContainer.js +51 -0
- package/api/ml/executeAgentStream.d.ts +35 -0
- package/api/ml/executeAgentStream.js +50 -0
- package/api/ml/executeAlgorithm.d.ts +2 -2
- package/api/ml/executeAlgorithm.js +1 -1
- package/api/ml/executeTool.d.ts +35 -0
- package/api/ml/executeTool.js +50 -0
- package/api/ml/getAgenticMemory.d.ts +32 -0
- package/api/ml/getAgenticMemory.js +55 -0
- package/api/ml/getMemoryContainer.d.ts +30 -0
- package/api/ml/getMemoryContainer.js +49 -0
- package/api/ml/getStats.d.ts +1 -1
- package/api/ml/getTool.d.ts +1 -1
- package/api/ml/loadModel.d.ts +2 -1
- package/api/ml/predictModel.d.ts +6 -1
- package/api/ml/predictModelStream.d.ts +37 -0
- package/api/ml/predictModelStream.js +50 -0
- package/api/ml/registerModel.d.ts +3 -0
- package/api/ml/registerModelGroup.d.ts +1 -1
- package/api/ml/registerModelMeta.d.ts +1 -0
- package/api/ml/searchAgenticMemory.d.ts +40 -0
- package/api/ml/searchAgenticMemory.js +53 -0
- package/api/ml/searchAgents.d.ts +4 -2
- package/api/ml/searchConnectors.d.ts +4 -2
- package/api/ml/searchMemory.d.ts +4 -2
- package/api/ml/searchMemoryContainer.d.ts +38 -0
- package/api/ml/searchMemoryContainer.js +47 -0
- package/api/ml/searchMessage.d.ts +4 -2
- package/api/ml/searchModelGroup.d.ts +4 -2
- package/api/ml/searchModels.d.ts +4 -2
- package/api/ml/searchTasks.d.ts +4 -2
- package/api/ml/updateAgenticMemory.d.ts +46 -0
- package/api/ml/updateAgenticMemory.js +56 -0
- package/api/ml/updateConnector.d.ts +2 -2
- package/api/ml/updateMemoryContainer.d.ts +38 -0
- package/api/ml/updateMemoryContainer.js +50 -0
- package/api/neural/_api.js +6 -1
- package/api/neural/stats.d.ts +4 -1
- package/api/neural/stats.js +5 -2
- package/api/nodes/_api.js +16 -7
- package/api/nodes/hotThreads.js +1 -1
- package/api/nodes/info.js +1 -1
- package/api/nodes/reloadSecureSettings.js +1 -1
- package/api/nodes/stats.js +1 -1
- package/api/nodes/usage.js +1 -1
- package/api/notifications/_api.js +31 -18
- package/api/notifications/createConfig.js +1 -1
- package/api/notifications/deleteConfig.js +1 -1
- package/api/notifications/deleteConfigs.js +1 -1
- package/api/notifications/getConfigs.js +1 -1
- package/api/notifications/listChannels.js +1 -1
- package/api/notifications/listFeatures.js +1 -1
- package/api/notifications/sendTest.js +1 -1
- package/api/notifications/updateConfig.js +1 -1
- package/api/observability/_api.js +25 -14
- package/api/ppl/_api.js +14 -6
- package/api/ppl/explain.d.ts +2 -1
- package/api/ppl/explain.js +2 -2
- package/api/ppl/getStats.d.ts +2 -1
- package/api/ppl/getStats.js +2 -2
- package/api/ppl/postStats.d.ts +2 -1
- package/api/ppl/postStats.js +2 -2
- package/api/ppl/query.d.ts +2 -1
- package/api/ppl/query.js +2 -2
- package/api/query/_api.js +19 -10
- package/api/remoteStore/_api.js +6 -1
- package/api/remoteStore/restore.js +1 -1
- package/api/replication/_api.js +32 -17
- package/api/replication/autofollowStats.js +1 -1
- package/api/replication/createReplicationRule.js +1 -1
- package/api/replication/deleteReplicationRule.js +1 -1
- package/api/replication/followerStats.js +1 -1
- package/api/replication/leaderStats.js +1 -1
- package/api/replication/pause.js +1 -1
- package/api/replication/resume.js +1 -1
- package/api/replication/start.js +1 -1
- package/api/replication/status.js +1 -1
- package/api/replication/stop.js +1 -1
- package/api/replication/updateSettings.js +1 -1
- package/api/rollups/_api.js +16 -6
- package/api/rollups/delete.js +1 -1
- package/api/rollups/explain.js +1 -1
- package/api/rollups/get.js +1 -1
- package/api/rollups/put.js +1 -1
- package/api/rollups/start.js +1 -1
- package/api/rollups/stop.js +1 -1
- package/api/searchPipeline/_api.js +10 -3
- package/api/searchPipeline/put.js +1 -1
- package/api/searchRelevance/_api.js +117 -0
- package/api/searchRelevance/deleteExperiments.d.ts +30 -0
- package/api/searchRelevance/deleteExperiments.js +49 -0
- package/api/searchRelevance/deleteJudgments.d.ts +30 -0
- package/api/searchRelevance/deleteJudgments.js +49 -0
- package/api/searchRelevance/deleteQuerySets.d.ts +30 -0
- package/api/searchRelevance/deleteQuerySets.js +49 -0
- package/api/searchRelevance/deleteScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/deleteScheduledExperiments.js +49 -0
- package/api/searchRelevance/deleteSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/deleteSearchConfigurations.js +49 -0
- package/api/searchRelevance/experimentsSearch.d.ts +31 -0
- package/api/searchRelevance/experimentsSearch.js +47 -0
- package/api/searchRelevance/getExperiments.d.ts +30 -0
- package/api/searchRelevance/getExperiments.js +48 -0
- package/api/searchRelevance/getJudgments.d.ts +30 -0
- package/api/searchRelevance/getJudgments.js +48 -0
- package/api/searchRelevance/getNodeStats.d.ts +42 -0
- package/api/searchRelevance/getNodeStats.js +56 -0
- package/api/searchRelevance/getQuerySets.d.ts +30 -0
- package/api/searchRelevance/getQuerySets.js +48 -0
- package/api/searchRelevance/getScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/getScheduledExperiments.js +48 -0
- package/api/searchRelevance/getSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/getSearchConfigurations.js +48 -0
- package/api/searchRelevance/getStats.d.ts +41 -0
- package/api/searchRelevance/getStats.js +53 -0
- package/api/searchRelevance/judgmentsSearch.d.ts +31 -0
- package/api/searchRelevance/judgmentsSearch.js +47 -0
- package/api/searchRelevance/postQuerySets.d.ts +30 -0
- package/api/searchRelevance/postQuerySets.js +47 -0
- package/api/searchRelevance/postScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/postScheduledExperiments.js +47 -0
- package/api/searchRelevance/putExperiments.d.ts +32 -0
- package/api/searchRelevance/putExperiments.js +47 -0
- package/api/searchRelevance/putJudgments.d.ts +32 -0
- package/api/searchRelevance/putJudgments.js +47 -0
- package/api/searchRelevance/putQuerySets.d.ts +30 -0
- package/api/searchRelevance/putQuerySets.js +47 -0
- package/api/searchRelevance/putSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/putSearchConfigurations.js +47 -0
- package/api/searchRelevance/querySetsSearch.d.ts +31 -0
- package/api/searchRelevance/querySetsSearch.js +47 -0
- package/api/searchRelevance/searchConfigurationsSearch.d.ts +31 -0
- package/api/searchRelevance/searchConfigurationsSearch.js +47 -0
- package/api/security/_api.js +227 -147
- package/api/security/changePassword.js +1 -1
- package/api/security/configUpgradeCheck.js +1 -1
- package/api/security/configUpgradePerform.js +1 -1
- package/api/security/createActionGroup.js +1 -1
- package/api/security/createAllowlist.js +1 -1
- package/api/security/createRole.js +1 -1
- package/api/security/createRoleMapping.js +1 -1
- package/api/security/createTenant.js +1 -1
- package/api/security/createUpdateTenancyConfig.js +1 -1
- package/api/security/createUser.js +1 -1
- package/api/security/deleteActionGroup.js +1 -1
- package/api/security/deleteDistinguishedName.js +1 -1
- package/api/security/deleteRole.js +1 -1
- package/api/security/deleteRoleMapping.js +1 -1
- package/api/security/deleteTenant.js +1 -1
- package/api/security/deleteUser.js +1 -1
- package/api/security/flushCache.js +1 -1
- package/api/security/generateOboToken.js +1 -1
- package/api/security/getAccountDetails.js +1 -1
- package/api/security/getActionGroup.js +1 -1
- package/api/security/getActionGroups.js +1 -1
- package/api/security/getAllowlist.js +1 -1
- package/api/security/getAuditConfiguration.js +1 -1
- package/api/security/getCertificates.js +1 -1
- package/api/security/getConfiguration.js +1 -1
- package/api/security/getDistinguishedName.js +1 -1
- package/api/security/getDistinguishedNames.js +1 -1
- package/api/security/getRole.js +1 -1
- package/api/security/getRoleMapping.js +1 -1
- package/api/security/getRoleMappings.js +1 -1
- package/api/security/getRoles.js +1 -1
- package/api/security/getSslinfo.d.ts +2 -1
- package/api/security/getSslinfo.js +1 -1
- package/api/security/getTenancyConfig.js +1 -1
- package/api/security/getTenant.js +1 -1
- package/api/security/getTenants.js +1 -1
- package/api/security/getUser.js +1 -1
- package/api/security/getUsers.js +1 -1
- package/api/security/health.js +1 -1
- package/api/security/patchActionGroup.js +1 -1
- package/api/security/patchActionGroups.js +1 -1
- package/api/security/patchAllowlist.js +1 -1
- package/api/security/patchAuditConfiguration.js +1 -1
- package/api/security/patchConfiguration.js +1 -1
- package/api/security/patchDistinguishedName.d.ts +3 -1
- package/api/security/patchDistinguishedNames.js +1 -1
- package/api/security/patchRole.js +1 -1
- package/api/security/patchRoleMapping.js +1 -1
- package/api/security/patchRoleMappings.js +1 -1
- package/api/security/patchRoles.js +1 -1
- package/api/security/patchTenant.js +1 -1
- package/api/security/patchTenants.js +1 -1
- package/api/security/patchUser.js +1 -1
- package/api/security/patchUsers.js +1 -1
- package/api/security/reloadHttpCertificates.js +1 -1
- package/api/security/reloadTransportCertificates.js +1 -1
- package/api/security/updateAuditConfiguration.js +1 -1
- package/api/security/updateConfiguration.js +1 -1
- package/api/security/updateDistinguishedName.js +1 -1
- package/api/securityAnalytics/_api.js +41 -0
- package/api/securityAnalytics/getAlerts.d.ts +42 -0
- package/api/securityAnalytics/getAlerts.js +58 -0
- package/api/securityAnalytics/getFindings.d.ts +43 -0
- package/api/securityAnalytics/getFindings.js +59 -0
- package/api/securityAnalytics/searchFindingCorrelations.d.ts +33 -0
- package/api/securityAnalytics/searchFindingCorrelations.js +52 -0
- package/api/sm/_api.js +28 -16
- package/api/sm/deletePolicy.d.ts +2 -2
- package/api/sm/getPolicies.d.ts +2 -1
- package/api/sm/getPolicies.js +1 -1
- package/api/snapshot/_api.js +31 -16
- package/api/snapshot/cleanupRepository.js +2 -2
- package/api/snapshot/clone.js +2 -2
- package/api/snapshot/create.js +2 -2
- package/api/snapshot/createRepository.js +2 -2
- package/api/snapshot/delete.js +2 -2
- package/api/snapshot/deleteRepository.js +2 -2
- package/api/snapshot/get.js +3 -3
- package/api/snapshot/getRepository.js +2 -2
- package/api/snapshot/restore.d.ts +1 -0
- package/api/snapshot/restore.js +2 -2
- package/api/snapshot/status.js +2 -2
- package/api/snapshot/verifyRepository.js +2 -2
- package/api/sql/_api.js +18 -8
- package/api/sql/close.d.ts +1 -1
- package/api/sql/close.js +2 -2
- package/api/sql/explain.d.ts +1 -1
- package/api/sql/explain.js +2 -2
- package/api/sql/getStats.d.ts +2 -1
- package/api/sql/getStats.js +2 -2
- package/api/sql/postStats.d.ts +1 -1
- package/api/sql/postStats.js +2 -2
- package/api/sql/query.d.ts +1 -1
- package/api/sql/query.js +2 -2
- package/api/sql/settings.d.ts +1 -1
- package/api/sql/settings.js +2 -2
- package/api/tasks/_api.js +12 -3
- package/api/tasks/cancel.js +1 -1
- package/api/tasks/delete.d.ts +30 -0
- package/api/tasks/delete.js +49 -0
- package/api/tasks/get.js +1 -1
- package/api/tasks/list.js +1 -1
- package/api/transforms/_api.js +20 -8
- package/api/transforms/delete.d.ts +2 -2
- package/api/transforms/delete.js +1 -1
- package/api/transforms/explain.js +1 -1
- package/api/transforms/get.js +1 -1
- package/api/transforms/preview.js +1 -1
- package/api/transforms/put.js +1 -1
- package/api/transforms/search.js +1 -1
- package/api/transforms/start.js +1 -1
- package/api/transforms/stop.js +1 -1
- package/api/ubi/_api.js +31 -0
- package/api/ubi/initialize.d.ts +27 -0
- package/api/ubi/initialize.js +45 -0
- package/api/wlm/_api.js +16 -8
- package/lib/Connection.d.ts +1 -2
- package/lib/Connection.js +3 -3
- package/lib/Helpers.js +8 -8
- package/lib/ProxyAgent.js +125 -0
- package/lib/aws/shared.js +1 -1
- package/package.json +8 -3
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
import * as Common_Analysis from './_common.analysis'
|
|
19
|
+
import * as Common_QueryDsl from './_common.query_dsl'
|
|
19
20
|
|
|
20
21
|
export type Action = {
|
|
21
22
|
action_type?: string;
|
|
@@ -27,8 +28,16 @@ export type Action = {
|
|
|
27
28
|
url?: string;
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
export type ActionType = 'ADD' | 'DELETE' | 'UPDATE'
|
|
32
|
+
|
|
33
|
+
export type AdditionalConfig = {
|
|
34
|
+
space_type?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export type AdditionalInfo = Record<string, any>
|
|
31
38
|
|
|
39
|
+
export type AgentType = 'conversational' | 'conversational_flow' | 'flow'
|
|
40
|
+
|
|
32
41
|
export type Aggregation = {
|
|
33
42
|
field?: string;
|
|
34
43
|
max?: Aggregation;
|
|
@@ -36,10 +45,6 @@ export type Aggregation = {
|
|
|
36
45
|
[key: string]: any;
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
export type Algorithm = {
|
|
40
|
-
value?: FunctionName;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
48
|
export type AlgorithmOperations = {
|
|
44
49
|
deploy?: ModelStats;
|
|
45
50
|
execute?: ModelStats;
|
|
@@ -52,13 +57,6 @@ export type AlgorithmOperations = {
|
|
|
52
57
|
|
|
53
58
|
export type Algorithms = Record<string, AlgorithmOperations>
|
|
54
59
|
|
|
55
|
-
export type BoolQuery = {
|
|
56
|
-
filter?: Filter[];
|
|
57
|
-
must?: Filter[];
|
|
58
|
-
must_not?: Filter;
|
|
59
|
-
should?: Filter[];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
60
|
export type Buckets = {
|
|
63
61
|
end_time?: number;
|
|
64
62
|
entities?: Entity[];
|
|
@@ -68,9 +66,11 @@ export type Buckets = {
|
|
|
68
66
|
|
|
69
67
|
export type ByteBuffer = {
|
|
70
68
|
array?: string;
|
|
71
|
-
order?:
|
|
69
|
+
order?: ByteOrder;
|
|
72
70
|
}
|
|
73
71
|
|
|
72
|
+
export type ByteOrder = 'BIG_ENDIAN' | 'LITTLE_ENDIAN'
|
|
73
|
+
|
|
74
74
|
export type ClientConfig = {
|
|
75
75
|
connection_timeout?: number;
|
|
76
76
|
max_connection?: number;
|
|
@@ -82,10 +82,20 @@ export type ClientConfig = {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export type ColumnMeta = {
|
|
85
|
-
column_type?:
|
|
85
|
+
column_type?: ColumnType;
|
|
86
86
|
name?: Common.Name;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
export type ColumnType = 'BOOLEAN' | 'DOUBLE' | 'INTEGER' | 'STRING'
|
|
90
|
+
|
|
91
|
+
export type ConnectorProtocol = 'aws_sigv4' | 'http'
|
|
92
|
+
|
|
93
|
+
export type Content = {
|
|
94
|
+
text?: string;
|
|
95
|
+
type?: string;
|
|
96
|
+
[key: string]: any;
|
|
97
|
+
}
|
|
98
|
+
|
|
89
99
|
export type Credential = {
|
|
90
100
|
access_key?: string;
|
|
91
101
|
secret_key?: string;
|
|
@@ -93,6 +103,29 @@ export type Credential = {
|
|
|
93
103
|
[key: string]: any;
|
|
94
104
|
}
|
|
95
105
|
|
|
106
|
+
export type DataAsMap = {
|
|
107
|
+
content?: string;
|
|
108
|
+
is_last?: boolean;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type DeleteAgenticMemoryResponse = {
|
|
112
|
+
batches?: number;
|
|
113
|
+
created?: number;
|
|
114
|
+
deleted?: number;
|
|
115
|
+
failures?: Common.BulkByScrollFailure[];
|
|
116
|
+
noops?: number;
|
|
117
|
+
requests_per_second?: number;
|
|
118
|
+
result?: string;
|
|
119
|
+
retries?: Common.Retries;
|
|
120
|
+
throttled_millis?: number;
|
|
121
|
+
throttled_until_millis?: number;
|
|
122
|
+
timed_out?: boolean;
|
|
123
|
+
took?: number;
|
|
124
|
+
total?: number;
|
|
125
|
+
updated?: number;
|
|
126
|
+
version_conflicts?: number;
|
|
127
|
+
}
|
|
128
|
+
|
|
96
129
|
export type Entity = {
|
|
97
130
|
base_value?: number;
|
|
98
131
|
contribution_value?: number;
|
|
@@ -113,20 +146,33 @@ export type ExecuteLocalSampleCalculatorResponse = {
|
|
|
113
146
|
result?: number;
|
|
114
147
|
}
|
|
115
148
|
|
|
116
|
-
export type
|
|
117
|
-
|
|
149
|
+
export type ExecuteToolResponse = {
|
|
150
|
+
inference_results?: InferenceResults[];
|
|
118
151
|
}
|
|
119
152
|
|
|
120
|
-
export type
|
|
121
|
-
exists?: Exists;
|
|
122
|
-
match?: Match;
|
|
123
|
-
nested?: Nested;
|
|
124
|
-
range?: Range;
|
|
125
|
-
term?: Term;
|
|
126
|
-
terms?: Term;
|
|
127
|
-
}
|
|
153
|
+
export type FunctionName = 'AD_LIBSVM' | 'ad_libsvm' | 'AGENT' | 'agent' | 'ANOMALY_LOCALIZATION' | 'anomaly_localization' | 'BATCH_RCF' | 'batch_rcf' | 'CONNECTOR' | 'connector' | 'FIT_RCF' | 'fit_rcf' | 'KMEANS' | 'kmeans' | 'LINEAR_REGRESSION' | 'linear_regression' | 'LOCAL_SAMPLE_CALCULATOR' | 'local_sample_calculator' | 'LOGISTIC_REGRESSION' | 'logistic_regression' | 'METRICS_CORRELATION' | 'metrics_correlation' | 'QUESTION_ANSWERING' | 'question_answering' | 'RCF_SUMMARIZE' | 'rcf_summarize' | 'REMOTE' | 'remote' | 'SAMPLE_ALGO' | 'sample_algo' | 'SPARSE_ENCODING' | 'sparse_encoding' | 'SPARSE_TOKENIZE' | 'sparse_tokenize' | 'TEXT_EMBEDDING' | 'text_embedding' | 'TEXT_SIMILARITY' | 'text_similarity'
|
|
128
154
|
|
|
129
|
-
export type
|
|
155
|
+
export type GetAgenticMemoryResponse = {
|
|
156
|
+
action?: ActionType;
|
|
157
|
+
after?: Record<string, any>;
|
|
158
|
+
before?: Record<string, any>;
|
|
159
|
+
created_time?: number;
|
|
160
|
+
infer?: boolean;
|
|
161
|
+
last_updated_time?: number;
|
|
162
|
+
memory?: string;
|
|
163
|
+
memory_container_id?: string;
|
|
164
|
+
memory_embedding?: number[];
|
|
165
|
+
memory_id?: string;
|
|
166
|
+
messages?: Message[];
|
|
167
|
+
metadata?: Metadata;
|
|
168
|
+
namespace?: Namespace;
|
|
169
|
+
namespace_size?: number;
|
|
170
|
+
owner_id?: string;
|
|
171
|
+
payload_type?: PayloadType;
|
|
172
|
+
strategy_id?: string;
|
|
173
|
+
strategy_type?: StrategyType;
|
|
174
|
+
tags?: Record<string, any>;
|
|
175
|
+
}
|
|
130
176
|
|
|
131
177
|
export type GetAgentResponse = {
|
|
132
178
|
created_time?: number;
|
|
@@ -135,7 +181,7 @@ export type GetAgentResponse = {
|
|
|
135
181
|
last_updated_time?: number;
|
|
136
182
|
name?: Common.Name;
|
|
137
183
|
tools?: ToolItems[];
|
|
138
|
-
type?:
|
|
184
|
+
type?: AgentType;
|
|
139
185
|
}
|
|
140
186
|
|
|
141
187
|
export type GetConnectorResponse = {
|
|
@@ -145,22 +191,31 @@ export type GetConnectorResponse = {
|
|
|
145
191
|
last_updated_time?: number;
|
|
146
192
|
name?: Common.Name;
|
|
147
193
|
parameters?: Parameters;
|
|
148
|
-
protocol?:
|
|
194
|
+
protocol?: ConnectorProtocol;
|
|
149
195
|
version?: Common.VersionString;
|
|
150
196
|
}
|
|
151
197
|
|
|
198
|
+
export type GetMemoryContainerResponse = {
|
|
199
|
+
configuration?: MemoryContainerConfiguration;
|
|
200
|
+
created_time?: number;
|
|
201
|
+
description?: string;
|
|
202
|
+
last_updated_time?: number;
|
|
203
|
+
name?: Common.Name;
|
|
204
|
+
owner?: Owner;
|
|
205
|
+
}
|
|
206
|
+
|
|
152
207
|
export type GetProfileResponse = {
|
|
153
208
|
nodes?: Nodes;
|
|
154
209
|
}
|
|
155
210
|
|
|
156
211
|
export type GetStatsResponse = {
|
|
157
|
-
ml_config_index_status?:
|
|
212
|
+
ml_config_index_status?: MlIndexStatus;
|
|
158
213
|
ml_connector_count?: number;
|
|
159
|
-
ml_connector_index_status?:
|
|
160
|
-
ml_controller_index_status?:
|
|
214
|
+
ml_connector_index_status?: MlIndexStatus;
|
|
215
|
+
ml_controller_index_status?: MlIndexStatus;
|
|
161
216
|
ml_model_count?: number;
|
|
162
|
-
ml_model_index_status?:
|
|
163
|
-
ml_task_index_status?:
|
|
217
|
+
ml_model_index_status?: MlIndexStatus;
|
|
218
|
+
ml_task_index_status?: MlIndexStatus;
|
|
164
219
|
nodes?: NodeStats;
|
|
165
220
|
}
|
|
166
221
|
|
|
@@ -174,7 +229,7 @@ export type Guardrails = {
|
|
|
174
229
|
response_validation_regex?: string;
|
|
175
230
|
source_fields?: Common.Fields;
|
|
176
231
|
stop_words?: Common_Analysis.StopWords;
|
|
177
|
-
type?:
|
|
232
|
+
type?: GuardrailsType;
|
|
178
233
|
}
|
|
179
234
|
|
|
180
235
|
export type GuardrailsInputOutput = {
|
|
@@ -182,6 +237,8 @@ export type GuardrailsInputOutput = {
|
|
|
182
237
|
response_validation_regex?: string;
|
|
183
238
|
}
|
|
184
239
|
|
|
240
|
+
export type GuardrailsType = 'local_regex' | 'model'
|
|
241
|
+
|
|
185
242
|
export type Headers = {
|
|
186
243
|
content_type?: string;
|
|
187
244
|
[key: string]: any;
|
|
@@ -192,34 +249,38 @@ export type HitsTotal = {
|
|
|
192
249
|
value: number;
|
|
193
250
|
}
|
|
194
251
|
|
|
252
|
+
export type Index = {
|
|
253
|
+
number_of_replicas?: string;
|
|
254
|
+
number_of_shards?: string;
|
|
255
|
+
[key: string]: any;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type IndexSettings = {
|
|
259
|
+
long_term_memory_history_index?: MemoryIndexSettings;
|
|
260
|
+
long_term_memory_index?: MemoryIndexSettings;
|
|
261
|
+
session_index?: MemoryIndexSettings;
|
|
262
|
+
short_term_memory_index?: MemoryIndexSettings;
|
|
263
|
+
[key: string]: any;
|
|
264
|
+
}
|
|
265
|
+
|
|
195
266
|
export type InferenceResults = {
|
|
196
267
|
output?: Output[];
|
|
197
268
|
}
|
|
198
269
|
|
|
199
270
|
export type InputQuery = {
|
|
200
271
|
_source?: string[];
|
|
201
|
-
query?:
|
|
272
|
+
query?: Common_QueryDsl.QueryContainer;
|
|
202
273
|
size?: number;
|
|
203
274
|
}
|
|
204
275
|
|
|
205
|
-
export type
|
|
206
|
-
gt?: number;
|
|
207
|
-
gte?: number;
|
|
208
|
-
lt?: number;
|
|
209
|
-
lte?: number;
|
|
210
|
-
}
|
|
276
|
+
export type KMeansDistanceType = 'COSINE' | 'EUCLIDEAN' | 'L1'
|
|
211
277
|
|
|
212
278
|
export type LLM = {
|
|
213
279
|
model_id?: string;
|
|
214
280
|
parameters?: Parameters;
|
|
215
281
|
}
|
|
216
282
|
|
|
217
|
-
export type
|
|
218
|
-
description?: string;
|
|
219
|
-
[key: string]: any;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export type MatchAllQuery = Record<string, any>
|
|
283
|
+
export type LocalSampleCalculatorOperation = 'max' | 'min' | 'sum'
|
|
223
284
|
|
|
224
285
|
export type Memory = {
|
|
225
286
|
additional_info?: AdditionalInfo;
|
|
@@ -231,8 +292,30 @@ export type Memory = {
|
|
|
231
292
|
user?: string;
|
|
232
293
|
}
|
|
233
294
|
|
|
295
|
+
export type MemoryContainerConfiguration = {
|
|
296
|
+
disable_history?: boolean;
|
|
297
|
+
disable_session?: boolean;
|
|
298
|
+
embedding_dimension?: number;
|
|
299
|
+
embedding_model_id?: string;
|
|
300
|
+
embedding_model_type?: string;
|
|
301
|
+
index_prefix?: string;
|
|
302
|
+
index_settings?: IndexSettings;
|
|
303
|
+
llm_id?: string;
|
|
304
|
+
max_infer_size?: number;
|
|
305
|
+
parameters?: Parameters;
|
|
306
|
+
strategies?: Strategy[];
|
|
307
|
+
use_system_index?: boolean;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export type MemoryIndexSettings = {
|
|
311
|
+
index?: Index;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type MemoryType = 'history' | 'long-term' | 'sessions' | 'working'
|
|
315
|
+
|
|
234
316
|
export type Message = {
|
|
235
317
|
additional_info?: AdditionalInfo;
|
|
318
|
+
content?: Content[];
|
|
236
319
|
create_time?: string;
|
|
237
320
|
input?: undefined | string;
|
|
238
321
|
memory_id?: Common.Name;
|
|
@@ -241,9 +324,28 @@ export type Message = {
|
|
|
241
324
|
parent_message_id?: undefined | string;
|
|
242
325
|
prompt_template?: undefined | string;
|
|
243
326
|
response?: undefined | string;
|
|
327
|
+
role?: string;
|
|
244
328
|
trace_number?: number;
|
|
329
|
+
updated_time?: string;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export type Messages = {
|
|
333
|
+
content?: string;
|
|
334
|
+
role?: string;
|
|
245
335
|
}
|
|
246
336
|
|
|
337
|
+
export type Metadata = Record<string, any>
|
|
338
|
+
|
|
339
|
+
export type MlIndexStatus = 'green' | 'non-existent' | 'red' | 'yellow'
|
|
340
|
+
|
|
341
|
+
export type MlInputDataType = 'DATA_FRAME' | 'QUESTION_ANSWERING' | 'REMOTE' | 'SEARCH_QUERY' | 'TEXT_DOCS' | 'TEXT_SIMILARITY'
|
|
342
|
+
|
|
343
|
+
export type MlResultDataType = 'BOOLEAN' | 'FLOAT16' | 'FLOAT32' | 'FLOAT64' | 'INT32' | 'INT64' | 'INT8' | 'STRING' | 'UINT8' | 'UNKNOWN'
|
|
344
|
+
|
|
345
|
+
export type MlStatName = 'ml_config_index_status' | 'ml_connector_count' | 'ml_connector_index_status' | 'ml_controller_index_status' | 'ml_model_count' | 'ml_model_index_status' | 'ml_task_index_status'
|
|
346
|
+
|
|
347
|
+
export type MlTaskType = 'BATCH_INGEST' | 'BATCH_PREDICTION' | 'DEPLOY_MODEL' | 'EXECUTION' | 'PREDICTION' | 'REGISTER_MODEL' | 'TRAINING' | 'TRAINING_AND_PREDICTION'
|
|
348
|
+
|
|
247
349
|
export type Model = {
|
|
248
350
|
algorithm?: string;
|
|
249
351
|
created_time?: number;
|
|
@@ -255,13 +357,14 @@ export type Model = {
|
|
|
255
357
|
model_content_size_in_bytes?: number;
|
|
256
358
|
model_format?: ModelFormat;
|
|
257
359
|
model_group_id?: string;
|
|
258
|
-
model_state:
|
|
360
|
+
model_state: ModelState;
|
|
259
361
|
model_version?: string;
|
|
260
362
|
name?: string;
|
|
261
363
|
total_chunks?: number;
|
|
262
364
|
}
|
|
263
365
|
|
|
264
366
|
export type ModelConfig = {
|
|
367
|
+
additional_config?: AdditionalConfig;
|
|
265
368
|
all_config?: string;
|
|
266
369
|
embedding_dimension?: number;
|
|
267
370
|
framework_type?: string;
|
|
@@ -271,7 +374,7 @@ export type ModelConfig = {
|
|
|
271
374
|
export type ModelFormat = 'ONNX' | 'TORCH_SCRIPT'
|
|
272
375
|
|
|
273
376
|
export type ModelGroup = {
|
|
274
|
-
access:
|
|
377
|
+
access: ModelGroupAccessMode;
|
|
275
378
|
created_time?: number;
|
|
276
379
|
description: string;
|
|
277
380
|
last_updated_time?: number;
|
|
@@ -280,6 +383,8 @@ export type ModelGroup = {
|
|
|
280
383
|
owner?: Owner;
|
|
281
384
|
}
|
|
282
385
|
|
|
386
|
+
export type ModelGroupAccessMode = 'private' | 'public' | 'restricted'
|
|
387
|
+
|
|
283
388
|
export type ModelGroupRegistration = {
|
|
284
389
|
model_group_id: string;
|
|
285
390
|
status: string;
|
|
@@ -290,7 +395,7 @@ export type ModelProfile = {
|
|
|
290
395
|
execute?: ModelStats;
|
|
291
396
|
memory_size_estimation_cpu?: number;
|
|
292
397
|
memory_size_estimation_gpu?: number;
|
|
293
|
-
model_state?:
|
|
398
|
+
model_state?: ModelState;
|
|
294
399
|
predict?: ModelStats;
|
|
295
400
|
predict_request_stats?: PredictRequestStats;
|
|
296
401
|
predictor?: string;
|
|
@@ -304,19 +409,15 @@ export type ModelProfile = {
|
|
|
304
409
|
|
|
305
410
|
export type Models = Record<string, ModelProfile>
|
|
306
411
|
|
|
412
|
+
export type ModelState = 'DEPLOYED' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'PARTIALLY_DEPLOYED' | 'REGISTERED' | 'REGISTERING' | 'UNDEPLOYED'
|
|
413
|
+
|
|
307
414
|
export type ModelStats = {
|
|
308
415
|
ml_action_failure_count?: number;
|
|
309
416
|
ml_action_request_count?: number;
|
|
310
417
|
ml_executing_task_count?: number;
|
|
311
418
|
}
|
|
312
419
|
|
|
313
|
-
export type
|
|
314
|
-
boost?: number;
|
|
315
|
-
ignore_unmapped?: boolean;
|
|
316
|
-
path?: Common.Field;
|
|
317
|
-
query?: Query;
|
|
318
|
-
score_mode?: 'avg' | 'max' | 'min' | 'none' | 'sum';
|
|
319
|
-
}
|
|
420
|
+
export type Namespace = Record<string, any>
|
|
320
421
|
|
|
321
422
|
export type Node = {
|
|
322
423
|
models?: Models;
|
|
@@ -340,8 +441,9 @@ export type NodeStatsDetails = {
|
|
|
340
441
|
|
|
341
442
|
export type Output = {
|
|
342
443
|
byte_buffer?: ByteBuffer;
|
|
343
|
-
data
|
|
344
|
-
data_type?:
|
|
444
|
+
data?: number[];
|
|
445
|
+
data_type?: MlResultDataType;
|
|
446
|
+
dataAsMap?: DataAsMap;
|
|
345
447
|
name?: string;
|
|
346
448
|
result?: string;
|
|
347
449
|
shape?: number[];
|
|
@@ -353,14 +455,20 @@ export type Owner = {
|
|
|
353
455
|
name: Common.Name;
|
|
354
456
|
roles?: string[];
|
|
355
457
|
user_requested_tenant?: undefined | string;
|
|
458
|
+
user_requested_tenant_access?: string;
|
|
356
459
|
}
|
|
357
460
|
|
|
358
|
-
export type
|
|
359
|
-
|
|
360
|
-
|
|
461
|
+
export type Parameters = {
|
|
462
|
+
_llm_interface?: string;
|
|
463
|
+
inputs?: string;
|
|
464
|
+
messages?: Messages[];
|
|
465
|
+
question?: string;
|
|
466
|
+
[key: string]: any;
|
|
361
467
|
}
|
|
362
468
|
|
|
363
|
-
export type
|
|
469
|
+
export type PayloadType = 'conversational' | 'data'
|
|
470
|
+
|
|
471
|
+
export type PredictionActionType = 'batch_predict' | 'batch_predict_status' | 'cancel_batch_predict' | 'execute' | 'predict'
|
|
364
472
|
|
|
365
473
|
export type PredictionResult = {
|
|
366
474
|
column_metas?: ColumnMeta[];
|
|
@@ -370,7 +478,7 @@ export type PredictionResult = {
|
|
|
370
478
|
export type PredictModelOutput = {
|
|
371
479
|
byte_buffer?: ByteBuffer;
|
|
372
480
|
data: number[];
|
|
373
|
-
data_type?:
|
|
481
|
+
data_type?: MlResultDataType;
|
|
374
482
|
name?: string;
|
|
375
483
|
shape?: number[];
|
|
376
484
|
}
|
|
@@ -407,25 +515,13 @@ export type ProfileRequest = {
|
|
|
407
515
|
task_ids?: Common.Id[];
|
|
408
516
|
}
|
|
409
517
|
|
|
410
|
-
export type Query = {
|
|
411
|
-
bool?: BoolQuery;
|
|
412
|
-
match?: Match;
|
|
413
|
-
match_all?: MatchAllQuery;
|
|
414
|
-
term?: Term;
|
|
415
|
-
[key: string]: any;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
export type Range = {
|
|
419
|
-
k1?: Key;
|
|
420
|
-
k2?: Key;
|
|
421
|
-
k3?: Key;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
518
|
export type RateLimiter = {
|
|
425
519
|
limit: Common.StringifiedDouble;
|
|
426
|
-
unit:
|
|
520
|
+
unit: RateLimiterUnit;
|
|
427
521
|
}
|
|
428
522
|
|
|
523
|
+
export type RateLimiterUnit = 'DAYS' | 'HOURS' | 'MICROSECONDS' | 'MILLISECONDS' | 'MINUTES' | 'NANOSECONDS' | 'SECONDS'
|
|
524
|
+
|
|
429
525
|
export type Result = {
|
|
430
526
|
buckets?: Buckets[];
|
|
431
527
|
}
|
|
@@ -452,7 +548,6 @@ export type SearchHitsHit = {
|
|
|
452
548
|
_seq_no?: Common.SequenceNumber;
|
|
453
549
|
_source?: Source;
|
|
454
550
|
_version?: Common.VersionNumber;
|
|
455
|
-
model_id?: Common.Name;
|
|
456
551
|
sort?: number[];
|
|
457
552
|
}
|
|
458
553
|
|
|
@@ -473,75 +568,8 @@ export type SearchResponse = {
|
|
|
473
568
|
|
|
474
569
|
export type SearchTasksResponse = SearchResponse
|
|
475
570
|
|
|
476
|
-
export type Sort = {
|
|
477
|
-
_id?: SortOrder;
|
|
478
|
-
_index?: SortOrder;
|
|
479
|
-
_score?: SortOrder;
|
|
480
|
-
_seq_no?: SortOrder;
|
|
481
|
-
algorithm?: SortOrder;
|
|
482
|
-
auto_redeploy_retry_times?: SortOrder;
|
|
483
|
-
chunk_number?: SortOrder;
|
|
484
|
-
created_time?: SortOrder;
|
|
485
|
-
current_worker_node_count?: SortOrder;
|
|
486
|
-
deploy_to_all_nodes?: SortOrder;
|
|
487
|
-
is_hidden?: SortOrder;
|
|
488
|
-
last_registered_time?: SortOrder;
|
|
489
|
-
last_updated_time?: SortOrder;
|
|
490
|
-
model_content_hash_value?: SortOrder;
|
|
491
|
-
model_content_size_in_bytes?: SortOrder;
|
|
492
|
-
model_format?: SortOrder;
|
|
493
|
-
model_group_id?: SortOrder;
|
|
494
|
-
model_state?: SortOrder;
|
|
495
|
-
model_version?: SortOrder;
|
|
496
|
-
planning_worker_node_count?: SortOrder;
|
|
497
|
-
planning_worker_nodes?: SortOrder;
|
|
498
|
-
total_chunks?: SortOrder;
|
|
499
|
-
}
|
|
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
|
-
|
|
514
|
-
export type SortMemory = {
|
|
515
|
-
_id?: SortOrder;
|
|
516
|
-
_index?: SortOrder;
|
|
517
|
-
_score?: SortOrder;
|
|
518
|
-
_seq_no?: SortOrder;
|
|
519
|
-
additional_info?: SortOrder;
|
|
520
|
-
application_time?: SortOrder;
|
|
521
|
-
create_time?: SortOrder;
|
|
522
|
-
updated_time?: SortOrder;
|
|
523
|
-
user?: SortOrder;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
export type SortMessage = {
|
|
527
|
-
_id?: SortOrder;
|
|
528
|
-
_index?: SortOrder;
|
|
529
|
-
_score?: SortOrder;
|
|
530
|
-
_seq_no?: SortOrder;
|
|
531
|
-
additional_info?: SortOrder;
|
|
532
|
-
create_time?: SortOrder;
|
|
533
|
-
memory_id?: SortOrder;
|
|
534
|
-
origin?: SortOrder;
|
|
535
|
-
parent_message_id?: SortOrder;
|
|
536
|
-
trace_number?: SortOrder;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
export type SortOrder = {
|
|
540
|
-
order?: 'asc' | 'desc';
|
|
541
|
-
}
|
|
542
|
-
|
|
543
571
|
export type Source = {
|
|
544
|
-
access?:
|
|
572
|
+
access?: ModelGroupAccessMode;
|
|
545
573
|
actions?: Action[];
|
|
546
574
|
additional_info?: AdditionalInfo;
|
|
547
575
|
algorithm?: string;
|
|
@@ -550,6 +578,7 @@ export type Source = {
|
|
|
550
578
|
auto_redeploy_retry_times?: number;
|
|
551
579
|
backend_roles?: string[];
|
|
552
580
|
chunk_number?: number;
|
|
581
|
+
configuration?: MemoryContainerConfiguration;
|
|
553
582
|
connector_id?: string;
|
|
554
583
|
create_time?: string | number;
|
|
555
584
|
created_time?: number;
|
|
@@ -559,7 +588,7 @@ export type Source = {
|
|
|
559
588
|
error?: string;
|
|
560
589
|
function_name?: FunctionName;
|
|
561
590
|
input?: undefined | string;
|
|
562
|
-
input_type?:
|
|
591
|
+
input_type?: MlInputDataType;
|
|
563
592
|
is_async?: boolean;
|
|
564
593
|
is_hidden?: boolean;
|
|
565
594
|
last_deployed_time?: number;
|
|
@@ -569,40 +598,62 @@ export type Source = {
|
|
|
569
598
|
latest_version?: number;
|
|
570
599
|
memory?: Memory;
|
|
571
600
|
memory_id?: Common.Name;
|
|
601
|
+
metadata?: Metadata;
|
|
572
602
|
model_config?: ModelConfig;
|
|
573
603
|
model_content_hash_value?: string;
|
|
574
604
|
model_content_size_in_bytes?: number;
|
|
575
605
|
model_format?: ModelFormat;
|
|
576
606
|
model_group_id?: string;
|
|
577
607
|
model_id?: Common.Name;
|
|
578
|
-
model_state?:
|
|
608
|
+
model_state?: ModelState;
|
|
579
609
|
model_task_type?: string;
|
|
580
610
|
model_version?: string;
|
|
581
611
|
name?: Common.Name;
|
|
612
|
+
namespace?: Namespace;
|
|
613
|
+
namespace_size?: number;
|
|
582
614
|
origin?: undefined | string;
|
|
583
615
|
owner?: Owner;
|
|
616
|
+
owner_id?: string;
|
|
584
617
|
parameters?: Parameters;
|
|
585
618
|
parent_message_id?: undefined | string;
|
|
619
|
+
payload_type?: PayloadType;
|
|
586
620
|
planning_worker_node_count?: number;
|
|
587
621
|
planning_worker_nodes?: Common.NodeIds[];
|
|
588
622
|
prompt_template?: undefined | string;
|
|
589
|
-
protocol?:
|
|
623
|
+
protocol?: ConnectorProtocol;
|
|
590
624
|
response?: undefined | string;
|
|
591
625
|
state?: Status;
|
|
592
|
-
task_type?:
|
|
626
|
+
task_type?: MlTaskType;
|
|
593
627
|
tools?: ToolItems[];
|
|
594
628
|
total_chunks?: number;
|
|
595
629
|
trace_number?: undefined | string;
|
|
596
|
-
type?:
|
|
630
|
+
type?: AgentType;
|
|
597
631
|
updated_time?: string;
|
|
598
632
|
url?: string;
|
|
599
633
|
user?: string;
|
|
600
634
|
version?: Common.VersionString;
|
|
601
635
|
worker_node?: Common.NodeIds[];
|
|
636
|
+
[key: string]: any;
|
|
602
637
|
}
|
|
603
638
|
|
|
604
639
|
export type Status = 'CANCELLED' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREATED' | 'FAILED' | 'RUNNING'
|
|
605
640
|
|
|
641
|
+
export type Strategy = {
|
|
642
|
+
configuration?: StrategyConfiguration;
|
|
643
|
+
enabled?: boolean;
|
|
644
|
+
id?: string;
|
|
645
|
+
namespace?: string[];
|
|
646
|
+
type?: StrategyType;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export type StrategyConfiguration = {
|
|
650
|
+
llm_id?: string;
|
|
651
|
+
llm_result_path?: string;
|
|
652
|
+
system_prompt?: string;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export type StrategyType = 'SEMANTIC' | 'SUMMARY' | 'USER_PREFERENCE'
|
|
656
|
+
|
|
606
657
|
export type Task = {
|
|
607
658
|
create_time?: number;
|
|
608
659
|
error?: string;
|
|
@@ -610,23 +661,15 @@ export type Task = {
|
|
|
610
661
|
is_async?: boolean;
|
|
611
662
|
last_update_time?: number;
|
|
612
663
|
model_id?: string;
|
|
613
|
-
state:
|
|
664
|
+
state: TaskState;
|
|
614
665
|
task_id?: string;
|
|
615
|
-
task_type?:
|
|
666
|
+
task_type?: MlTaskType;
|
|
616
667
|
worker_node?: Common.NodeIds[];
|
|
617
668
|
}
|
|
618
669
|
|
|
619
670
|
export type Tasks = Record<string, Task>
|
|
620
671
|
|
|
621
|
-
export type
|
|
622
|
-
_id?: Common.Id[];
|
|
623
|
-
algorithm?: Algorithm;
|
|
624
|
-
function_name?: FunctionName;
|
|
625
|
-
model_id?: Common.Name;
|
|
626
|
-
name?: OwnerNameKeyword;
|
|
627
|
-
'owner.name.keyword'?: OwnerNameKeyword;
|
|
628
|
-
type?: Type;
|
|
629
|
-
}
|
|
672
|
+
export type TaskState = 'CANCELLED' | 'CANCELLING' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'CREATED' | 'EXPIRED' | 'FAILED' | 'RUNNING'
|
|
630
673
|
|
|
631
674
|
export type Tool = {
|
|
632
675
|
attributes?: ToolAttributes;
|
|
@@ -652,9 +695,11 @@ export type ToolItems = {
|
|
|
652
695
|
[key: string]: any;
|
|
653
696
|
}
|
|
654
697
|
|
|
698
|
+
export type ToolName = 'AgentTool' | 'CatIndexTool' | 'ConnectorTool' | 'CreateAnomalyDetectorTool' | 'IndexMappingTool' | 'ListIndexTool' | 'LogPatternTool' | 'MLModelTool' | 'NeuralSparseSearchTool' | 'PPLTool' | 'QueryPlanningTool' | 'RAGTool' | 'ReadFromScratchPadTool' | 'SearchAlertsTool' | 'SearchAnomalyDetectorsTool' | 'SearchAnomalyResultsTool' | 'SearchIndexTool' | 'SearchMonitorsTool' | 'VectorDBTool' | 'VisualizationTool' | 'WriteToScratchPadTool'
|
|
699
|
+
|
|
655
700
|
export type TrainParameters = {
|
|
656
701
|
centroids?: number;
|
|
657
|
-
distance_type?:
|
|
702
|
+
distance_type?: KMeansDistanceType;
|
|
658
703
|
iterations?: number;
|
|
659
704
|
}
|
|
660
705
|
|
|
@@ -668,10 +713,6 @@ export type TrainResponse = {
|
|
|
668
713
|
status: Status;
|
|
669
714
|
}
|
|
670
715
|
|
|
671
|
-
export type Type = {
|
|
672
|
-
value?: 'conversational' | 'conversational_flow' | 'flow';
|
|
673
|
-
}
|
|
674
|
-
|
|
675
716
|
export type UndeployModelNode = {
|
|
676
717
|
stats?: UndeployModelNodeStats;
|
|
677
718
|
}
|
|
@@ -693,7 +734,7 @@ export type UpdateModelGroupResponse = {
|
|
|
693
734
|
}
|
|
694
735
|
|
|
695
736
|
export type Values = {
|
|
696
|
-
column_type?:
|
|
737
|
+
column_type?: ColumnType;
|
|
697
738
|
value?: number;
|
|
698
739
|
}
|
|
699
740
|
|