diff --git a/internal/channel/types.go b/internal/channel/types.go index 2a4d4d46..c0b66dec 100644 --- a/internal/channel/types.go +++ b/internal/channel/types.go @@ -306,27 +306,27 @@ func BindingCriteriaFromIdentity(identity Identity) BindingCriteria { // ChannelConfig holds the configuration for a bot's channel integration. type ChannelConfig struct { - ID string - BotID string - ChannelType ChannelType - Credentials map[string]any - ExternalIdentity string - SelfIdentity map[string]any - Routing map[string]any - Status string - VerifiedAt time.Time - CreatedAt time.Time - UpdatedAt time.Time + ID string `json:"id"` + BotID string `json:"bot_id"` + ChannelType ChannelType `json:"channel_type"` + Credentials map[string]any `json:"credentials"` + ExternalIdentity string `json:"external_identity"` + SelfIdentity map[string]any `json:"self_identity"` + Routing map[string]any `json:"routing"` + Status string `json:"status"` + VerifiedAt time.Time `json:"verified_at"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` } // ChannelIdentityBinding represents a channel identity's binding to a specific channel type. type ChannelIdentityBinding struct { - ID string - ChannelType ChannelType - ChannelIdentityID string - Config map[string]any - CreatedAt time.Time - UpdatedAt time.Time + ID string `json:"id"` + ChannelType ChannelType `json:"channel_type"` + ChannelIdentityID string `json:"channel_identity_id"` + Config map[string]any `json:"config"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` } // UpsertConfigRequest is the input for creating or updating a channel configuration. diff --git a/internal/conversation/flow/resolver.go b/internal/conversation/flow/resolver.go index db402b58..a7a3c101 100644 --- a/internal/conversation/flow/resolver.go +++ b/internal/conversation/flow/resolver.go @@ -654,6 +654,7 @@ func (r *Resolver) loadMemoryContextMessage(ctx context.Context, req conversatio "scopeId": req.BotID, "bot_id": req.BotID, }, + NoStats: true, }) if err != nil { r.logger.Warn("memory search for context failed", diff --git a/internal/handlers/memory.go b/internal/handlers/memory.go index 5cf12dda..aa908b77 100644 --- a/internal/handlers/memory.go +++ b/internal/handlers/memory.go @@ -42,6 +42,7 @@ type memorySearchPayload struct { Filters map[string]any `json:"filters,omitempty"` Sources []string `json:"sources,omitempty"` EmbeddingEnabled *bool `json:"embedding_enabled,omitempty"` + NoStats bool `json:"no_stats,omitempty"` } type memoryDeletePayload struct { @@ -236,6 +237,7 @@ func (h *MemoryHandler) ChatSearch(c echo.Context) error { Filters: filters, Sources: payload.Sources, EmbeddingEnabled: payload.EmbeddingEnabled, + NoStats: payload.NoStats, } resp, err := h.service.Search(c.Request().Context(), req) if err != nil { @@ -263,6 +265,7 @@ func (h *MemoryHandler) ChatSearch(c echo.Context) error { // @Tags memory // @Produce json // @Param bot_id path string true "Bot ID" +// @Param no_stats query bool false "Skip sparse vector stats (top_k_buckets, cdf_curve) to reduce overhead" // @Success 200 {object} memory.SearchResponse // @Failure 400 {object} ErrorResponse // @Failure 403 {object} ErrorResponse @@ -285,6 +288,7 @@ func (h *MemoryHandler) ChatGetAll(c echo.Context) error { return err } + noStats := strings.EqualFold(c.QueryParam("no_stats"), "true") scopes, err := h.resolveEnabledScopes(c.Request().Context(), containerID) if err != nil { return err @@ -294,6 +298,7 @@ func (h *MemoryHandler) ChatGetAll(c echo.Context) error { for _, scope := range scopes { req := memory.GetAllRequest{ Filters: buildNamespaceFilters(scope.Namespace, scope.ScopeID, nil), + NoStats: noStats, } resp, err := h.service.GetAll(c.Request().Context(), req) if err != nil { diff --git a/internal/handlers/message.go b/internal/handlers/message.go index d25b2e0a..7ac36048 100644 --- a/internal/handlers/message.go +++ b/internal/handlers/message.go @@ -262,9 +262,19 @@ func parseSinceParam(raw string) (time.Time, bool, error) { return time.Time{}, false, fmt.Errorf("invalid since parameter") } -// ListMessages lists messages for a conversation with optional pagination. -// Query: limit (default 30), before (optional ISO8601 or unix ms) for older messages. -// Returns items in ascending created_at order (oldest first). +// ListMessages godoc +// @Summary List bot history messages +// @Description List messages for a bot history with optional pagination +// @Tags messages +// @Produce json +// @Param bot_id path string true "Bot ID" +// @Param limit query int false "Limit" +// @Param before query string false "Before" +// @Success 200 {object} map[string][]messagepkg.Message +// @Failure 400 {object} ErrorResponse +// @Failure 403 {object} ErrorResponse +// @Failure 500 {object} ErrorResponse +// @Router /bots/{bot_id}/messages [get] func (h *MessageHandler) ListMessages(c echo.Context) error { channelIdentityID, err := h.requireChannelIdentityID(c) if err != nil { diff --git a/internal/mcp/providers/memory/provider.go b/internal/mcp/providers/memory/provider.go index 3478da4a..d147e84e 100644 --- a/internal/mcp/providers/memory/provider.go +++ b/internal/mcp/providers/memory/provider.go @@ -136,6 +136,7 @@ func (p *Executor) CallTool(ctx context.Context, session mcpgw.ToolSessionContex "scopeId": botID, "bot_id": botID, }, + NoStats: true, }) if err != nil { p.logger.Warn("memory search namespace failed", slog.String("namespace", sharedMemoryNamespace), slog.Any("error", err)) diff --git a/internal/memory/qdrant_store.go b/internal/memory/qdrant_store.go index a8216d27..dfcd3cc4 100644 --- a/internal/memory/qdrant_store.go +++ b/internal/memory/qdrant_store.go @@ -224,7 +224,7 @@ func (s *QdrantStore) Search(ctx context.Context, vector []float32, limit int, f return points, scores, nil } -func (s *QdrantStore) SearchSparse(ctx context.Context, indices []uint32, values []float32, limit int, filters map[string]any) ([]qdrantPoint, []float64, error) { +func (s *QdrantStore) SearchSparse(ctx context.Context, indices []uint32, values []float32, limit int, filters map[string]any, withSparseVectors bool) ([]qdrantPoint, []float64, error) { if limit <= 0 { limit = 10 } @@ -236,24 +236,32 @@ func (s *QdrantStore) SearchSparse(ctx context.Context, indices []uint32, values } filter := buildQdrantFilter(filters) using := qdrant.PtrOf(s.sparseVectorName) - results, err := s.client.Query(ctx, &qdrant.QueryPoints{ + query := &qdrant.QueryPoints{ CollectionName: s.collection, Query: qdrant.NewQuerySparse(indices, values), Using: using, Limit: qdrant.PtrOf(uint64(limit)), Filter: filter, WithPayload: qdrant.NewWithPayload(true), - }) + } + if withSparseVectors && s.sparseVectorName != "" { + query.WithVectors = qdrant.NewWithVectorsInclude(s.sparseVectorName) + } + results, err := s.client.Query(ctx, query) if err != nil { return nil, nil, err } points := make([]qdrantPoint, 0, len(results)) scores := make([]float64, 0, len(results)) for _, scored := range results { - points = append(points, qdrantPoint{ + p := qdrantPoint{ ID: pointIDToString(scored.GetId()), Payload: valueMapToInterface(scored.GetPayload()), - }) + } + if withSparseVectors { + p.SparseIndices, p.SparseValues = extractSparseVector(scored.GetVectors(), s.sparseVectorName) + } + points = append(points, p) scores = append(scores, float64(scored.GetScore())) } return points, scores, nil @@ -280,7 +288,7 @@ func (s *QdrantStore) SearchBySources(ctx context.Context, vector []float32, lim return pointsBySource, scoresBySource, nil } -func (s *QdrantStore) SearchSparseBySources(ctx context.Context, indices []uint32, values []float32, limit int, filters map[string]any, sources []string) (map[string][]qdrantPoint, map[string][]float64, error) { +func (s *QdrantStore) SearchSparseBySources(ctx context.Context, indices []uint32, values []float32, limit int, filters map[string]any, sources []string, withSparseVectors bool) (map[string][]qdrantPoint, map[string][]float64, error) { pointsBySource := make(map[string][]qdrantPoint, len(sources)) scoresBySource := make(map[string][]float64, len(sources)) if len(sources) == 0 { @@ -291,7 +299,7 @@ func (s *QdrantStore) SearchSparseBySources(ctx context.Context, indices []uint3 if source != "" { merged["source"] = source } - points, scores, err := s.SearchSparse(ctx, indices, values, limit, merged) + points, scores, err := s.SearchSparse(ctx, indices, values, limit, merged, withSparseVectors) if err != nil { return nil, nil, err } @@ -345,27 +353,35 @@ func (s *QdrantStore) DeleteBatch(ctx context.Context, ids []string) error { return err } -func (s *QdrantStore) List(ctx context.Context, limit int, filters map[string]any) ([]qdrantPoint, error) { +func (s *QdrantStore) List(ctx context.Context, limit int, filters map[string]any, withSparseVectors bool) ([]qdrantPoint, error) { if limit <= 0 { limit = 100 } filter := buildQdrantFilter(filters) - points, err := s.client.Scroll(ctx, &qdrant.ScrollPoints{ + scroll := &qdrant.ScrollPoints{ CollectionName: s.collection, Limit: qdrant.PtrOf(uint32(limit)), Filter: filter, WithPayload: qdrant.NewWithPayload(true), - }) + } + if withSparseVectors && s.sparseVectorName != "" { + scroll.WithVectors = qdrant.NewWithVectorsInclude(s.sparseVectorName) + } + points, err := s.client.Scroll(ctx, scroll) if err != nil { return nil, err } result := make([]qdrantPoint, 0, len(points)) for _, point := range points { - result = append(result, qdrantPoint{ + p := qdrantPoint{ ID: pointIDToString(point.GetId()), Payload: valueMapToInterface(point.GetPayload()), - }) + } + if withSparseVectors { + p.SparseIndices, p.SparseValues = extractSparseVector(point.GetVectors(), s.sparseVectorName) + } + result = append(result, p) } return result, nil } @@ -395,6 +411,39 @@ func (s *QdrantStore) Scroll(ctx context.Context, limit int, filters map[string] return result, nextOffset, nil } +// extractSparseVector extracts sparse indices and values from a VectorsOutput. +// It handles both the new oneof format (GetSparse) and the deprecated flat fields +// (GetIndices + GetData) for backward compatibility with older Qdrant servers. +func extractSparseVector(vectors *qdrant.VectorsOutput, sparseVectorName string) ([]uint32, []float32) { + if vectors == nil { + return nil, nil + } + // Try named vectors first (most common for collections with named vectors). + if namedOut := vectors.GetVectors(); namedOut != nil { + vecOut, ok := namedOut.GetVectors()[sparseVectorName] + if ok && vecOut != nil { + return extractSparseFromVectorOutput(vecOut) + } + } + // Fallback: single unnamed vector (when Qdrant returns only one vector). + if vecOut := vectors.GetVector(); vecOut != nil { + return extractSparseFromVectorOutput(vecOut) + } + return nil, nil +} + +func extractSparseFromVectorOutput(vecOut *qdrant.VectorOutput) ([]uint32, []float32) { + // New oneof format. + if sparse := vecOut.GetSparse(); sparse != nil { + return sparse.GetIndices(), sparse.GetValues() + } + // Deprecated flat fields fallback (older Qdrant server versions). + if vecOut.GetIndices() != nil && len(vecOut.GetIndices().GetData()) > 0 { + return vecOut.GetIndices().GetData(), vecOut.GetData() + } + return nil, nil +} + func (s *QdrantStore) Count(ctx context.Context, filters map[string]any) (uint64, error) { filter := buildQdrantFilter(filters) result, err := s.client.Count(ctx, &qdrant.CountPoints{ diff --git a/internal/memory/service.go b/internal/memory/service.go index f57f7f16..c1b9b530 100644 --- a/internal/memory/service.go +++ b/internal/memory/service.go @@ -231,8 +231,9 @@ func (s *Service) Search(ctx context.Context, req SearchRequest) (SearchResponse return SearchResponse{}, err } indices, values := s.bm25.BuildQueryVector(lang, termFreq) + wantStats := !req.NoStats if len(req.Sources) == 0 { - points, scores, err := s.store.SearchSparse(ctx, indices, values, req.Limit, filters) + points, scores, err := s.store.SearchSparse(ctx, indices, values, req.Limit, filters, wantStats) if err != nil { return SearchResponse{}, err } @@ -242,15 +243,37 @@ func (s *Service) Search(ctx context.Context, req SearchRequest) (SearchResponse if idx < len(scores) { item.Score = scores[idx] } + if wantStats { + item.TopKBuckets, item.CDFCurve = computeSparseVectorStats(point.SparseIndices, point.SparseValues) + } results = append(results, item) } return SearchResponse{Results: results}, nil } - pointsBySource, scoresBySource, err := s.store.SearchSparseBySources(ctx, indices, values, req.Limit, filters, req.Sources) + pointsBySource, scoresBySource, err := s.store.SearchSparseBySources(ctx, indices, values, req.Limit, filters, req.Sources, wantStats) if err != nil { return SearchResponse{}, err } + // Build sparse vector lookup before fusion (fusion discards raw points). + var sparseByID map[string]qdrantPoint + if wantStats { + sparseByID = make(map[string]qdrantPoint) + for _, pts := range pointsBySource { + for _, p := range pts { + if len(p.SparseIndices) > 0 { + sparseByID[p.ID] = p + } + } + } + } results := fuseByRankFusion(pointsBySource, scoresBySource) + if wantStats { + for i := range results { + if p, ok := sparseByID[results[i].ID]; ok { + results[i].TopKBuckets, results[i].CDFCurve = computeSparseVectorStats(p.SparseIndices, p.SparseValues) + } + } + } return SearchResponse{Results: results}, nil } @@ -428,13 +451,18 @@ func (s *Service) GetAll(ctx context.Context, req GetAllRequest) (SearchResponse return SearchResponse{}, fmt.Errorf("bot_id, agent_id or run_id is required") } - points, err := s.store.List(ctx, req.Limit, filters) + wantStats := !req.NoStats + points, err := s.store.List(ctx, req.Limit, filters, wantStats) if err != nil { return SearchResponse{}, err } results := make([]MemoryItem, 0, len(points)) for _, point := range points { - results = append(results, payloadToMemoryItem(point.ID, point.Payload)) + item := payloadToMemoryItem(point.ID, point.Payload) + if wantStats { + item.TopKBuckets, item.CDFCurve = computeSparseVectorStats(point.SparseIndices, point.SparseValues) + } + results = append(results, item) } return SearchResponse{Results: results}, nil } @@ -504,7 +532,7 @@ func (s *Service) Compact(ctx context.Context, filters map[string]any, ratio flo } // Fetch all existing memories. - points, err := s.store.List(ctx, 0, filters) + points, err := s.store.List(ctx, 0, filters, false) if err != nil { return CompactResult{}, err } @@ -605,7 +633,7 @@ func (s *Service) Usage(ctx context.Context, filters map[string]any) (UsageRespo if s.store == nil { return UsageResponse{}, fmt.Errorf("qdrant store not configured") } - points, err := s.store.List(ctx, 0, filters) + points, err := s.store.List(ctx, 0, filters, false) if err != nil { return UsageResponse{}, err } @@ -695,7 +723,7 @@ func (s *Service) collectCandidates(ctx context.Context, facts []string, filters return nil, err } indices, values := s.bm25.BuildQueryVector(lang, termFreq) - points, _, err := s.store.SearchSparse(ctx, indices, values, 5, filters) + points, _, err := s.store.SearchSparse(ctx, indices, values, 5, filters, false) if err != nil { return nil, err } @@ -1147,6 +1175,48 @@ func mergeMetadata(base any, extra map[string]any) map[string]any { return merged } +// computeSparseVectorStats derives Top-K Bucket bar chart data and a CDF +// (cumulative contribution curve) from a sparse vector's indices and values. +func computeSparseVectorStats(indices []uint32, values []float32) ([]TopKBucket, []CDFPoint) { + n := len(indices) + if n == 0 || len(values) == 0 { + return nil, nil + } + if len(values) < n { + n = len(values) + } + + // Build paired buckets and compute total weight in one pass. + buckets := make([]TopKBucket, n) + var totalWeight float64 + for i := 0; i < n; i++ { + buckets[i] = TopKBucket{Index: indices[i], Value: values[i]} + totalWeight += float64(values[i]) + } + + // Sort by value descending. + sort.Slice(buckets, func(i, j int) bool { + return buckets[i].Value > buckets[j].Value + }) + + // Build CDF curve. + cdf := make([]CDFPoint, n) + var cumulative float64 + for k := 0; k < n; k++ { + cumulative += float64(buckets[k].Value) + fraction := cumulative / totalWeight + if fraction > 1.0 { + fraction = 1.0 + } + cdf[k] = CDFPoint{ + K: k + 1, + Cumulative: math.Round(fraction*10000) / 10000, // 4 decimal places + } + } + + return buckets, cdf +} + type rerankCandidate struct { ID string Payload map[string]any diff --git a/internal/memory/types.go b/internal/memory/types.go index f18bd7c0..d309db18 100644 --- a/internal/memory/types.go +++ b/internal/memory/types.go @@ -36,6 +36,7 @@ type SearchRequest struct { Filters map[string]any `json:"filters,omitempty"` Sources []string `json:"sources,omitempty"` EmbeddingEnabled *bool `json:"embedding_enabled,omitempty"` + NoStats bool `json:"no_stats,omitempty"` } type UpdateRequest struct { @@ -50,6 +51,7 @@ type GetAllRequest struct { RunID string `json:"run_id,omitempty"` Limit int `json:"limit,omitempty"` Filters map[string]any `json:"filters,omitempty"` + NoStats bool `json:"no_stats,omitempty"` } type DeleteAllRequest struct { @@ -86,16 +88,30 @@ type EmbedUpsertResponse struct { } type MemoryItem struct { - ID string `json:"id"` - Memory string `json:"memory"` - Hash string `json:"hash,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - UpdatedAt string `json:"updated_at,omitempty"` - Score float64 `json:"score,omitempty"` - Metadata map[string]any `json:"metadata,omitempty"` - BotID string `json:"bot_id,omitempty"` - AgentID string `json:"agent_id,omitempty"` - RunID string `json:"run_id,omitempty"` + ID string `json:"id"` + Memory string `json:"memory"` + Hash string `json:"hash,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` + Score float64 `json:"score,omitempty"` + Metadata map[string]any `json:"metadata,omitempty"` + BotID string `json:"bot_id,omitempty"` + AgentID string `json:"agent_id,omitempty"` + RunID string `json:"run_id,omitempty"` + TopKBuckets []TopKBucket `json:"top_k_buckets,omitempty"` + CDFCurve []CDFPoint `json:"cdf_curve,omitempty"` +} + +// TopKBucket represents one bar in the Top-K sparse dimension bar chart. +type TopKBucket struct { + Index uint32 `json:"index"` // sparse dimension index (term hash) + Value float32 `json:"value"` // weight (term frequency) +} + +// CDFPoint represents one point on the cumulative contribution curve. +type CDFPoint struct { + K int `json:"k"` // rank position (1-based, sorted by value desc) + Cumulative float64 `json:"cumulative"` // cumulative weight fraction [0.0, 1.0] } type SearchResponse struct { diff --git a/packages/sdk/src/@pinia/colada.gen.ts b/packages/sdk/src/@pinia/colada.gen.ts index 8a97c22d..347e55b5 100644 --- a/packages/sdk/src/@pinia/colada.gen.ts +++ b/packages/sdk/src/@pinia/colada.gen.ts @@ -4,8 +4,8 @@ import { type _JSONValue, defineQueryOptions, type UseMutationOptions } from '@p import { serializeQueryKeyValue } from '../client'; import { client } from '../client.gen'; -import { deleteBotsByBotIdContainer, deleteBotsByBotIdContainerSkills, deleteBotsByBotIdMcpById, deleteBotsByBotIdScheduleById, deleteBotsByBotIdSettings, deleteBotsByBotIdSubagentsById, deleteBotsById, deleteBotsByIdMembersByUserId, deleteModelsById, deleteModelsModelByModelId, deleteProvidersById, getBots, getBotsByBotIdContainer, getBotsByBotIdContainerSkills, getBotsByBotIdContainerSnapshots, getBotsByBotIdMcp, getBotsByBotIdMcpById, getBotsByBotIdSchedule, getBotsByBotIdScheduleById, getBotsByBotIdSettings, getBotsByBotIdSubagents, getBotsByBotIdSubagentsById, getBotsByBotIdSubagentsByIdContext, getBotsByBotIdSubagentsByIdSkills, getBotsById, getBotsByIdChannelByPlatform, getBotsByIdChecks, getBotsByIdMembers, getChannels, getChannelsByPlatform, getModels, getModelsById, getModelsCount, getModelsModelByModelId, getProviders, getProvidersById, getProvidersByIdModels, getProvidersCount, getProvidersNameByName, getUsers, getUsersById, getUsersMe, getUsersMeChannelsByPlatform, getUsersMeIdentities, type Options, postAuthLogin, postBots, postBotsByBotIdContainer, postBotsByBotIdContainerSkills, postBotsByBotIdContainerSnapshots, postBotsByBotIdContainerStart, postBotsByBotIdContainerStop, postBotsByBotIdMcp, postBotsByBotIdMcpStdio, postBotsByBotIdMcpStdioByConnectionId, postBotsByBotIdSchedule, postBotsByBotIdSettings, postBotsByBotIdSubagents, postBotsByBotIdSubagentsByIdSkills, postBotsByBotIdTools, postBotsByIdChannelByPlatformSend, postBotsByIdChannelByPlatformSendChat, postEmbeddings, postModels, postProviders, postUsers, putBotsByBotIdMcpById, putBotsByBotIdScheduleById, putBotsByBotIdSettings, putBotsByBotIdSubagentsById, putBotsByBotIdSubagentsByIdContext, putBotsByBotIdSubagentsByIdSkills, putBotsById, putBotsByIdChannelByPlatform, putBotsByIdMembers, putBotsByIdOwner, putModelsById, putModelsModelByModelId, putProvidersById, putUsersById, putUsersByIdPassword, putUsersMe, putUsersMeChannelsByPlatform, putUsersMePassword } from '../sdk.gen'; -import type { DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerError, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsError, DeleteBotsByBotIdContainerSkillsResponse, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdError, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdError, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsError, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdError, DeleteBotsByIdData, DeleteBotsByIdError, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdError, DeleteBotsByIdResponse, DeleteModelsByIdData, DeleteModelsByIdError, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdError, DeleteProvidersByIdData, DeleteProvidersByIdError, GetBotsByBotIdContainerData, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpData, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleData, GetBotsByBotIdSettingsData, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsData, GetBotsByIdChannelByPlatformData, GetBotsByIdChecksData, GetBotsByIdData, GetBotsByIdMembersData, GetBotsData, GetChannelsByPlatformData, GetChannelsData, GetModelsByIdData, GetModelsCountData, GetModelsData, GetModelsModelByModelIdData, GetProvidersByIdData, GetProvidersByIdModelsData, GetProvidersCountData, GetProvidersData, GetProvidersNameByNameData, GetUsersByIdData, GetUsersData, GetUsersMeChannelsByPlatformData, GetUsersMeData, GetUsersMeIdentitiesData, PostAuthLoginData, PostAuthLoginError, PostAuthLoginResponse, PostBotsByBotIdContainerData, PostBotsByBotIdContainerError, PostBotsByBotIdContainerResponse, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsError, PostBotsByBotIdContainerSkillsResponse, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsError, PostBotsByBotIdContainerSnapshotsResponse, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartError, PostBotsByBotIdContainerStartResponse, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopError, PostBotsByBotIdContainerStopResponse, PostBotsByBotIdMcpData, PostBotsByBotIdMcpError, PostBotsByBotIdMcpResponse, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdError, PostBotsByBotIdMcpStdioByConnectionIdResponse, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioError, PostBotsByBotIdMcpStdioResponse, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleError, PostBotsByBotIdScheduleResponse, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsError, PostBotsByBotIdSettingsResponse, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsError, PostBotsByBotIdSubagentsByIdSkillsResponse, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsError, PostBotsByBotIdSubagentsResponse, PostBotsByBotIdToolsData, PostBotsByBotIdToolsError, PostBotsByBotIdToolsResponse, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatError, PostBotsByIdChannelByPlatformSendChatResponse, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendError, PostBotsByIdChannelByPlatformSendResponse, PostBotsData, PostBotsError, PostBotsResponse, PostEmbeddingsData, PostEmbeddingsError, PostEmbeddingsResponse, PostModelsData, PostModelsError, PostModelsResponse, PostProvidersData, PostProvidersError, PostProvidersResponse, PostUsersData, PostUsersError, PostUsersResponse, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdError, PutBotsByBotIdMcpByIdResponse, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdError, PutBotsByBotIdScheduleByIdResponse, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsError, PutBotsByBotIdSettingsResponse, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextError, PutBotsByBotIdSubagentsByIdContextResponse, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdError, PutBotsByBotIdSubagentsByIdResponse, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsError, PutBotsByBotIdSubagentsByIdSkillsResponse, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformError, PutBotsByIdChannelByPlatformResponse, PutBotsByIdData, PutBotsByIdError, PutBotsByIdMembersData, PutBotsByIdMembersError, PutBotsByIdMembersResponse, PutBotsByIdOwnerData, PutBotsByIdOwnerError, PutBotsByIdOwnerResponse, PutBotsByIdResponse, PutModelsByIdData, PutModelsByIdError, PutModelsByIdResponse, PutModelsModelByModelIdData, PutModelsModelByModelIdError, PutModelsModelByModelIdResponse, PutProvidersByIdData, PutProvidersByIdError, PutProvidersByIdResponse, PutUsersByIdData, PutUsersByIdError, PutUsersByIdPasswordData, PutUsersByIdPasswordError, PutUsersByIdResponse, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformError, PutUsersMeChannelsByPlatformResponse, PutUsersMeData, PutUsersMeError, PutUsersMePasswordData, PutUsersMePasswordError, PutUsersMeResponse } from '../types.gen'; +import { deleteBotsByBotIdContainer, deleteBotsByBotIdContainerSkills, deleteBotsByBotIdMcpById, deleteBotsByBotIdMemory, deleteBotsByBotIdMemoryById, deleteBotsByBotIdScheduleById, deleteBotsByBotIdSettings, deleteBotsByBotIdSubagentsById, deleteBotsById, deleteBotsByIdMembersByUserId, deleteModelsById, deleteModelsModelByModelId, deleteProvidersById, getBots, getBotsByBotIdContainer, getBotsByBotIdContainerSkills, getBotsByBotIdContainerSnapshots, getBotsByBotIdMcp, getBotsByBotIdMcpById, getBotsByBotIdMcpExport, getBotsByBotIdMemory, getBotsByBotIdMemoryUsage, getBotsByBotIdMessages, getBotsByBotIdSchedule, getBotsByBotIdScheduleById, getBotsByBotIdSettings, getBotsByBotIdSubagents, getBotsByBotIdSubagentsById, getBotsByBotIdSubagentsByIdContext, getBotsByBotIdSubagentsByIdSkills, getBotsById, getBotsByIdChannelByPlatform, getBotsByIdChecks, getBotsByIdChecksKeys, getBotsByIdChecksRunByKey, getBotsByIdMembers, getChannels, getChannelsByPlatform, getModels, getModelsById, getModelsCount, getModelsModelByModelId, getProviders, getProvidersById, getProvidersByIdModels, getProvidersCount, getProvidersNameByName, getUsers, getUsersById, getUsersMe, getUsersMeChannelsByPlatform, getUsersMeIdentities, type Options, postAuthLogin, postBots, postBotsByBotIdContainer, postBotsByBotIdContainerSkills, postBotsByBotIdContainerSnapshots, postBotsByBotIdContainerStart, postBotsByBotIdContainerStop, postBotsByBotIdMcp, postBotsByBotIdMcpOpsBatchDelete, postBotsByBotIdMcpStdio, postBotsByBotIdMcpStdioByConnectionId, postBotsByBotIdMemory, postBotsByBotIdMemoryCompact, postBotsByBotIdMemoryRebuild, postBotsByBotIdMemorySearch, postBotsByBotIdSchedule, postBotsByBotIdSettings, postBotsByBotIdSubagents, postBotsByBotIdSubagentsByIdSkills, postBotsByBotIdTools, postBotsByIdChannelByPlatformSend, postBotsByIdChannelByPlatformSendChat, postEmbeddings, postModels, postProviders, postUsers, putBotsByBotIdMcpById, putBotsByBotIdMcpImport, putBotsByBotIdScheduleById, putBotsByBotIdSettings, putBotsByBotIdSubagentsById, putBotsByBotIdSubagentsByIdContext, putBotsByBotIdSubagentsByIdSkills, putBotsById, putBotsByIdChannelByPlatform, putBotsByIdMembers, putBotsByIdOwner, putModelsById, putModelsModelByModelId, putProvidersById, putUsersById, putUsersByIdPassword, putUsersMe, putUsersMeChannelsByPlatform, putUsersMePassword } from '../sdk.gen'; +import type { DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerError, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsError, DeleteBotsByBotIdContainerSkillsResponse, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdError, DeleteBotsByBotIdMemoryByIdData, DeleteBotsByBotIdMemoryByIdError, DeleteBotsByBotIdMemoryByIdResponse, DeleteBotsByBotIdMemoryData, DeleteBotsByBotIdMemoryError, DeleteBotsByBotIdMemoryResponse, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdError, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsError, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdError, DeleteBotsByIdData, DeleteBotsByIdError, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdError, DeleteBotsByIdResponse, DeleteModelsByIdData, DeleteModelsByIdError, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdError, DeleteProvidersByIdData, DeleteProvidersByIdError, GetBotsByBotIdContainerData, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpData, GetBotsByBotIdMcpExportData, GetBotsByBotIdMemoryData, GetBotsByBotIdMemoryUsageData, GetBotsByBotIdMessagesData, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleData, GetBotsByBotIdSettingsData, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsData, GetBotsByIdChannelByPlatformData, GetBotsByIdChecksData, GetBotsByIdChecksKeysData, GetBotsByIdChecksRunByKeyData, GetBotsByIdData, GetBotsByIdMembersData, GetBotsData, GetChannelsByPlatformData, GetChannelsData, GetModelsByIdData, GetModelsCountData, GetModelsData, GetModelsModelByModelIdData, GetProvidersByIdData, GetProvidersByIdModelsData, GetProvidersCountData, GetProvidersData, GetProvidersNameByNameData, GetUsersByIdData, GetUsersData, GetUsersMeChannelsByPlatformData, GetUsersMeData, GetUsersMeIdentitiesData, PostAuthLoginData, PostAuthLoginError, PostAuthLoginResponse, PostBotsByBotIdContainerData, PostBotsByBotIdContainerError, PostBotsByBotIdContainerResponse, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsError, PostBotsByBotIdContainerSkillsResponse, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsError, PostBotsByBotIdContainerSnapshotsResponse, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartError, PostBotsByBotIdContainerStartResponse, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopError, PostBotsByBotIdContainerStopResponse, PostBotsByBotIdMcpData, PostBotsByBotIdMcpError, PostBotsByBotIdMcpOpsBatchDeleteData, PostBotsByBotIdMcpOpsBatchDeleteError, PostBotsByBotIdMcpResponse, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdError, PostBotsByBotIdMcpStdioByConnectionIdResponse, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioError, PostBotsByBotIdMcpStdioResponse, PostBotsByBotIdMemoryCompactData, PostBotsByBotIdMemoryCompactError, PostBotsByBotIdMemoryCompactResponse, PostBotsByBotIdMemoryData, PostBotsByBotIdMemoryError, PostBotsByBotIdMemoryRebuildData, PostBotsByBotIdMemoryRebuildError, PostBotsByBotIdMemoryRebuildResponse, PostBotsByBotIdMemoryResponse, PostBotsByBotIdMemorySearchData, PostBotsByBotIdMemorySearchError, PostBotsByBotIdMemorySearchResponse, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleError, PostBotsByBotIdScheduleResponse, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsError, PostBotsByBotIdSettingsResponse, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsError, PostBotsByBotIdSubagentsByIdSkillsResponse, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsError, PostBotsByBotIdSubagentsResponse, PostBotsByBotIdToolsData, PostBotsByBotIdToolsError, PostBotsByBotIdToolsResponse, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatError, PostBotsByIdChannelByPlatformSendChatResponse, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendError, PostBotsByIdChannelByPlatformSendResponse, PostBotsData, PostBotsError, PostBotsResponse, PostEmbeddingsData, PostEmbeddingsError, PostEmbeddingsResponse, PostModelsData, PostModelsError, PostModelsResponse, PostProvidersData, PostProvidersError, PostProvidersResponse, PostUsersData, PostUsersError, PostUsersResponse, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdError, PutBotsByBotIdMcpByIdResponse, PutBotsByBotIdMcpImportData, PutBotsByBotIdMcpImportError, PutBotsByBotIdMcpImportResponse, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdError, PutBotsByBotIdScheduleByIdResponse, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsError, PutBotsByBotIdSettingsResponse, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextError, PutBotsByBotIdSubagentsByIdContextResponse, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdError, PutBotsByBotIdSubagentsByIdResponse, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsError, PutBotsByBotIdSubagentsByIdSkillsResponse, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformError, PutBotsByIdChannelByPlatformResponse, PutBotsByIdData, PutBotsByIdError, PutBotsByIdMembersData, PutBotsByIdMembersError, PutBotsByIdMembersResponse, PutBotsByIdOwnerData, PutBotsByIdOwnerError, PutBotsByIdOwnerResponse, PutBotsByIdResponse, PutModelsByIdData, PutModelsByIdError, PutModelsByIdResponse, PutModelsModelByModelIdData, PutModelsModelByModelIdError, PutModelsModelByModelIdResponse, PutProvidersByIdData, PutProvidersByIdError, PutProvidersByIdResponse, PutUsersByIdData, PutUsersByIdError, PutUsersByIdPasswordData, PutUsersByIdPasswordError, PutUsersByIdResponse, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformError, PutUsersMeChannelsByPlatformResponse, PutUsersMeData, PutUsersMeError, PutUsersMePasswordData, PutUsersMePasswordError, PutUsersMeResponse } from '../types.gen'; /** * Login @@ -277,6 +277,22 @@ export const postBotsByBotIdMcpMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMcpOpsBatchDeleteError> => ({ + mutation: async (vars) => { + const { data } = await postBotsByBotIdMcpOpsBatchDelete({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + /** * Create MCP stdio proxy * @@ -309,6 +325,41 @@ export const postBotsByBotIdMcpStdioByConnectionIdMutation = (options?: Partial< } }); +export const getBotsByBotIdMcpExportQueryKey = (options?: Options) => createQueryKey('getBotsByBotIdMcpExport', options); + +/** + * Export MCP connections + * + * Export all MCP connections for a bot in standard mcpServers format. + */ +export const getBotsByBotIdMcpExportQuery = defineQueryOptions((options?: Options) => ({ + key: getBotsByBotIdMcpExportQueryKey(options), + query: async (context) => { + const { data } = await getBotsByBotIdMcpExport({ + ...options, + ...context, + throwOnError: true + }); + return data; + } +})); + +/** + * Import MCP connections + * + * Batch import MCP connections from standard mcpServers format. Existing connections (matched by name) get config updated with is_active preserved. New connections are created as active. + */ +export const putBotsByBotIdMcpImportMutation = (options?: Partial>): UseMutationOptions, PutBotsByBotIdMcpImportError> => ({ + mutation: async (vars) => { + const { data } = await putBotsByBotIdMcpImport({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + /** * Delete MCP connection * @@ -360,6 +411,166 @@ export const putBotsByBotIdMcpByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMemoryError> => ({ + mutation: async (vars) => { + const { data } = await deleteBotsByBotIdMemory({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + +export const getBotsByBotIdMemoryQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMemory', options); + +/** + * Get all memories + * + * List all memories in the bot-shared namespace + */ +export const getBotsByBotIdMemoryQuery = defineQueryOptions((options: Options) => ({ + key: getBotsByBotIdMemoryQueryKey(options), + query: async (context) => { + const { data } = await getBotsByBotIdMemory({ + ...options, + ...context, + throwOnError: true + }); + return data; + } +})); + +/** + * Add memory + * + * Add memory into the bot-shared namespace + */ +export const postBotsByBotIdMemoryMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryError> => ({ + mutation: async (vars) => { + const { data } = await postBotsByBotIdMemory({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + +/** + * Compact memories + * + * Consolidate memories by merging similar/redundant entries using LLM. + * + * **ratio** (required, range (0,1]): + * - 0.8 = light compression, mostly dedup, keep ~80% of entries + * - 0.5 = moderate compression, merge similar facts, keep ~50% + * - 0.3 = aggressive compression, heavily consolidate, keep ~30% + * + * **decay_days** (optional): enable time decay — memories older than N days are treated as low priority and more likely to be merged/dropped. + */ +export const postBotsByBotIdMemoryCompactMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryCompactError> => ({ + mutation: async (vars) => { + const { data } = await postBotsByBotIdMemoryCompact({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + +/** + * Rebuild memories from filesystem + * + * Read memory files from the container filesystem (source of truth) and restore missing entries to Qdrant + */ +export const postBotsByBotIdMemoryRebuildMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemoryRebuildError> => ({ + mutation: async (vars) => { + const { data } = await postBotsByBotIdMemoryRebuild({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + +/** + * Search memory + * + * Search memory in the bot-shared namespace + */ +export const postBotsByBotIdMemorySearchMutation = (options?: Partial>): UseMutationOptions, PostBotsByBotIdMemorySearchError> => ({ + mutation: async (vars) => { + const { data } = await postBotsByBotIdMemorySearch({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + +export const getBotsByBotIdMemoryUsageQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMemoryUsage', options); + +/** + * Get memory usage + * + * Query the estimated storage usage of current memories + */ +export const getBotsByBotIdMemoryUsageQuery = defineQueryOptions((options: Options) => ({ + key: getBotsByBotIdMemoryUsageQueryKey(options), + query: async (context) => { + const { data } = await getBotsByBotIdMemoryUsage({ + ...options, + ...context, + throwOnError: true + }); + return data; + } +})); + +/** + * Delete a single memory + * + * Delete a single memory by its ID + */ +export const deleteBotsByBotIdMemoryByIdMutation = (options?: Partial>): UseMutationOptions, DeleteBotsByBotIdMemoryByIdError> => ({ + mutation: async (vars) => { + const { data } = await deleteBotsByBotIdMemoryById({ + ...options, + ...vars, + throwOnError: true + }); + return data; + } +}); + +export const getBotsByBotIdMessagesQueryKey = (options: Options) => createQueryKey('getBotsByBotIdMessages', options); + +/** + * List bot history messages + * + * List messages for a bot history with optional pagination + */ +export const getBotsByBotIdMessagesQuery = defineQueryOptions((options: Options) => ({ + key: getBotsByBotIdMessagesQueryKey(options), + query: async (context) => { + const { data } = await getBotsByBotIdMessages({ + ...options, + ...context, + throwOnError: true + }); + return data; + } +})); + export const getBotsByBotIdScheduleQueryKey = (options?: Options) => createQueryKey('getBotsByBotIdSchedule', options); /** @@ -838,6 +1049,44 @@ export const getBotsByIdChecksQuery = defineQueryOptions((options: Options) => createQueryKey('getBotsByIdChecksKeys', options); + +/** + * List available check keys + * + * Returns all check keys available for a bot (builtin + MCP connections) + */ +export const getBotsByIdChecksKeysQuery = defineQueryOptions((options: Options) => ({ + key: getBotsByIdChecksKeysQueryKey(options), + query: async (context) => { + const { data } = await getBotsByIdChecksKeys({ + ...options, + ...context, + throwOnError: true + }); + return data; + } +})); + +export const getBotsByIdChecksRunByKeyQueryKey = (options: Options) => createQueryKey('getBotsByIdChecksRunByKey', options); + +/** + * Run a single bot check + * + * Evaluate one check key for a bot + */ +export const getBotsByIdChecksRunByKeyQuery = defineQueryOptions((options: Options) => ({ + key: getBotsByIdChecksRunByKeyQueryKey(options), + query: async (context) => { + const { data } = await getBotsByIdChecksRunByKey({ + ...options, + ...context, + throwOnError: true + }); + return data; + } +})); + export const getBotsByIdMembersQueryKey = (options: Options) => createQueryKey('getBotsByIdMembers', options); /** diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index 374c8a07..ada78749 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -1,4 +1,4 @@ // This file is auto-generated by @hey-api/openapi-ts -export { deleteBotsByBotIdContainer, deleteBotsByBotIdContainerSkills, deleteBotsByBotIdMcpById, deleteBotsByBotIdScheduleById, deleteBotsByBotIdSettings, deleteBotsByBotIdSubagentsById, deleteBotsById, deleteBotsByIdMembersByUserId, deleteModelsById, deleteModelsModelByModelId, deleteProvidersById, getBots, getBotsByBotIdContainer, getBotsByBotIdContainerSkills, getBotsByBotIdContainerSnapshots, getBotsByBotIdMcp, getBotsByBotIdMcpById, getBotsByBotIdSchedule, getBotsByBotIdScheduleById, getBotsByBotIdSettings, getBotsByBotIdSubagents, getBotsByBotIdSubagentsById, getBotsByBotIdSubagentsByIdContext, getBotsByBotIdSubagentsByIdSkills, getBotsById, getBotsByIdChannelByPlatform, getBotsByIdChecks, getBotsByIdMembers, getChannels, getChannelsByPlatform, getModels, getModelsById, getModelsCount, getModelsModelByModelId, getProviders, getProvidersById, getProvidersByIdModels, getProvidersCount, getProvidersNameByName, getUsers, getUsersById, getUsersMe, getUsersMeChannelsByPlatform, getUsersMeIdentities, type Options, postAuthLogin, postBots, postBotsByBotIdContainer, postBotsByBotIdContainerSkills, postBotsByBotIdContainerSnapshots, postBotsByBotIdContainerStart, postBotsByBotIdContainerStop, postBotsByBotIdMcp, postBotsByBotIdMcpStdio, postBotsByBotIdMcpStdioByConnectionId, postBotsByBotIdSchedule, postBotsByBotIdSettings, postBotsByBotIdSubagents, postBotsByBotIdSubagentsByIdSkills, postBotsByBotIdTools, postBotsByIdChannelByPlatformSend, postBotsByIdChannelByPlatformSendChat, postEmbeddings, postModels, postProviders, postUsers, putBotsByBotIdMcpById, putBotsByBotIdScheduleById, putBotsByBotIdSettings, putBotsByBotIdSubagentsById, putBotsByBotIdSubagentsByIdContext, putBotsByBotIdSubagentsByIdSkills, putBotsById, putBotsByIdChannelByPlatform, putBotsByIdMembers, putBotsByIdOwner, putModelsById, putModelsModelByModelId, putProvidersById, putUsersById, putUsersByIdPassword, putUsersMe, putUsersMeChannelsByPlatform, putUsersMePassword } from './sdk.gen'; -export type { AccountsAccount, AccountsCreateAccountRequest, AccountsListAccountsResponse, AccountsResetPasswordRequest, AccountsUpdateAccountRequest, AccountsUpdatePasswordRequest, AccountsUpdateProfileRequest, BotsBot, BotsBotCheck, BotsBotMember, BotsCreateBotRequest, BotsListBotsResponse, BotsListChecksResponse, BotsListMembersResponse, BotsTransferBotRequest, BotsUpdateBotRequest, BotsUpsertMemberRequest, ChannelAction, ChannelAttachment, ChannelAttachmentType, ChannelChannelCapabilities, ChannelChannelConfig, ChannelChannelIdentityBinding, ChannelConfigSchema, ChannelFieldSchema, ChannelFieldType, ChannelMessage, ChannelMessageFormat, ChannelMessagePart, ChannelMessagePartType, ChannelMessageTextStyle, ChannelReplyRef, ChannelSendRequest, ChannelTargetHint, ChannelTargetSpec, ChannelThreadRef, ChannelUpsertChannelIdentityConfigRequest, ChannelUpsertConfigRequest, ClientOptions, DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerError, DeleteBotsByBotIdContainerErrors, DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsError, DeleteBotsByBotIdContainerSkillsErrors, DeleteBotsByBotIdContainerSkillsResponse, DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdError, DeleteBotsByBotIdMcpByIdErrors, DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdError, DeleteBotsByBotIdScheduleByIdErrors, DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsError, DeleteBotsByBotIdSettingsErrors, DeleteBotsByBotIdSettingsResponses, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdError, DeleteBotsByBotIdSubagentsByIdErrors, DeleteBotsByBotIdSubagentsByIdResponses, DeleteBotsByIdData, DeleteBotsByIdError, DeleteBotsByIdErrors, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdError, DeleteBotsByIdMembersByUserIdErrors, DeleteBotsByIdMembersByUserIdResponses, DeleteBotsByIdResponse, DeleteBotsByIdResponses, DeleteModelsByIdData, DeleteModelsByIdError, DeleteModelsByIdErrors, DeleteModelsByIdResponses, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdError, DeleteModelsModelByModelIdErrors, DeleteModelsModelByModelIdResponses, DeleteProvidersByIdData, DeleteProvidersByIdError, DeleteProvidersByIdErrors, DeleteProvidersByIdResponses, GetBotsByBotIdContainerData, GetBotsByBotIdContainerError, GetBotsByBotIdContainerErrors, GetBotsByBotIdContainerResponse, GetBotsByBotIdContainerResponses, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSkillsError, GetBotsByBotIdContainerSkillsErrors, GetBotsByBotIdContainerSkillsResponse, GetBotsByBotIdContainerSkillsResponses, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdContainerSnapshotsResponse, GetBotsByBotIdContainerSnapshotsResponses, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpByIdError, GetBotsByBotIdMcpByIdErrors, GetBotsByBotIdMcpByIdResponse, GetBotsByBotIdMcpByIdResponses, GetBotsByBotIdMcpData, GetBotsByBotIdMcpError, GetBotsByBotIdMcpErrors, GetBotsByBotIdMcpResponse, GetBotsByBotIdMcpResponses, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleByIdError, GetBotsByBotIdScheduleByIdErrors, GetBotsByBotIdScheduleByIdResponse, GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleError, GetBotsByBotIdScheduleErrors, GetBotsByBotIdScheduleResponse, GetBotsByBotIdScheduleResponses, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsError, GetBotsByBotIdSettingsErrors, GetBotsByBotIdSettingsResponse, GetBotsByBotIdSettingsResponses, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdContextError, GetBotsByBotIdSubagentsByIdContextErrors, GetBotsByBotIdSubagentsByIdContextResponse, GetBotsByBotIdSubagentsByIdContextResponses, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdError, GetBotsByBotIdSubagentsByIdErrors, GetBotsByBotIdSubagentsByIdResponse, GetBotsByBotIdSubagentsByIdResponses, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsByIdSkillsError, GetBotsByBotIdSubagentsByIdSkillsErrors, GetBotsByBotIdSubagentsByIdSkillsResponse, GetBotsByBotIdSubagentsByIdSkillsResponses, GetBotsByBotIdSubagentsData, GetBotsByBotIdSubagentsError, GetBotsByBotIdSubagentsErrors, GetBotsByBotIdSubagentsResponse, GetBotsByBotIdSubagentsResponses, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformError, GetBotsByIdChannelByPlatformErrors, GetBotsByIdChannelByPlatformResponse, GetBotsByIdChannelByPlatformResponses, GetBotsByIdChecksData, GetBotsByIdChecksError, GetBotsByIdChecksErrors, GetBotsByIdChecksResponse, GetBotsByIdChecksResponses, GetBotsByIdData, GetBotsByIdError, GetBotsByIdErrors, GetBotsByIdMembersData, GetBotsByIdMembersError, GetBotsByIdMembersErrors, GetBotsByIdMembersResponse, GetBotsByIdMembersResponses, GetBotsByIdResponse, GetBotsByIdResponses, GetBotsData, GetBotsError, GetBotsErrors, GetBotsResponse, GetBotsResponses, GetChannelsByPlatformData, GetChannelsByPlatformError, GetChannelsByPlatformErrors, GetChannelsByPlatformResponse, GetChannelsByPlatformResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetModelsByIdData, GetModelsByIdError, GetModelsByIdErrors, GetModelsByIdResponse, GetModelsByIdResponses, GetModelsCountData, GetModelsCountError, GetModelsCountErrors, GetModelsCountResponse, GetModelsCountResponses, GetModelsData, GetModelsError, GetModelsErrors, GetModelsModelByModelIdData, GetModelsModelByModelIdError, GetModelsModelByModelIdErrors, GetModelsModelByModelIdResponse, GetModelsModelByModelIdResponses, GetModelsResponse, GetModelsResponses, GetProvidersByIdData, GetProvidersByIdError, GetProvidersByIdErrors, GetProvidersByIdModelsData, GetProvidersByIdModelsError, GetProvidersByIdModelsErrors, GetProvidersByIdModelsResponse, GetProvidersByIdModelsResponses, GetProvidersByIdResponse, GetProvidersByIdResponses, GetProvidersCountData, GetProvidersCountError, GetProvidersCountErrors, GetProvidersCountResponse, GetProvidersCountResponses, GetProvidersData, GetProvidersError, GetProvidersErrors, GetProvidersNameByNameData, GetProvidersNameByNameError, GetProvidersNameByNameErrors, GetProvidersNameByNameResponse, GetProvidersNameByNameResponses, GetProvidersResponse, GetProvidersResponses, GetUsersByIdData, GetUsersByIdError, GetUsersByIdErrors, GetUsersByIdResponse, GetUsersByIdResponses, GetUsersData, GetUsersError, GetUsersErrors, GetUsersMeChannelsByPlatformData, GetUsersMeChannelsByPlatformError, GetUsersMeChannelsByPlatformErrors, GetUsersMeChannelsByPlatformResponse, GetUsersMeChannelsByPlatformResponses, GetUsersMeData, GetUsersMeError, GetUsersMeErrors, GetUsersMeIdentitiesData, GetUsersMeIdentitiesError, GetUsersMeIdentitiesErrors, GetUsersMeIdentitiesResponse, GetUsersMeIdentitiesResponses, GetUsersMeResponse, GetUsersMeResponses, GetUsersResponse, GetUsersResponses, GithubComMemohaiMemohInternalMcpConnection, HandlersChannelMeta, HandlersCreateContainerRequest, HandlersCreateContainerResponse, HandlersCreateSnapshotRequest, HandlersCreateSnapshotResponse, HandlersEmbeddingsInput, HandlersEmbeddingsRequest, HandlersEmbeddingsResponse, HandlersEmbeddingsUsage, HandlersErrorResponse, HandlersGetContainerResponse, HandlersListMyIdentitiesResponse, HandlersListSnapshotsResponse, HandlersLoginRequest, HandlersLoginResponse, HandlersMcpStdioRequest, HandlersMcpStdioResponse, HandlersSkillItem, HandlersSkillsDeleteRequest, HandlersSkillsOpResponse, HandlersSkillsResponse, HandlersSkillsUpsertRequest, HandlersSnapshotInfo, IdentitiesChannelIdentity, McpListResponse, McpUpsertRequest, ModelsAddRequest, ModelsAddResponse, ModelsCountResponse, ModelsGetResponse, ModelsModelType, ModelsUpdateRequest, PostAuthLoginData, PostAuthLoginError, PostAuthLoginErrors, PostAuthLoginResponse, PostAuthLoginResponses, PostBotsByBotIdContainerData, PostBotsByBotIdContainerError, PostBotsByBotIdContainerErrors, PostBotsByBotIdContainerResponse, PostBotsByBotIdContainerResponses, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsError, PostBotsByBotIdContainerSkillsErrors, PostBotsByBotIdContainerSkillsResponse, PostBotsByBotIdContainerSkillsResponses, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsError, PostBotsByBotIdContainerSnapshotsErrors, PostBotsByBotIdContainerSnapshotsResponse, PostBotsByBotIdContainerSnapshotsResponses, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartError, PostBotsByBotIdContainerStartErrors, PostBotsByBotIdContainerStartResponse, PostBotsByBotIdContainerStartResponses, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopError, PostBotsByBotIdContainerStopErrors, PostBotsByBotIdContainerStopResponse, PostBotsByBotIdContainerStopResponses, PostBotsByBotIdMcpData, PostBotsByBotIdMcpError, PostBotsByBotIdMcpErrors, PostBotsByBotIdMcpResponse, PostBotsByBotIdMcpResponses, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdError, PostBotsByBotIdMcpStdioByConnectionIdErrors, PostBotsByBotIdMcpStdioByConnectionIdResponse, PostBotsByBotIdMcpStdioByConnectionIdResponses, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioError, PostBotsByBotIdMcpStdioErrors, PostBotsByBotIdMcpStdioResponse, PostBotsByBotIdMcpStdioResponses, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleError, PostBotsByBotIdScheduleErrors, PostBotsByBotIdScheduleResponse, PostBotsByBotIdScheduleResponses, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsError, PostBotsByBotIdSettingsErrors, PostBotsByBotIdSettingsResponse, PostBotsByBotIdSettingsResponses, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsError, PostBotsByBotIdSubagentsByIdSkillsErrors, PostBotsByBotIdSubagentsByIdSkillsResponse, PostBotsByBotIdSubagentsByIdSkillsResponses, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsError, PostBotsByBotIdSubagentsErrors, PostBotsByBotIdSubagentsResponse, PostBotsByBotIdSubagentsResponses, PostBotsByBotIdToolsData, PostBotsByBotIdToolsError, PostBotsByBotIdToolsErrors, PostBotsByBotIdToolsResponse, PostBotsByBotIdToolsResponses, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatError, PostBotsByIdChannelByPlatformSendChatErrors, PostBotsByIdChannelByPlatformSendChatResponse, PostBotsByIdChannelByPlatformSendChatResponses, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendError, PostBotsByIdChannelByPlatformSendErrors, PostBotsByIdChannelByPlatformSendResponse, PostBotsByIdChannelByPlatformSendResponses, PostBotsData, PostBotsError, PostBotsErrors, PostBotsResponse, PostBotsResponses, PostEmbeddingsData, PostEmbeddingsError, PostEmbeddingsErrors, PostEmbeddingsResponse, PostEmbeddingsResponses, PostModelsData, PostModelsError, PostModelsErrors, PostModelsResponse, PostModelsResponses, PostProvidersData, PostProvidersError, PostProvidersErrors, PostProvidersResponse, PostProvidersResponses, PostUsersData, PostUsersError, PostUsersErrors, PostUsersResponse, PostUsersResponses, ProvidersClientType, ProvidersCountResponse, ProvidersCreateRequest, ProvidersGetResponse, ProvidersUpdateRequest, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdError, PutBotsByBotIdMcpByIdErrors, PutBotsByBotIdMcpByIdResponse, PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdError, PutBotsByBotIdScheduleByIdErrors, PutBotsByBotIdScheduleByIdResponse, PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsError, PutBotsByBotIdSettingsErrors, PutBotsByBotIdSettingsResponse, PutBotsByBotIdSettingsResponses, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextError, PutBotsByBotIdSubagentsByIdContextErrors, PutBotsByBotIdSubagentsByIdContextResponse, PutBotsByBotIdSubagentsByIdContextResponses, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdError, PutBotsByBotIdSubagentsByIdErrors, PutBotsByBotIdSubagentsByIdResponse, PutBotsByBotIdSubagentsByIdResponses, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsError, PutBotsByBotIdSubagentsByIdSkillsErrors, PutBotsByBotIdSubagentsByIdSkillsResponse, PutBotsByBotIdSubagentsByIdSkillsResponses, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformError, PutBotsByIdChannelByPlatformErrors, PutBotsByIdChannelByPlatformResponse, PutBotsByIdChannelByPlatformResponses, PutBotsByIdData, PutBotsByIdError, PutBotsByIdErrors, PutBotsByIdMembersData, PutBotsByIdMembersError, PutBotsByIdMembersErrors, PutBotsByIdMembersResponse, PutBotsByIdMembersResponses, PutBotsByIdOwnerData, PutBotsByIdOwnerError, PutBotsByIdOwnerErrors, PutBotsByIdOwnerResponse, PutBotsByIdOwnerResponses, PutBotsByIdResponse, PutBotsByIdResponses, PutModelsByIdData, PutModelsByIdError, PutModelsByIdErrors, PutModelsByIdResponse, PutModelsByIdResponses, PutModelsModelByModelIdData, PutModelsModelByModelIdError, PutModelsModelByModelIdErrors, PutModelsModelByModelIdResponse, PutModelsModelByModelIdResponses, PutProvidersByIdData, PutProvidersByIdError, PutProvidersByIdErrors, PutProvidersByIdResponse, PutProvidersByIdResponses, PutUsersByIdData, PutUsersByIdError, PutUsersByIdErrors, PutUsersByIdPasswordData, PutUsersByIdPasswordError, PutUsersByIdPasswordErrors, PutUsersByIdPasswordResponses, PutUsersByIdResponse, PutUsersByIdResponses, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformError, PutUsersMeChannelsByPlatformErrors, PutUsersMeChannelsByPlatformResponse, PutUsersMeChannelsByPlatformResponses, PutUsersMeData, PutUsersMeError, PutUsersMeErrors, PutUsersMePasswordData, PutUsersMePasswordError, PutUsersMePasswordErrors, PutUsersMePasswordResponses, PutUsersMeResponse, PutUsersMeResponses, ScheduleCreateRequest, ScheduleListResponse, ScheduleNullableInt, ScheduleSchedule, ScheduleUpdateRequest, SettingsSettings, SettingsUpsertRequest, SubagentAddSkillsRequest, SubagentContextResponse, SubagentCreateRequest, SubagentListResponse, SubagentSkillsResponse, SubagentSubagent, SubagentUpdateContextRequest, SubagentUpdateRequest, SubagentUpdateSkillsRequest } from './types.gen'; +export { deleteBotsByBotIdContainer, deleteBotsByBotIdContainerSkills, deleteBotsByBotIdMcpById, deleteBotsByBotIdMemory, deleteBotsByBotIdMemoryById, deleteBotsByBotIdScheduleById, deleteBotsByBotIdSettings, deleteBotsByBotIdSubagentsById, deleteBotsById, deleteBotsByIdMembersByUserId, deleteModelsById, deleteModelsModelByModelId, deleteProvidersById, getBots, getBotsByBotIdContainer, getBotsByBotIdContainerSkills, getBotsByBotIdContainerSnapshots, getBotsByBotIdMcp, getBotsByBotIdMcpById, getBotsByBotIdMcpExport, getBotsByBotIdMemory, getBotsByBotIdMemoryUsage, getBotsByBotIdMessages, getBotsByBotIdSchedule, getBotsByBotIdScheduleById, getBotsByBotIdSettings, getBotsByBotIdSubagents, getBotsByBotIdSubagentsById, getBotsByBotIdSubagentsByIdContext, getBotsByBotIdSubagentsByIdSkills, getBotsById, getBotsByIdChannelByPlatform, getBotsByIdChecks, getBotsByIdChecksKeys, getBotsByIdChecksRunByKey, getBotsByIdMembers, getChannels, getChannelsByPlatform, getModels, getModelsById, getModelsCount, getModelsModelByModelId, getProviders, getProvidersById, getProvidersByIdModels, getProvidersCount, getProvidersNameByName, getUsers, getUsersById, getUsersMe, getUsersMeChannelsByPlatform, getUsersMeIdentities, type Options, postAuthLogin, postBots, postBotsByBotIdContainer, postBotsByBotIdContainerSkills, postBotsByBotIdContainerSnapshots, postBotsByBotIdContainerStart, postBotsByBotIdContainerStop, postBotsByBotIdMcp, postBotsByBotIdMcpOpsBatchDelete, postBotsByBotIdMcpStdio, postBotsByBotIdMcpStdioByConnectionId, postBotsByBotIdMemory, postBotsByBotIdMemoryCompact, postBotsByBotIdMemoryRebuild, postBotsByBotIdMemorySearch, postBotsByBotIdSchedule, postBotsByBotIdSettings, postBotsByBotIdSubagents, postBotsByBotIdSubagentsByIdSkills, postBotsByBotIdTools, postBotsByIdChannelByPlatformSend, postBotsByIdChannelByPlatformSendChat, postEmbeddings, postModels, postProviders, postUsers, putBotsByBotIdMcpById, putBotsByBotIdMcpImport, putBotsByBotIdScheduleById, putBotsByBotIdSettings, putBotsByBotIdSubagentsById, putBotsByBotIdSubagentsByIdContext, putBotsByBotIdSubagentsByIdSkills, putBotsById, putBotsByIdChannelByPlatform, putBotsByIdMembers, putBotsByIdOwner, putModelsById, putModelsModelByModelId, putProvidersById, putUsersById, putUsersByIdPassword, putUsersMe, putUsersMeChannelsByPlatform, putUsersMePassword } from './sdk.gen'; +export type { AccountsAccount, AccountsCreateAccountRequest, AccountsListAccountsResponse, AccountsResetPasswordRequest, AccountsUpdateAccountRequest, AccountsUpdatePasswordRequest, AccountsUpdateProfileRequest, BotsBot, BotsBotCheck, BotsBotMember, BotsCreateBotRequest, BotsListBotsResponse, BotsListCheckKeysResponse, BotsListChecksResponse, BotsListMembersResponse, BotsTransferBotRequest, BotsUpdateBotRequest, BotsUpsertMemberRequest, ChannelAction, ChannelAttachment, ChannelAttachmentType, ChannelChannelCapabilities, ChannelChannelConfig, ChannelChannelIdentityBinding, ChannelConfigSchema, ChannelFieldSchema, ChannelFieldType, ChannelMessage, ChannelMessageFormat, ChannelMessagePart, ChannelMessagePartType, ChannelMessageTextStyle, ChannelReplyRef, ChannelSendRequest, ChannelTargetHint, ChannelTargetSpec, ChannelThreadRef, ChannelUpsertChannelIdentityConfigRequest, ChannelUpsertConfigRequest, ClientOptions, DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerError, DeleteBotsByBotIdContainerErrors, DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsError, DeleteBotsByBotIdContainerSkillsErrors, DeleteBotsByBotIdContainerSkillsResponse, DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdError, DeleteBotsByBotIdMcpByIdErrors, DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdMemoryByIdData, DeleteBotsByBotIdMemoryByIdError, DeleteBotsByBotIdMemoryByIdErrors, DeleteBotsByBotIdMemoryByIdResponse, DeleteBotsByBotIdMemoryByIdResponses, DeleteBotsByBotIdMemoryData, DeleteBotsByBotIdMemoryError, DeleteBotsByBotIdMemoryErrors, DeleteBotsByBotIdMemoryResponse, DeleteBotsByBotIdMemoryResponses, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdError, DeleteBotsByBotIdScheduleByIdErrors, DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsError, DeleteBotsByBotIdSettingsErrors, DeleteBotsByBotIdSettingsResponses, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdError, DeleteBotsByBotIdSubagentsByIdErrors, DeleteBotsByBotIdSubagentsByIdResponses, DeleteBotsByIdData, DeleteBotsByIdError, DeleteBotsByIdErrors, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdError, DeleteBotsByIdMembersByUserIdErrors, DeleteBotsByIdMembersByUserIdResponses, DeleteBotsByIdResponse, DeleteBotsByIdResponses, DeleteModelsByIdData, DeleteModelsByIdError, DeleteModelsByIdErrors, DeleteModelsByIdResponses, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdError, DeleteModelsModelByModelIdErrors, DeleteModelsModelByModelIdResponses, DeleteProvidersByIdData, DeleteProvidersByIdError, DeleteProvidersByIdErrors, DeleteProvidersByIdResponses, GetBotsByBotIdContainerData, GetBotsByBotIdContainerError, GetBotsByBotIdContainerErrors, GetBotsByBotIdContainerResponse, GetBotsByBotIdContainerResponses, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSkillsError, GetBotsByBotIdContainerSkillsErrors, GetBotsByBotIdContainerSkillsResponse, GetBotsByBotIdContainerSkillsResponses, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdContainerSnapshotsResponse, GetBotsByBotIdContainerSnapshotsResponses, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpByIdError, GetBotsByBotIdMcpByIdErrors, GetBotsByBotIdMcpByIdResponse, GetBotsByBotIdMcpByIdResponses, GetBotsByBotIdMcpData, GetBotsByBotIdMcpError, GetBotsByBotIdMcpErrors, GetBotsByBotIdMcpExportData, GetBotsByBotIdMcpExportError, GetBotsByBotIdMcpExportErrors, GetBotsByBotIdMcpExportResponse, GetBotsByBotIdMcpExportResponses, GetBotsByBotIdMcpResponse, GetBotsByBotIdMcpResponses, GetBotsByBotIdMemoryData, GetBotsByBotIdMemoryError, GetBotsByBotIdMemoryErrors, GetBotsByBotIdMemoryResponse, GetBotsByBotIdMemoryResponses, GetBotsByBotIdMemoryUsageData, GetBotsByBotIdMemoryUsageError, GetBotsByBotIdMemoryUsageErrors, GetBotsByBotIdMemoryUsageResponse, GetBotsByBotIdMemoryUsageResponses, GetBotsByBotIdMessagesData, GetBotsByBotIdMessagesError, GetBotsByBotIdMessagesErrors, GetBotsByBotIdMessagesResponse, GetBotsByBotIdMessagesResponses, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleByIdError, GetBotsByBotIdScheduleByIdErrors, GetBotsByBotIdScheduleByIdResponse, GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleError, GetBotsByBotIdScheduleErrors, GetBotsByBotIdScheduleResponse, GetBotsByBotIdScheduleResponses, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsError, GetBotsByBotIdSettingsErrors, GetBotsByBotIdSettingsResponse, GetBotsByBotIdSettingsResponses, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdContextError, GetBotsByBotIdSubagentsByIdContextErrors, GetBotsByBotIdSubagentsByIdContextResponse, GetBotsByBotIdSubagentsByIdContextResponses, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdError, GetBotsByBotIdSubagentsByIdErrors, GetBotsByBotIdSubagentsByIdResponse, GetBotsByBotIdSubagentsByIdResponses, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsByIdSkillsError, GetBotsByBotIdSubagentsByIdSkillsErrors, GetBotsByBotIdSubagentsByIdSkillsResponse, GetBotsByBotIdSubagentsByIdSkillsResponses, GetBotsByBotIdSubagentsData, GetBotsByBotIdSubagentsError, GetBotsByBotIdSubagentsErrors, GetBotsByBotIdSubagentsResponse, GetBotsByBotIdSubagentsResponses, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformError, GetBotsByIdChannelByPlatformErrors, GetBotsByIdChannelByPlatformResponse, GetBotsByIdChannelByPlatformResponses, GetBotsByIdChecksData, GetBotsByIdChecksError, GetBotsByIdChecksErrors, GetBotsByIdChecksKeysData, GetBotsByIdChecksKeysResponse, GetBotsByIdChecksKeysResponses, GetBotsByIdChecksResponse, GetBotsByIdChecksResponses, GetBotsByIdChecksRunByKeyData, GetBotsByIdChecksRunByKeyResponse, GetBotsByIdChecksRunByKeyResponses, GetBotsByIdData, GetBotsByIdError, GetBotsByIdErrors, GetBotsByIdMembersData, GetBotsByIdMembersError, GetBotsByIdMembersErrors, GetBotsByIdMembersResponse, GetBotsByIdMembersResponses, GetBotsByIdResponse, GetBotsByIdResponses, GetBotsData, GetBotsError, GetBotsErrors, GetBotsResponse, GetBotsResponses, GetChannelsByPlatformData, GetChannelsByPlatformError, GetChannelsByPlatformErrors, GetChannelsByPlatformResponse, GetChannelsByPlatformResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetModelsByIdData, GetModelsByIdError, GetModelsByIdErrors, GetModelsByIdResponse, GetModelsByIdResponses, GetModelsCountData, GetModelsCountError, GetModelsCountErrors, GetModelsCountResponse, GetModelsCountResponses, GetModelsData, GetModelsError, GetModelsErrors, GetModelsModelByModelIdData, GetModelsModelByModelIdError, GetModelsModelByModelIdErrors, GetModelsModelByModelIdResponse, GetModelsModelByModelIdResponses, GetModelsResponse, GetModelsResponses, GetProvidersByIdData, GetProvidersByIdError, GetProvidersByIdErrors, GetProvidersByIdModelsData, GetProvidersByIdModelsError, GetProvidersByIdModelsErrors, GetProvidersByIdModelsResponse, GetProvidersByIdModelsResponses, GetProvidersByIdResponse, GetProvidersByIdResponses, GetProvidersCountData, GetProvidersCountError, GetProvidersCountErrors, GetProvidersCountResponse, GetProvidersCountResponses, GetProvidersData, GetProvidersError, GetProvidersErrors, GetProvidersNameByNameData, GetProvidersNameByNameError, GetProvidersNameByNameErrors, GetProvidersNameByNameResponse, GetProvidersNameByNameResponses, GetProvidersResponse, GetProvidersResponses, GetUsersByIdData, GetUsersByIdError, GetUsersByIdErrors, GetUsersByIdResponse, GetUsersByIdResponses, GetUsersData, GetUsersError, GetUsersErrors, GetUsersMeChannelsByPlatformData, GetUsersMeChannelsByPlatformError, GetUsersMeChannelsByPlatformErrors, GetUsersMeChannelsByPlatformResponse, GetUsersMeChannelsByPlatformResponses, GetUsersMeData, GetUsersMeError, GetUsersMeErrors, GetUsersMeIdentitiesData, GetUsersMeIdentitiesError, GetUsersMeIdentitiesErrors, GetUsersMeIdentitiesResponse, GetUsersMeIdentitiesResponses, GetUsersMeResponse, GetUsersMeResponses, GetUsersResponse, GetUsersResponses, GithubComMemohaiMemohInternalMcpConnection, HandlersBatchDeleteRequest, HandlersChannelMeta, HandlersCreateContainerRequest, HandlersCreateContainerResponse, HandlersCreateSnapshotRequest, HandlersCreateSnapshotResponse, HandlersEmbeddingsInput, HandlersEmbeddingsRequest, HandlersEmbeddingsResponse, HandlersEmbeddingsUsage, HandlersErrorResponse, HandlersGetContainerResponse, HandlersListMyIdentitiesResponse, HandlersListSnapshotsResponse, HandlersLoginRequest, HandlersLoginResponse, HandlersMcpStdioRequest, HandlersMcpStdioResponse, HandlersMemoryAddPayload, HandlersMemoryCompactPayload, HandlersMemoryDeletePayload, HandlersMemorySearchPayload, HandlersSkillItem, HandlersSkillsDeleteRequest, HandlersSkillsOpResponse, HandlersSkillsResponse, HandlersSkillsUpsertRequest, HandlersSnapshotInfo, IdentitiesChannelIdentity, McpExportResponse, McpImportRequest, McpListResponse, McpMcpServerEntry, McpUpsertRequest, MemoryCdfPoint, MemoryCompactResult, MemoryDeleteResponse, MemoryMemoryItem, MemoryMessage, MemoryRebuildResult, MemorySearchResponse, MemoryTopKBucket, MemoryUsageResponse, MessageMessage, ModelsAddRequest, ModelsAddResponse, ModelsCountResponse, ModelsGetResponse, ModelsModelType, ModelsUpdateRequest, PostAuthLoginData, PostAuthLoginError, PostAuthLoginErrors, PostAuthLoginResponse, PostAuthLoginResponses, PostBotsByBotIdContainerData, PostBotsByBotIdContainerError, PostBotsByBotIdContainerErrors, PostBotsByBotIdContainerResponse, PostBotsByBotIdContainerResponses, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsError, PostBotsByBotIdContainerSkillsErrors, PostBotsByBotIdContainerSkillsResponse, PostBotsByBotIdContainerSkillsResponses, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsError, PostBotsByBotIdContainerSnapshotsErrors, PostBotsByBotIdContainerSnapshotsResponse, PostBotsByBotIdContainerSnapshotsResponses, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartError, PostBotsByBotIdContainerStartErrors, PostBotsByBotIdContainerStartResponse, PostBotsByBotIdContainerStartResponses, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopError, PostBotsByBotIdContainerStopErrors, PostBotsByBotIdContainerStopResponse, PostBotsByBotIdContainerStopResponses, PostBotsByBotIdMcpData, PostBotsByBotIdMcpError, PostBotsByBotIdMcpErrors, PostBotsByBotIdMcpOpsBatchDeleteData, PostBotsByBotIdMcpOpsBatchDeleteError, PostBotsByBotIdMcpOpsBatchDeleteErrors, PostBotsByBotIdMcpOpsBatchDeleteResponses, PostBotsByBotIdMcpResponse, PostBotsByBotIdMcpResponses, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdError, PostBotsByBotIdMcpStdioByConnectionIdErrors, PostBotsByBotIdMcpStdioByConnectionIdResponse, PostBotsByBotIdMcpStdioByConnectionIdResponses, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioError, PostBotsByBotIdMcpStdioErrors, PostBotsByBotIdMcpStdioResponse, PostBotsByBotIdMcpStdioResponses, PostBotsByBotIdMemoryCompactData, PostBotsByBotIdMemoryCompactError, PostBotsByBotIdMemoryCompactErrors, PostBotsByBotIdMemoryCompactResponse, PostBotsByBotIdMemoryCompactResponses, PostBotsByBotIdMemoryData, PostBotsByBotIdMemoryError, PostBotsByBotIdMemoryErrors, PostBotsByBotIdMemoryRebuildData, PostBotsByBotIdMemoryRebuildError, PostBotsByBotIdMemoryRebuildErrors, PostBotsByBotIdMemoryRebuildResponse, PostBotsByBotIdMemoryRebuildResponses, PostBotsByBotIdMemoryResponse, PostBotsByBotIdMemoryResponses, PostBotsByBotIdMemorySearchData, PostBotsByBotIdMemorySearchError, PostBotsByBotIdMemorySearchErrors, PostBotsByBotIdMemorySearchResponse, PostBotsByBotIdMemorySearchResponses, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleError, PostBotsByBotIdScheduleErrors, PostBotsByBotIdScheduleResponse, PostBotsByBotIdScheduleResponses, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsError, PostBotsByBotIdSettingsErrors, PostBotsByBotIdSettingsResponse, PostBotsByBotIdSettingsResponses, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsError, PostBotsByBotIdSubagentsByIdSkillsErrors, PostBotsByBotIdSubagentsByIdSkillsResponse, PostBotsByBotIdSubagentsByIdSkillsResponses, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsError, PostBotsByBotIdSubagentsErrors, PostBotsByBotIdSubagentsResponse, PostBotsByBotIdSubagentsResponses, PostBotsByBotIdToolsData, PostBotsByBotIdToolsError, PostBotsByBotIdToolsErrors, PostBotsByBotIdToolsResponse, PostBotsByBotIdToolsResponses, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatError, PostBotsByIdChannelByPlatformSendChatErrors, PostBotsByIdChannelByPlatformSendChatResponse, PostBotsByIdChannelByPlatformSendChatResponses, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendError, PostBotsByIdChannelByPlatformSendErrors, PostBotsByIdChannelByPlatformSendResponse, PostBotsByIdChannelByPlatformSendResponses, PostBotsData, PostBotsError, PostBotsErrors, PostBotsResponse, PostBotsResponses, PostEmbeddingsData, PostEmbeddingsError, PostEmbeddingsErrors, PostEmbeddingsResponse, PostEmbeddingsResponses, PostModelsData, PostModelsError, PostModelsErrors, PostModelsResponse, PostModelsResponses, PostProvidersData, PostProvidersError, PostProvidersErrors, PostProvidersResponse, PostProvidersResponses, PostUsersData, PostUsersError, PostUsersErrors, PostUsersResponse, PostUsersResponses, ProvidersClientType, ProvidersCountResponse, ProvidersCreateRequest, ProvidersGetResponse, ProvidersUpdateRequest, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdError, PutBotsByBotIdMcpByIdErrors, PutBotsByBotIdMcpByIdResponse, PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdMcpImportData, PutBotsByBotIdMcpImportError, PutBotsByBotIdMcpImportErrors, PutBotsByBotIdMcpImportResponse, PutBotsByBotIdMcpImportResponses, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdError, PutBotsByBotIdScheduleByIdErrors, PutBotsByBotIdScheduleByIdResponse, PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsError, PutBotsByBotIdSettingsErrors, PutBotsByBotIdSettingsResponse, PutBotsByBotIdSettingsResponses, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextError, PutBotsByBotIdSubagentsByIdContextErrors, PutBotsByBotIdSubagentsByIdContextResponse, PutBotsByBotIdSubagentsByIdContextResponses, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdError, PutBotsByBotIdSubagentsByIdErrors, PutBotsByBotIdSubagentsByIdResponse, PutBotsByBotIdSubagentsByIdResponses, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsError, PutBotsByBotIdSubagentsByIdSkillsErrors, PutBotsByBotIdSubagentsByIdSkillsResponse, PutBotsByBotIdSubagentsByIdSkillsResponses, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformError, PutBotsByIdChannelByPlatformErrors, PutBotsByIdChannelByPlatformResponse, PutBotsByIdChannelByPlatformResponses, PutBotsByIdData, PutBotsByIdError, PutBotsByIdErrors, PutBotsByIdMembersData, PutBotsByIdMembersError, PutBotsByIdMembersErrors, PutBotsByIdMembersResponse, PutBotsByIdMembersResponses, PutBotsByIdOwnerData, PutBotsByIdOwnerError, PutBotsByIdOwnerErrors, PutBotsByIdOwnerResponse, PutBotsByIdOwnerResponses, PutBotsByIdResponse, PutBotsByIdResponses, PutModelsByIdData, PutModelsByIdError, PutModelsByIdErrors, PutModelsByIdResponse, PutModelsByIdResponses, PutModelsModelByModelIdData, PutModelsModelByModelIdError, PutModelsModelByModelIdErrors, PutModelsModelByModelIdResponse, PutModelsModelByModelIdResponses, PutProvidersByIdData, PutProvidersByIdError, PutProvidersByIdErrors, PutProvidersByIdResponse, PutProvidersByIdResponses, PutUsersByIdData, PutUsersByIdError, PutUsersByIdErrors, PutUsersByIdPasswordData, PutUsersByIdPasswordError, PutUsersByIdPasswordErrors, PutUsersByIdPasswordResponses, PutUsersByIdResponse, PutUsersByIdResponses, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformError, PutUsersMeChannelsByPlatformErrors, PutUsersMeChannelsByPlatformResponse, PutUsersMeChannelsByPlatformResponses, PutUsersMeData, PutUsersMeError, PutUsersMeErrors, PutUsersMePasswordData, PutUsersMePasswordError, PutUsersMePasswordErrors, PutUsersMePasswordResponses, PutUsersMeResponse, PutUsersMeResponses, ScheduleCreateRequest, ScheduleListResponse, ScheduleNullableInt, ScheduleSchedule, ScheduleUpdateRequest, SettingsSettings, SettingsUpsertRequest, SubagentAddSkillsRequest, SubagentContextResponse, SubagentCreateRequest, SubagentListResponse, SubagentSkillsResponse, SubagentSubagent, SubagentUpdateContextRequest, SubagentUpdateRequest, SubagentUpdateSkillsRequest } from './types.gen'; diff --git a/packages/sdk/src/sdk.gen.ts b/packages/sdk/src/sdk.gen.ts index 39eed318..934b1989 100644 --- a/packages/sdk/src/sdk.gen.ts +++ b/packages/sdk/src/sdk.gen.ts @@ -2,7 +2,7 @@ import type { Client, Options as Options2, TDataShape } from './client'; import { client } from './client.gen'; -import type { DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerErrors, DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsErrors, DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdErrors, DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdErrors, DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsErrors, DeleteBotsByBotIdSettingsResponses, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdErrors, DeleteBotsByBotIdSubagentsByIdResponses, DeleteBotsByIdData, DeleteBotsByIdErrors, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdErrors, DeleteBotsByIdMembersByUserIdResponses, DeleteBotsByIdResponses, DeleteModelsByIdData, DeleteModelsByIdErrors, DeleteModelsByIdResponses, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdErrors, DeleteModelsModelByModelIdResponses, DeleteProvidersByIdData, DeleteProvidersByIdErrors, DeleteProvidersByIdResponses, GetBotsByBotIdContainerData, GetBotsByBotIdContainerErrors, GetBotsByBotIdContainerResponses, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSkillsErrors, GetBotsByBotIdContainerSkillsResponses, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdContainerSnapshotsResponses, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpByIdErrors, GetBotsByBotIdMcpByIdResponses, GetBotsByBotIdMcpData, GetBotsByBotIdMcpErrors, GetBotsByBotIdMcpResponses, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleByIdErrors, GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleErrors, GetBotsByBotIdScheduleResponses, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsErrors, GetBotsByBotIdSettingsResponses, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdContextErrors, GetBotsByBotIdSubagentsByIdContextResponses, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdErrors, GetBotsByBotIdSubagentsByIdResponses, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsByIdSkillsErrors, GetBotsByBotIdSubagentsByIdSkillsResponses, GetBotsByBotIdSubagentsData, GetBotsByBotIdSubagentsErrors, GetBotsByBotIdSubagentsResponses, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformErrors, GetBotsByIdChannelByPlatformResponses, GetBotsByIdChecksData, GetBotsByIdChecksErrors, GetBotsByIdChecksResponses, GetBotsByIdData, GetBotsByIdErrors, GetBotsByIdMembersData, GetBotsByIdMembersErrors, GetBotsByIdMembersResponses, GetBotsByIdResponses, GetBotsData, GetBotsErrors, GetBotsResponses, GetChannelsByPlatformData, GetChannelsByPlatformErrors, GetChannelsByPlatformResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetModelsByIdData, GetModelsByIdErrors, GetModelsByIdResponses, GetModelsCountData, GetModelsCountErrors, GetModelsCountResponses, GetModelsData, GetModelsErrors, GetModelsModelByModelIdData, GetModelsModelByModelIdErrors, GetModelsModelByModelIdResponses, GetModelsResponses, GetProvidersByIdData, GetProvidersByIdErrors, GetProvidersByIdModelsData, GetProvidersByIdModelsErrors, GetProvidersByIdModelsResponses, GetProvidersByIdResponses, GetProvidersCountData, GetProvidersCountErrors, GetProvidersCountResponses, GetProvidersData, GetProvidersErrors, GetProvidersNameByNameData, GetProvidersNameByNameErrors, GetProvidersNameByNameResponses, GetProvidersResponses, GetUsersByIdData, GetUsersByIdErrors, GetUsersByIdResponses, GetUsersData, GetUsersErrors, GetUsersMeChannelsByPlatformData, GetUsersMeChannelsByPlatformErrors, GetUsersMeChannelsByPlatformResponses, GetUsersMeData, GetUsersMeErrors, GetUsersMeIdentitiesData, GetUsersMeIdentitiesErrors, GetUsersMeIdentitiesResponses, GetUsersMeResponses, GetUsersResponses, PostAuthLoginData, PostAuthLoginErrors, PostAuthLoginResponses, PostBotsByBotIdContainerData, PostBotsByBotIdContainerErrors, PostBotsByBotIdContainerResponses, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsErrors, PostBotsByBotIdContainerSkillsResponses, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsErrors, PostBotsByBotIdContainerSnapshotsResponses, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartErrors, PostBotsByBotIdContainerStartResponses, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopErrors, PostBotsByBotIdContainerStopResponses, PostBotsByBotIdMcpData, PostBotsByBotIdMcpErrors, PostBotsByBotIdMcpResponses, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdErrors, PostBotsByBotIdMcpStdioByConnectionIdResponses, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioErrors, PostBotsByBotIdMcpStdioResponses, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleErrors, PostBotsByBotIdScheduleResponses, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsErrors, PostBotsByBotIdSettingsResponses, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsErrors, PostBotsByBotIdSubagentsByIdSkillsResponses, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsErrors, PostBotsByBotIdSubagentsResponses, PostBotsByBotIdToolsData, PostBotsByBotIdToolsErrors, PostBotsByBotIdToolsResponses, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatErrors, PostBotsByIdChannelByPlatformSendChatResponses, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendErrors, PostBotsByIdChannelByPlatformSendResponses, PostBotsData, PostBotsErrors, PostBotsResponses, PostEmbeddingsData, PostEmbeddingsErrors, PostEmbeddingsResponses, PostModelsData, PostModelsErrors, PostModelsResponses, PostProvidersData, PostProvidersErrors, PostProvidersResponses, PostUsersData, PostUsersErrors, PostUsersResponses, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdErrors, PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdErrors, PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsErrors, PutBotsByBotIdSettingsResponses, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextErrors, PutBotsByBotIdSubagentsByIdContextResponses, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdErrors, PutBotsByBotIdSubagentsByIdResponses, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsErrors, PutBotsByBotIdSubagentsByIdSkillsResponses, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformErrors, PutBotsByIdChannelByPlatformResponses, PutBotsByIdData, PutBotsByIdErrors, PutBotsByIdMembersData, PutBotsByIdMembersErrors, PutBotsByIdMembersResponses, PutBotsByIdOwnerData, PutBotsByIdOwnerErrors, PutBotsByIdOwnerResponses, PutBotsByIdResponses, PutModelsByIdData, PutModelsByIdErrors, PutModelsByIdResponses, PutModelsModelByModelIdData, PutModelsModelByModelIdErrors, PutModelsModelByModelIdResponses, PutProvidersByIdData, PutProvidersByIdErrors, PutProvidersByIdResponses, PutUsersByIdData, PutUsersByIdErrors, PutUsersByIdPasswordData, PutUsersByIdPasswordErrors, PutUsersByIdPasswordResponses, PutUsersByIdResponses, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformErrors, PutUsersMeChannelsByPlatformResponses, PutUsersMeData, PutUsersMeErrors, PutUsersMePasswordData, PutUsersMePasswordErrors, PutUsersMePasswordResponses, PutUsersMeResponses } from './types.gen'; +import type { DeleteBotsByBotIdContainerData, DeleteBotsByBotIdContainerErrors, DeleteBotsByBotIdContainerResponses, DeleteBotsByBotIdContainerSkillsData, DeleteBotsByBotIdContainerSkillsErrors, DeleteBotsByBotIdContainerSkillsResponses, DeleteBotsByBotIdMcpByIdData, DeleteBotsByBotIdMcpByIdErrors, DeleteBotsByBotIdMcpByIdResponses, DeleteBotsByBotIdMemoryByIdData, DeleteBotsByBotIdMemoryByIdErrors, DeleteBotsByBotIdMemoryByIdResponses, DeleteBotsByBotIdMemoryData, DeleteBotsByBotIdMemoryErrors, DeleteBotsByBotIdMemoryResponses, DeleteBotsByBotIdScheduleByIdData, DeleteBotsByBotIdScheduleByIdErrors, DeleteBotsByBotIdScheduleByIdResponses, DeleteBotsByBotIdSettingsData, DeleteBotsByBotIdSettingsErrors, DeleteBotsByBotIdSettingsResponses, DeleteBotsByBotIdSubagentsByIdData, DeleteBotsByBotIdSubagentsByIdErrors, DeleteBotsByBotIdSubagentsByIdResponses, DeleteBotsByIdData, DeleteBotsByIdErrors, DeleteBotsByIdMembersByUserIdData, DeleteBotsByIdMembersByUserIdErrors, DeleteBotsByIdMembersByUserIdResponses, DeleteBotsByIdResponses, DeleteModelsByIdData, DeleteModelsByIdErrors, DeleteModelsByIdResponses, DeleteModelsModelByModelIdData, DeleteModelsModelByModelIdErrors, DeleteModelsModelByModelIdResponses, DeleteProvidersByIdData, DeleteProvidersByIdErrors, DeleteProvidersByIdResponses, GetBotsByBotIdContainerData, GetBotsByBotIdContainerErrors, GetBotsByBotIdContainerResponses, GetBotsByBotIdContainerSkillsData, GetBotsByBotIdContainerSkillsErrors, GetBotsByBotIdContainerSkillsResponses, GetBotsByBotIdContainerSnapshotsData, GetBotsByBotIdContainerSnapshotsResponses, GetBotsByBotIdMcpByIdData, GetBotsByBotIdMcpByIdErrors, GetBotsByBotIdMcpByIdResponses, GetBotsByBotIdMcpData, GetBotsByBotIdMcpErrors, GetBotsByBotIdMcpExportData, GetBotsByBotIdMcpExportErrors, GetBotsByBotIdMcpExportResponses, GetBotsByBotIdMcpResponses, GetBotsByBotIdMemoryData, GetBotsByBotIdMemoryErrors, GetBotsByBotIdMemoryResponses, GetBotsByBotIdMemoryUsageData, GetBotsByBotIdMemoryUsageErrors, GetBotsByBotIdMemoryUsageResponses, GetBotsByBotIdMessagesData, GetBotsByBotIdMessagesErrors, GetBotsByBotIdMessagesResponses, GetBotsByBotIdScheduleByIdData, GetBotsByBotIdScheduleByIdErrors, GetBotsByBotIdScheduleByIdResponses, GetBotsByBotIdScheduleData, GetBotsByBotIdScheduleErrors, GetBotsByBotIdScheduleResponses, GetBotsByBotIdSettingsData, GetBotsByBotIdSettingsErrors, GetBotsByBotIdSettingsResponses, GetBotsByBotIdSubagentsByIdContextData, GetBotsByBotIdSubagentsByIdContextErrors, GetBotsByBotIdSubagentsByIdContextResponses, GetBotsByBotIdSubagentsByIdData, GetBotsByBotIdSubagentsByIdErrors, GetBotsByBotIdSubagentsByIdResponses, GetBotsByBotIdSubagentsByIdSkillsData, GetBotsByBotIdSubagentsByIdSkillsErrors, GetBotsByBotIdSubagentsByIdSkillsResponses, GetBotsByBotIdSubagentsData, GetBotsByBotIdSubagentsErrors, GetBotsByBotIdSubagentsResponses, GetBotsByIdChannelByPlatformData, GetBotsByIdChannelByPlatformErrors, GetBotsByIdChannelByPlatformResponses, GetBotsByIdChecksData, GetBotsByIdChecksErrors, GetBotsByIdChecksKeysData, GetBotsByIdChecksKeysResponses, GetBotsByIdChecksResponses, GetBotsByIdChecksRunByKeyData, GetBotsByIdChecksRunByKeyResponses, GetBotsByIdData, GetBotsByIdErrors, GetBotsByIdMembersData, GetBotsByIdMembersErrors, GetBotsByIdMembersResponses, GetBotsByIdResponses, GetBotsData, GetBotsErrors, GetBotsResponses, GetChannelsByPlatformData, GetChannelsByPlatformErrors, GetChannelsByPlatformResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetModelsByIdData, GetModelsByIdErrors, GetModelsByIdResponses, GetModelsCountData, GetModelsCountErrors, GetModelsCountResponses, GetModelsData, GetModelsErrors, GetModelsModelByModelIdData, GetModelsModelByModelIdErrors, GetModelsModelByModelIdResponses, GetModelsResponses, GetProvidersByIdData, GetProvidersByIdErrors, GetProvidersByIdModelsData, GetProvidersByIdModelsErrors, GetProvidersByIdModelsResponses, GetProvidersByIdResponses, GetProvidersCountData, GetProvidersCountErrors, GetProvidersCountResponses, GetProvidersData, GetProvidersErrors, GetProvidersNameByNameData, GetProvidersNameByNameErrors, GetProvidersNameByNameResponses, GetProvidersResponses, GetUsersByIdData, GetUsersByIdErrors, GetUsersByIdResponses, GetUsersData, GetUsersErrors, GetUsersMeChannelsByPlatformData, GetUsersMeChannelsByPlatformErrors, GetUsersMeChannelsByPlatformResponses, GetUsersMeData, GetUsersMeErrors, GetUsersMeIdentitiesData, GetUsersMeIdentitiesErrors, GetUsersMeIdentitiesResponses, GetUsersMeResponses, GetUsersResponses, PostAuthLoginData, PostAuthLoginErrors, PostAuthLoginResponses, PostBotsByBotIdContainerData, PostBotsByBotIdContainerErrors, PostBotsByBotIdContainerResponses, PostBotsByBotIdContainerSkillsData, PostBotsByBotIdContainerSkillsErrors, PostBotsByBotIdContainerSkillsResponses, PostBotsByBotIdContainerSnapshotsData, PostBotsByBotIdContainerSnapshotsErrors, PostBotsByBotIdContainerSnapshotsResponses, PostBotsByBotIdContainerStartData, PostBotsByBotIdContainerStartErrors, PostBotsByBotIdContainerStartResponses, PostBotsByBotIdContainerStopData, PostBotsByBotIdContainerStopErrors, PostBotsByBotIdContainerStopResponses, PostBotsByBotIdMcpData, PostBotsByBotIdMcpErrors, PostBotsByBotIdMcpOpsBatchDeleteData, PostBotsByBotIdMcpOpsBatchDeleteErrors, PostBotsByBotIdMcpOpsBatchDeleteResponses, PostBotsByBotIdMcpResponses, PostBotsByBotIdMcpStdioByConnectionIdData, PostBotsByBotIdMcpStdioByConnectionIdErrors, PostBotsByBotIdMcpStdioByConnectionIdResponses, PostBotsByBotIdMcpStdioData, PostBotsByBotIdMcpStdioErrors, PostBotsByBotIdMcpStdioResponses, PostBotsByBotIdMemoryCompactData, PostBotsByBotIdMemoryCompactErrors, PostBotsByBotIdMemoryCompactResponses, PostBotsByBotIdMemoryData, PostBotsByBotIdMemoryErrors, PostBotsByBotIdMemoryRebuildData, PostBotsByBotIdMemoryRebuildErrors, PostBotsByBotIdMemoryRebuildResponses, PostBotsByBotIdMemoryResponses, PostBotsByBotIdMemorySearchData, PostBotsByBotIdMemorySearchErrors, PostBotsByBotIdMemorySearchResponses, PostBotsByBotIdScheduleData, PostBotsByBotIdScheduleErrors, PostBotsByBotIdScheduleResponses, PostBotsByBotIdSettingsData, PostBotsByBotIdSettingsErrors, PostBotsByBotIdSettingsResponses, PostBotsByBotIdSubagentsByIdSkillsData, PostBotsByBotIdSubagentsByIdSkillsErrors, PostBotsByBotIdSubagentsByIdSkillsResponses, PostBotsByBotIdSubagentsData, PostBotsByBotIdSubagentsErrors, PostBotsByBotIdSubagentsResponses, PostBotsByBotIdToolsData, PostBotsByBotIdToolsErrors, PostBotsByBotIdToolsResponses, PostBotsByIdChannelByPlatformSendChatData, PostBotsByIdChannelByPlatformSendChatErrors, PostBotsByIdChannelByPlatformSendChatResponses, PostBotsByIdChannelByPlatformSendData, PostBotsByIdChannelByPlatformSendErrors, PostBotsByIdChannelByPlatformSendResponses, PostBotsData, PostBotsErrors, PostBotsResponses, PostEmbeddingsData, PostEmbeddingsErrors, PostEmbeddingsResponses, PostModelsData, PostModelsErrors, PostModelsResponses, PostProvidersData, PostProvidersErrors, PostProvidersResponses, PostUsersData, PostUsersErrors, PostUsersResponses, PutBotsByBotIdMcpByIdData, PutBotsByBotIdMcpByIdErrors, PutBotsByBotIdMcpByIdResponses, PutBotsByBotIdMcpImportData, PutBotsByBotIdMcpImportErrors, PutBotsByBotIdMcpImportResponses, PutBotsByBotIdScheduleByIdData, PutBotsByBotIdScheduleByIdErrors, PutBotsByBotIdScheduleByIdResponses, PutBotsByBotIdSettingsData, PutBotsByBotIdSettingsErrors, PutBotsByBotIdSettingsResponses, PutBotsByBotIdSubagentsByIdContextData, PutBotsByBotIdSubagentsByIdContextErrors, PutBotsByBotIdSubagentsByIdContextResponses, PutBotsByBotIdSubagentsByIdData, PutBotsByBotIdSubagentsByIdErrors, PutBotsByBotIdSubagentsByIdResponses, PutBotsByBotIdSubagentsByIdSkillsData, PutBotsByBotIdSubagentsByIdSkillsErrors, PutBotsByBotIdSubagentsByIdSkillsResponses, PutBotsByIdChannelByPlatformData, PutBotsByIdChannelByPlatformErrors, PutBotsByIdChannelByPlatformResponses, PutBotsByIdData, PutBotsByIdErrors, PutBotsByIdMembersData, PutBotsByIdMembersErrors, PutBotsByIdMembersResponses, PutBotsByIdOwnerData, PutBotsByIdOwnerErrors, PutBotsByIdOwnerResponses, PutBotsByIdResponses, PutModelsByIdData, PutModelsByIdErrors, PutModelsByIdResponses, PutModelsModelByModelIdData, PutModelsModelByModelIdErrors, PutModelsModelByModelIdResponses, PutProvidersByIdData, PutProvidersByIdErrors, PutProvidersByIdResponses, PutUsersByIdData, PutUsersByIdErrors, PutUsersByIdPasswordData, PutUsersByIdPasswordErrors, PutUsersByIdPasswordResponses, PutUsersByIdResponses, PutUsersMeChannelsByPlatformData, PutUsersMeChannelsByPlatformErrors, PutUsersMeChannelsByPlatformResponses, PutUsersMeData, PutUsersMeErrors, PutUsersMePasswordData, PutUsersMePasswordErrors, PutUsersMePasswordResponses, PutUsersMeResponses } from './types.gen'; export type Options = Options2 & { /** @@ -152,6 +152,20 @@ export const postBotsByBotIdMcp = (options } }); +/** + * Batch delete MCP connections + * + * Delete multiple MCP connections by IDs. + */ +export const postBotsByBotIdMcpOpsBatchDelete = (options: Options) => (options.client ?? client).post({ + url: '/bots/{bot_id}/mcp-ops/batch-delete', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + /** * Create MCP stdio proxy * @@ -180,6 +194,27 @@ export const postBotsByBotIdMcpStdioByConnectionId = (options?: Options) => (options?.client ?? client).get({ url: '/bots/{bot_id}/mcp/export', ...options }); + +/** + * Import MCP connections + * + * Batch import MCP connections from standard mcpServers format. Existing connections (matched by name) get config updated with is_active preserved. New connections are created as active. + */ +export const putBotsByBotIdMcpImport = (options: Options) => (options.client ?? client).put({ + url: '/bots/{bot_id}/mcp/import', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + /** * Delete MCP connection * @@ -208,6 +243,104 @@ export const putBotsByBotIdMcpById = (opti } }); +/** + * Delete memories + * + * Delete specific memories by IDs, or delete all memories if no IDs are provided + */ +export const deleteBotsByBotIdMemory = (options: Options) => (options.client ?? client).delete({ + url: '/bots/{bot_id}/memory', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * Get all memories + * + * List all memories in the bot-shared namespace + */ +export const getBotsByBotIdMemory = (options: Options) => (options.client ?? client).get({ url: '/bots/{bot_id}/memory', ...options }); + +/** + * Add memory + * + * Add memory into the bot-shared namespace + */ +export const postBotsByBotIdMemory = (options: Options) => (options.client ?? client).post({ + url: '/bots/{bot_id}/memory', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * Compact memories + * + * Consolidate memories by merging similar/redundant entries using LLM. + * + * **ratio** (required, range (0,1]): + * - 0.8 = light compression, mostly dedup, keep ~80% of entries + * - 0.5 = moderate compression, merge similar facts, keep ~50% + * - 0.3 = aggressive compression, heavily consolidate, keep ~30% + * + * **decay_days** (optional): enable time decay — memories older than N days are treated as low priority and more likely to be merged/dropped. + */ +export const postBotsByBotIdMemoryCompact = (options: Options) => (options.client ?? client).post({ + url: '/bots/{bot_id}/memory/compact', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * Rebuild memories from filesystem + * + * Read memory files from the container filesystem (source of truth) and restore missing entries to Qdrant + */ +export const postBotsByBotIdMemoryRebuild = (options: Options) => (options.client ?? client).post({ url: '/bots/{bot_id}/memory/rebuild', ...options }); + +/** + * Search memory + * + * Search memory in the bot-shared namespace + */ +export const postBotsByBotIdMemorySearch = (options: Options) => (options.client ?? client).post({ + url: '/bots/{bot_id}/memory/search', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * Get memory usage + * + * Query the estimated storage usage of current memories + */ +export const getBotsByBotIdMemoryUsage = (options: Options) => (options.client ?? client).get({ url: '/bots/{bot_id}/memory/usage', ...options }); + +/** + * Delete a single memory + * + * Delete a single memory by its ID + */ +export const deleteBotsByBotIdMemoryById = (options: Options) => (options.client ?? client).delete({ url: '/bots/{bot_id}/memory/{id}', ...options }); + +/** + * List bot history messages + * + * List messages for a bot history with optional pagination + */ +export const getBotsByBotIdMessages = (options: Options) => (options.client ?? client).get({ url: '/bots/{bot_id}/messages', ...options }); + /** * List schedules * @@ -502,6 +635,20 @@ export const postBotsByIdChannelByPlatformSendChat = (options: Options) => (options.client ?? client).get({ url: '/bots/{id}/checks', ...options }); +/** + * List available check keys + * + * Returns all check keys available for a bot (builtin + MCP connections) + */ +export const getBotsByIdChecksKeys = (options: Options) => (options.client ?? client).get({ url: '/bots/{id}/checks/keys', ...options }); + +/** + * Run a single bot check + * + * Evaluate one check key for a bot + */ +export const getBotsByIdChecksRunByKey = (options: Options) => (options.client ?? client).get({ url: '/bots/{id}/checks/run/{key}', ...options }); + /** * List bot members * diff --git a/packages/sdk/src/types.gen.ts b/packages/sdk/src/types.gen.ts index 18824ab9..2973d0a7 100644 --- a/packages/sdk/src/types.gen.ts +++ b/packages/sdk/src/types.gen.ts @@ -53,6 +53,7 @@ export type AccountsUpdateProfileRequest = { }; export type BotsBot = { + allow_guest?: boolean; avatar_url?: string; check_issue_count?: number; check_state?: string; @@ -100,6 +101,10 @@ export type BotsListBotsResponse = { items?: Array; }; +export type BotsListCheckKeysResponse = { + keys?: Array; +}; + export type BotsListChecksResponse = { items?: Array; }; @@ -173,34 +178,34 @@ export type ChannelChannelCapabilities = { }; export type ChannelChannelConfig = { - botID?: string; - channelType?: string; - createdAt?: string; + bot_id?: string; + channel_type?: string; + created_at?: string; credentials?: { [key: string]: unknown; }; - externalIdentity?: string; + external_identity?: string; id?: string; routing?: { [key: string]: unknown; }; - selfIdentity?: { + self_identity?: { [key: string]: unknown; }; status?: string; - updatedAt?: string; - verifiedAt?: string; + updated_at?: string; + verified_at?: string; }; export type ChannelChannelIdentityBinding = { - channelIdentityID?: string; - channelType?: string; + channel_identity_id?: string; + channel_type?: string; config?: { [key: string]: unknown; }; - createdAt?: string; + created_at?: string; id?: string; - updatedAt?: string; + updated_at?: string; }; export type ChannelConfigSchema = { @@ -301,18 +306,22 @@ export type ChannelUpsertConfigRequest = { }; export type GithubComMemohaiMemohInternalMcpConnection = { - active?: boolean; bot_id?: string; config?: { [key: string]: unknown; }; created_at?: string; id?: string; + is_active?: boolean; name?: string; type?: string; updated_at?: string; }; +export type HandlersBatchDeleteRequest = { + ids?: Array; +}; + export type HandlersChannelMeta = { capabilities?: ChannelChannelCapabilities; config_schema?: ChannelConfigSchema; @@ -369,9 +378,9 @@ export type HandlersEmbeddingsResponse = { }; export type HandlersEmbeddingsUsage = { + duration?: number; image_tokens?: number; input_tokens?: number; - video_tokens?: number; }; export type HandlersErrorResponse = { @@ -464,6 +473,41 @@ export type HandlersListMyIdentitiesResponse = { user_id?: string; }; +export type HandlersMemoryAddPayload = { + embedding_enabled?: boolean; + filters?: { + [key: string]: unknown; + }; + infer?: boolean; + message?: string; + messages?: Array; + metadata?: { + [key: string]: unknown; + }; + namespace?: string; + run_id?: string; +}; + +export type HandlersMemoryCompactPayload = { + decay_days?: number; + ratio?: number; +}; + +export type HandlersMemoryDeletePayload = { + memory_ids?: Array; +}; + +export type HandlersMemorySearchPayload = { + embedding_enabled?: boolean; + filters?: { + [key: string]: unknown; + }; + limit?: number; + query?: string; + run_id?: string; + sources?: Array; +}; + export type HandlersSkillsOpResponse = { ok?: boolean; }; @@ -482,17 +526,143 @@ export type IdentitiesChannelIdentity = { user_id?: string; }; +export type McpExportResponse = { + mcpServers?: { + [key: string]: McpMcpServerEntry; + }; +}; + +export type McpImportRequest = { + mcpServers?: { + [key: string]: McpMcpServerEntry; + }; +}; + export type McpListResponse = { items?: Array; }; +export type McpMcpServerEntry = { + args?: Array; + command?: string; + cwd?: string; + env?: { + [key: string]: string; + }; + headers?: { + [key: string]: string; + }; + transport?: string; + url?: string; +}; + export type McpUpsertRequest = { - active?: boolean; - config?: { + args?: Array; + command?: string; + cwd?: string; + env?: { + [key: string]: string; + }; + headers?: { + [key: string]: string; + }; + is_active?: boolean; + name?: string; + transport?: string; + url?: string; +}; + +export type MemoryCdfPoint = { + /** + * cumulative weight fraction [0.0, 1.0] + */ + cumulative?: number; + /** + * rank position (1-based, sorted by value desc) + */ + k?: number; +}; + +export type MemoryCompactResult = { + after_count?: number; + before_count?: number; + ratio?: number; + results?: Array; +}; + +export type MemoryDeleteResponse = { + message?: string; +}; + +export type MemoryMemoryItem = { + agent_id?: string; + bot_id?: string; + created_at?: string; + hash?: string; + id?: string; + memory?: string; + metadata?: { [key: string]: unknown; }; - name?: string; - type?: string; + run_id?: string; + score?: number; + updated_at?: string; +}; + +export type MemoryMessage = { + content?: string; + role?: string; +}; + +export type MemoryRebuildResult = { + fs_count?: number; + missing_count?: number; + qdrant_count?: number; + restored_count?: number; +}; + +export type MemorySearchResponse = { + cdf_curve?: Array; + relations?: Array; + results?: Array; + top_k_buckets?: Array; +}; + +export type MemoryTopKBucket = { + /** + * sparse dimension index (term hash) + */ + index?: number; + /** + * weight (term frequency) + */ + value?: number; +}; + +export type MemoryUsageResponse = { + avg_text_bytes?: number; + count?: number; + estimated_storage_bytes?: number; + total_text_bytes?: number; +}; + +export type MessageMessage = { + bot_id?: string; + content?: Array; + created_at?: string; + external_message_id?: string; + id?: string; + metadata?: { + [key: string]: unknown; + }; + platform?: string; + role?: string; + route_id?: string; + sender_avatar_url?: string; + sender_channel_identity_id?: string; + sender_display_name?: string; + sender_user_id?: string; + source_reply_to_message_id?: string; }; export type ModelsAddRequest = { @@ -1248,6 +1418,40 @@ export type PostBotsByBotIdMcpResponses = { export type PostBotsByBotIdMcpResponse = PostBotsByBotIdMcpResponses[keyof PostBotsByBotIdMcpResponses]; +export type PostBotsByBotIdMcpOpsBatchDeleteData = { + /** + * IDs to delete + */ + body: HandlersBatchDeleteRequest; + path?: never; + query?: never; + url: '/bots/{bot_id}/mcp-ops/batch-delete'; +}; + +export type PostBotsByBotIdMcpOpsBatchDeleteErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; +}; + +export type PostBotsByBotIdMcpOpsBatchDeleteError = PostBotsByBotIdMcpOpsBatchDeleteErrors[keyof PostBotsByBotIdMcpOpsBatchDeleteErrors]; + +export type PostBotsByBotIdMcpOpsBatchDeleteResponses = { + /** + * No Content + */ + 204: unknown; +}; + export type PostBotsByBotIdMcpStdioData = { /** * Stdio MCP payload @@ -1338,6 +1542,75 @@ export type PostBotsByBotIdMcpStdioByConnectionIdResponses = { export type PostBotsByBotIdMcpStdioByConnectionIdResponse = PostBotsByBotIdMcpStdioByConnectionIdResponses[keyof PostBotsByBotIdMcpStdioByConnectionIdResponses]; +export type GetBotsByBotIdMcpExportData = { + body?: never; + path?: never; + query?: never; + url: '/bots/{bot_id}/mcp/export'; +}; + +export type GetBotsByBotIdMcpExportErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; +}; + +export type GetBotsByBotIdMcpExportError = GetBotsByBotIdMcpExportErrors[keyof GetBotsByBotIdMcpExportErrors]; + +export type GetBotsByBotIdMcpExportResponses = { + /** + * OK + */ + 200: McpExportResponse; +}; + +export type GetBotsByBotIdMcpExportResponse = GetBotsByBotIdMcpExportResponses[keyof GetBotsByBotIdMcpExportResponses]; + +export type PutBotsByBotIdMcpImportData = { + /** + * mcpServers dict + */ + body: McpImportRequest; + path?: never; + query?: never; + url: '/bots/{bot_id}/mcp/import'; +}; + +export type PutBotsByBotIdMcpImportErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; +}; + +export type PutBotsByBotIdMcpImportError = PutBotsByBotIdMcpImportErrors[keyof PutBotsByBotIdMcpImportErrors]; + +export type PutBotsByBotIdMcpImportResponses = { + /** + * OK + */ + 200: McpListResponse; +}; + +export type PutBotsByBotIdMcpImportResponse = PutBotsByBotIdMcpImportResponses[keyof PutBotsByBotIdMcpImportResponses]; + export type DeleteBotsByBotIdMcpByIdData = { body?: never; path: { @@ -1465,6 +1738,411 @@ export type PutBotsByBotIdMcpByIdResponses = { export type PutBotsByBotIdMcpByIdResponse = PutBotsByBotIdMcpByIdResponses[keyof PutBotsByBotIdMcpByIdResponses]; +export type DeleteBotsByBotIdMemoryData = { + /** + * Optional: specify memory_ids to delete; if omitted, deletes all + */ + body?: HandlersMemoryDeletePayload; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory'; +}; + +export type DeleteBotsByBotIdMemoryErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type DeleteBotsByBotIdMemoryError = DeleteBotsByBotIdMemoryErrors[keyof DeleteBotsByBotIdMemoryErrors]; + +export type DeleteBotsByBotIdMemoryResponses = { + /** + * OK + */ + 200: MemoryDeleteResponse; +}; + +export type DeleteBotsByBotIdMemoryResponse = DeleteBotsByBotIdMemoryResponses[keyof DeleteBotsByBotIdMemoryResponses]; + +export type GetBotsByBotIdMemoryData = { + body?: never; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory'; +}; + +export type GetBotsByBotIdMemoryErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type GetBotsByBotIdMemoryError = GetBotsByBotIdMemoryErrors[keyof GetBotsByBotIdMemoryErrors]; + +export type GetBotsByBotIdMemoryResponses = { + /** + * OK + */ + 200: MemorySearchResponse; +}; + +export type GetBotsByBotIdMemoryResponse = GetBotsByBotIdMemoryResponses[keyof GetBotsByBotIdMemoryResponses]; + +export type PostBotsByBotIdMemoryData = { + /** + * Memory add payload + */ + body: HandlersMemoryAddPayload; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory'; +}; + +export type PostBotsByBotIdMemoryErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type PostBotsByBotIdMemoryError = PostBotsByBotIdMemoryErrors[keyof PostBotsByBotIdMemoryErrors]; + +export type PostBotsByBotIdMemoryResponses = { + /** + * OK + */ + 200: MemorySearchResponse; +}; + +export type PostBotsByBotIdMemoryResponse = PostBotsByBotIdMemoryResponses[keyof PostBotsByBotIdMemoryResponses]; + +export type PostBotsByBotIdMemoryCompactData = { + /** + * ratio (0,1] required; decay_days optional + */ + body: HandlersMemoryCompactPayload; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory/compact'; +}; + +export type PostBotsByBotIdMemoryCompactErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type PostBotsByBotIdMemoryCompactError = PostBotsByBotIdMemoryCompactErrors[keyof PostBotsByBotIdMemoryCompactErrors]; + +export type PostBotsByBotIdMemoryCompactResponses = { + /** + * OK + */ + 200: MemoryCompactResult; +}; + +export type PostBotsByBotIdMemoryCompactResponse = PostBotsByBotIdMemoryCompactResponses[keyof PostBotsByBotIdMemoryCompactResponses]; + +export type PostBotsByBotIdMemoryRebuildData = { + body?: never; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory/rebuild'; +}; + +export type PostBotsByBotIdMemoryRebuildErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type PostBotsByBotIdMemoryRebuildError = PostBotsByBotIdMemoryRebuildErrors[keyof PostBotsByBotIdMemoryRebuildErrors]; + +export type PostBotsByBotIdMemoryRebuildResponses = { + /** + * OK + */ + 200: MemoryRebuildResult; +}; + +export type PostBotsByBotIdMemoryRebuildResponse = PostBotsByBotIdMemoryRebuildResponses[keyof PostBotsByBotIdMemoryRebuildResponses]; + +export type PostBotsByBotIdMemorySearchData = { + /** + * Memory search payload + */ + body: HandlersMemorySearchPayload; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory/search'; +}; + +export type PostBotsByBotIdMemorySearchErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Not Found + */ + 404: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type PostBotsByBotIdMemorySearchError = PostBotsByBotIdMemorySearchErrors[keyof PostBotsByBotIdMemorySearchErrors]; + +export type PostBotsByBotIdMemorySearchResponses = { + /** + * OK + */ + 200: MemorySearchResponse; +}; + +export type PostBotsByBotIdMemorySearchResponse = PostBotsByBotIdMemorySearchResponses[keyof PostBotsByBotIdMemorySearchResponses]; + +export type GetBotsByBotIdMemoryUsageData = { + body?: never; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory/usage'; +}; + +export type GetBotsByBotIdMemoryUsageErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type GetBotsByBotIdMemoryUsageError = GetBotsByBotIdMemoryUsageErrors[keyof GetBotsByBotIdMemoryUsageErrors]; + +export type GetBotsByBotIdMemoryUsageResponses = { + /** + * OK + */ + 200: MemoryUsageResponse; +}; + +export type GetBotsByBotIdMemoryUsageResponse = GetBotsByBotIdMemoryUsageResponses[keyof GetBotsByBotIdMemoryUsageResponses]; + +export type DeleteBotsByBotIdMemoryByIdData = { + body?: never; + path: { + /** + * Bot ID + */ + bot_id: string; + /** + * Memory ID + */ + id: string; + }; + query?: never; + url: '/bots/{bot_id}/memory/{id}'; +}; + +export type DeleteBotsByBotIdMemoryByIdErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; + /** + * Service Unavailable + */ + 503: HandlersErrorResponse; +}; + +export type DeleteBotsByBotIdMemoryByIdError = DeleteBotsByBotIdMemoryByIdErrors[keyof DeleteBotsByBotIdMemoryByIdErrors]; + +export type DeleteBotsByBotIdMemoryByIdResponses = { + /** + * OK + */ + 200: MemoryDeleteResponse; +}; + +export type DeleteBotsByBotIdMemoryByIdResponse = DeleteBotsByBotIdMemoryByIdResponses[keyof DeleteBotsByBotIdMemoryByIdResponses]; + +export type GetBotsByBotIdMessagesData = { + body?: never; + path: { + /** + * Bot ID + */ + bot_id: string; + }; + query?: { + /** + * Limit + */ + limit?: number; + /** + * Before + */ + before?: string; + }; + url: '/bots/{bot_id}/messages'; +}; + +export type GetBotsByBotIdMessagesErrors = { + /** + * Bad Request + */ + 400: HandlersErrorResponse; + /** + * Forbidden + */ + 403: HandlersErrorResponse; + /** + * Internal Server Error + */ + 500: HandlersErrorResponse; +}; + +export type GetBotsByBotIdMessagesError = GetBotsByBotIdMessagesErrors[keyof GetBotsByBotIdMessagesErrors]; + +export type GetBotsByBotIdMessagesResponses = { + /** + * OK + */ + 200: { + [key: string]: Array; + }; +}; + +export type GetBotsByBotIdMessagesResponse = GetBotsByBotIdMessagesResponses[keyof GetBotsByBotIdMessagesResponses]; + export type GetBotsByBotIdScheduleData = { body?: never; path?: never; @@ -2543,6 +3221,52 @@ export type GetBotsByIdChecksResponses = { export type GetBotsByIdChecksResponse = GetBotsByIdChecksResponses[keyof GetBotsByIdChecksResponses]; +export type GetBotsByIdChecksKeysData = { + body?: never; + path: { + /** + * Bot ID + */ + id: string; + }; + query?: never; + url: '/bots/{id}/checks/keys'; +}; + +export type GetBotsByIdChecksKeysResponses = { + /** + * OK + */ + 200: BotsListCheckKeysResponse; +}; + +export type GetBotsByIdChecksKeysResponse = GetBotsByIdChecksKeysResponses[keyof GetBotsByIdChecksKeysResponses]; + +export type GetBotsByIdChecksRunByKeyData = { + body?: never; + path: { + /** + * Bot ID + */ + id: string; + /** + * Check key + */ + key: string; + }; + query?: never; + url: '/bots/{id}/checks/run/{key}'; +}; + +export type GetBotsByIdChecksRunByKeyResponses = { + /** + * OK + */ + 200: BotsBotCheck; +}; + +export type GetBotsByIdChecksRunByKeyResponse = GetBotsByIdChecksRunByKeyResponses[keyof GetBotsByIdChecksRunByKeyResponses]; + export type GetBotsByIdMembersData = { body?: never; path: { diff --git a/packages/web/src/i18n/locales/en.json b/packages/web/src/i18n/locales/en.json index 04fd09f2..c8b775bc 100644 --- a/packages/web/src/i18n/locales/en.json +++ b/packages/web/src/i18n/locales/en.json @@ -80,6 +80,10 @@ "passwordNotMatch": "The new passwords do not match", "passwordUpdated": "Password updated", "passwordUpdateFailed": "Failed to update password", + "changeEmail": "Change Email", + "emailRequired": "Email is required", + "emailUpdated": "Email updated", + "emailUpdateFailed": "Failed to update email", "linkedChannels": "Linked Platform Accounts", "noLinkedChannels": "No linked platform accounts yet", "bindCode": "Bind Code", @@ -336,9 +340,9 @@ "credentials": "Credentials", "saveSuccess": "Platform configuration saved", "saveFailed": "Failed to save platform configuration", - "requiredField": "{field} is required", - "save": "Save Platform Configuration", - "statusActive": "Active", + "requiredField": "{field} is required", + "save": "Save Platform Configuration", + "statusActive": "Active", "statusInactive": "Inactive", "deleteConfirm": "Are you sure you want to remove this platform?", "noAvailableTypes": "All platform types have been configured", @@ -354,6 +358,30 @@ "web": "Web", "local": "CLI" } + }, + "memory": { + "title": "Here lie the memories.", + "files": "Memory Files", + "empty": "No memory entries found.", + "searchPlaceholder": "Search memory...", + "newMemory": "New Memory", + "compact": "Compact Memory", + "compactConfirm": "Are you sure you want to compact the memory? This will merge similar content using AI and may reduce the number of entries.", + "compactRatio": "Compression Ratio", + "compactRatioLight": "Light (0.8)", + "compactRatioMedium": "Medium (0.5)", + "compactRatioAggressive": "Aggressive (0.3)", + "compactRatioLightDesc": "Keep most details, mostly deduplicate.", + "compactRatioMediumDesc": "Merge similar facts, balanced compression.", + "compactRatioAggressiveDesc": "Heavily consolidate, keep core facts only.", + "compactDecayDate": "Target memories before this date", + "compactSuccess": "Memory compacted successfully", + "compactFailed": "Memory compaction failed", + "selectConversation": "Select Conversation", + "fromConversation": "Create from Conversation", + "noConversations": "No history conversations found", + "idCopied": "ID copied to clipboard", + "deleteConfirm": "Are you sure you want to delete this memory? This cannot be undone." } } } diff --git a/packages/web/src/i18n/locales/zh.json b/packages/web/src/i18n/locales/zh.json index 880115cb..72dc73a5 100644 --- a/packages/web/src/i18n/locales/zh.json +++ b/packages/web/src/i18n/locales/zh.json @@ -336,9 +336,9 @@ "credentials": "凭据配置", "saveSuccess": "平台配置已保存", "saveFailed": "平台配置保存失败", - "requiredField": "{field} 为必填项", - "save": "保存平台配置", - "statusActive": "启用", + "requiredField": "{field} 为必填项", + "save": "保存平台配置", + "statusActive": "启用", "statusInactive": "停用", "deleteConfirm": "确定要移除这个平台吗?", "noAvailableTypes": "所有平台类型均已配置", @@ -354,6 +354,30 @@ "web": "Web", "local": "CLI" } + }, + "memory": { + "title": "所忆皆在此间", + "files": "记忆文件", + "empty": "暂无记忆条目", + "searchPlaceholder": "搜索记忆...", + "newMemory": "新建记忆", + "compact": "压缩记忆", + "compactConfirm": "确定要压缩记忆吗?这会通过 AI 合并相似内容,可能会减少记忆条目数量。", + "compactRatio": "压缩率", + "compactRatioLight": "轻度 (0.8)", + "compactRatioMedium": "中度 (0.5)", + "compactRatioAggressive": "重度 (0.3)", + "compactRatioLightDesc": "保留大部分细节,主要是去重。", + "compactRatioMediumDesc": "合并相似事实,平衡压缩。", + "compactRatioAggressiveDesc": "深度整合,仅保留核心事实。", + "compactDecayDate": "以此日期之前的记忆会被优先压缩", + "compactSuccess": "记忆压缩成功", + "compactFailed": "记忆压缩失败", + "selectConversation": "选择对话", + "fromConversation": "从已有对话创建", + "noConversations": "暂无历史对话", + "idCopied": "ID 已复制", + "deleteConfirm": "确定要删除这条记忆吗?此操作无法撤销。" } } } diff --git a/packages/web/src/main.ts b/packages/web/src/main.ts index 57a5ca6d..29a04750 100644 --- a/packages/web/src/main.ts +++ b/packages/web/src/main.ts @@ -40,6 +40,11 @@ import { faGlobe, faBuilding, faBell, + faRotate, + faFileLines, + faBrain, + faCopy, + faCompress, } from '@fortawesome/free-solid-svg-icons' import { faRectangleList, @@ -73,6 +78,11 @@ library.add( faGlobe, faBuilding, faBell, + faRotate, + faFileLines, + faBrain, + faCopy, + faCompress, faRectangleList, faTrashCan, faComments, diff --git a/packages/web/src/pages/bots/components/bot-channels.vue b/packages/web/src/pages/bots/components/bot-channels.vue index ca7ddcf3..e8c92192 100644 --- a/packages/web/src/pages/bots/components/bot-channels.vue +++ b/packages/web/src/pages/bots/components/bot-channels.vue @@ -51,7 +51,7 @@
{{ $t('bots.channels.statusActive') }} diff --git a/packages/web/src/pages/bots/components/bot-mcp.vue b/packages/web/src/pages/bots/components/bot-mcp.vue index 226af8d7..ff37acbf 100644 --- a/packages/web/src/pages/bots/components/bot-mcp.vue +++ b/packages/web/src/pages/bots/components/bot-mcp.vue @@ -576,7 +576,13 @@ import { } from '@memoh/ui' import DataTable from '@/components/data-table/index.vue' import { useKeyValueTags } from '@/composables/useKeyValueTags' -import { client } from '@memoh/sdk/client' +import { + getBotsByBotIdMcp, + postBotsByBotIdMcp, + putBotsByBotIdMcpById, + deleteBotsByBotIdMcpById, + postBotsByBotIdMcpOpsBatchDelete, +} from '@memoh/sdk' import ConfirmPopover from '@/components/confirm-popover/index.vue' interface McpItem { @@ -800,10 +806,10 @@ const columns = computed[]>(() => [ async function loadList() { loading.value = true try { - const { data } = await client.get({ - url: `/bots/${props.botId}/mcp`, + const { data } = await getBotsByBotIdMcp({ + path: { bot_id: props.botId }, throwOnError: true, - }) as { data: { items: McpItem[] } } + }) items.value = data.items ?? [] } catch (error) { toast.error(resolveError(error, t('common.loadFailed'))) @@ -977,15 +983,15 @@ async function handleSubmit() { try { const body = buildRequestBody() if (editingItem.value) { - await client.put({ - url: `/bots/${props.botId}/mcp/${editingItem.value.id}`, - body, + await putBotsByBotIdMcpById({ + path: { bot_id: props.botId, id: editingItem.value.id }, + body: body as any, throwOnError: true, }) } else { - await client.post({ - url: `/bots/${props.botId}/mcp`, - body, + await postBotsByBotIdMcp({ + path: { bot_id: props.botId }, + body: body as any, throwOnError: true, }) } @@ -1001,8 +1007,8 @@ async function handleSubmit() { async function handleDelete(id: string) { try { - await client.delete({ - url: `/bots/${props.botId}/mcp/${id}`, + await deleteBotsByBotIdMcpById({ + path: { bot_id: props.botId, id }, throwOnError: true, }) selectedIds.value = selectedIds.value.filter((x) => x !== id) @@ -1016,8 +1022,8 @@ async function handleDelete(id: string) { async function handleBatchDelete() { if (selectedIds.value.length === 0) return try { - await client.post({ - url: `/bots/${props.botId}/mcp-ops/batch-delete`, + await postBotsByBotIdMcpOpsBatchDelete({ + path: { bot_id: props.botId }, body: { ids: selectedIds.value }, throwOnError: true, }) diff --git a/packages/web/src/pages/bots/components/bot-memory.vue b/packages/web/src/pages/bots/components/bot-memory.vue new file mode 100644 index 00000000..4fc89307 --- /dev/null +++ b/packages/web/src/pages/bots/components/bot-memory.vue @@ -0,0 +1,878 @@ +