@mastra/core
Version:
99 lines • 7.79 kB
TypeScript
import type { StorageColumn, StorageTableConfig } from './types.js';
export declare const TABLE_WORKFLOW_SNAPSHOT = "mastra_workflow_snapshot";
export declare const TABLE_MESSAGES = "mastra_messages";
export declare const TABLE_THREADS = "mastra_threads";
export declare const TABLE_TRACES = "mastra_traces";
export declare const TABLE_RESOURCES = "mastra_resources";
export declare const TABLE_SCORERS = "mastra_scorers";
export declare const TABLE_SPANS = "mastra_ai_spans";
export declare const TABLE_AGENTS = "mastra_agents";
export declare const TABLE_AGENT_VERSIONS = "mastra_agent_versions";
export declare const TABLE_OBSERVATIONAL_MEMORY = "mastra_observational_memory";
export declare const TABLE_PROMPT_BLOCKS = "mastra_prompt_blocks";
export declare const TABLE_PROMPT_BLOCK_VERSIONS = "mastra_prompt_block_versions";
export declare const TABLE_SCORER_DEFINITIONS = "mastra_scorer_definitions";
export declare const TABLE_SCORER_DEFINITION_VERSIONS = "mastra_scorer_definition_versions";
export declare const TABLE_MCP_CLIENTS = "mastra_mcp_clients";
export declare const TABLE_MCP_CLIENT_VERSIONS = "mastra_mcp_client_versions";
export declare const TABLE_MCP_SERVERS = "mastra_mcp_servers";
export declare const TABLE_MCP_SERVER_VERSIONS = "mastra_mcp_server_versions";
export declare const TABLE_WORKSPACES = "mastra_workspaces";
export declare const TABLE_WORKSPACE_VERSIONS = "mastra_workspace_versions";
export declare const TABLE_SKILLS = "mastra_skills";
export declare const TABLE_SKILL_VERSIONS = "mastra_skill_versions";
export declare const TABLE_SKILL_BLOBS = "mastra_skill_blobs";
export declare const TABLE_FAVORITES = "mastra_favorites";
export declare const TABLE_DATASETS = "mastra_datasets";
export declare const TABLE_DATASET_ITEMS = "mastra_dataset_items";
export declare const TABLE_DATASET_VERSIONS = "mastra_dataset_versions";
export declare const TABLE_EXPERIMENTS = "mastra_experiments";
export declare const TABLE_EXPERIMENT_RESULTS = "mastra_experiment_results";
export declare const TABLE_BACKGROUND_TASKS = "mastra_background_tasks";
export declare const TABLE_SCHEDULES = "mastra_schedules";
export declare const TABLE_SCHEDULE_TRIGGERS = "mastra_schedule_triggers";
export declare const TABLE_CHANNEL_INSTALLATIONS = "mastra_channel_installations";
export declare const TABLE_CHANNEL_CONFIG = "mastra_channel_config";
export declare const TABLE_TOOL_PROVIDER_CONNECTIONS = "mastra_tool_provider_connections";
export declare const TABLE_NOTIFICATIONS = "mastra_notifications";
export declare const TABLE_HARNESS_SESSIONS = "mastra_harness_sessions";
export declare const TABLE_THREAD_STATE = "mastra_thread_state";
/** Union of all core table name constants. */
export type TABLE_NAMES = typeof TABLE_WORKFLOW_SNAPSHOT | typeof TABLE_MESSAGES | typeof TABLE_THREADS | typeof TABLE_TRACES | typeof TABLE_RESOURCES | typeof TABLE_SCORERS | typeof TABLE_SPANS | typeof TABLE_AGENTS | typeof TABLE_AGENT_VERSIONS | typeof TABLE_PROMPT_BLOCKS | typeof TABLE_PROMPT_BLOCK_VERSIONS | typeof TABLE_SCORER_DEFINITIONS | typeof TABLE_SCORER_DEFINITION_VERSIONS | typeof TABLE_MCP_CLIENTS | typeof TABLE_MCP_CLIENT_VERSIONS | typeof TABLE_MCP_SERVERS | typeof TABLE_MCP_SERVER_VERSIONS | typeof TABLE_WORKSPACES | typeof TABLE_WORKSPACE_VERSIONS | typeof TABLE_SKILLS | typeof TABLE_SKILL_VERSIONS | typeof TABLE_SKILL_BLOBS | typeof TABLE_DATASETS | typeof TABLE_DATASET_ITEMS | typeof TABLE_DATASET_VERSIONS | typeof TABLE_EXPERIMENTS | typeof TABLE_EXPERIMENT_RESULTS | typeof TABLE_BACKGROUND_TASKS | typeof TABLE_FAVORITES | typeof TABLE_SCHEDULES | typeof TABLE_SCHEDULE_TRIGGERS | typeof TABLE_CHANNEL_INSTALLATIONS | typeof TABLE_CHANNEL_CONFIG | typeof TABLE_TOOL_PROVIDER_CONNECTIONS | typeof TABLE_NOTIFICATIONS | typeof TABLE_HARNESS_SESSIONS | typeof TABLE_THREAD_STATE;
export declare const SCORERS_SCHEMA: Record<string, StorageColumn>;
export declare const SPAN_SCHEMA: Record<"error" | "attributes" | "requestContext" | "name" | "entityType" | "entityId" | "entityName" | "input" | "metadata" | "traceId" | "output" | "spanId" | "createdAt" | "updatedAt" | "spanType" | "isEvent" | "startedAt" | "parentSpanId" | "experimentId" | "links" | "endedAt" | "tags" | "source" | "parentEntityType" | "parentEntityId" | "parentEntityName" | "rootEntityType" | "rootEntityId" | "rootEntityName" | "userId" | "organizationId" | "resourceId" | "runId" | "sessionId" | "threadId" | "requestId" | "environment" | "serviceName" | "scope" | "entityVersionId" | "parentEntityVersionId" | "rootEntityVersionId", StorageColumn>;
/**
* @deprecated Use SPAN_SCHEMA instead. This legacy schema is retained only for migration purposes.
* @internal
*/
export declare const OLD_SPAN_SCHEMA: Record<string, StorageColumn>;
export declare const AGENTS_SCHEMA: Record<string, StorageColumn>;
export declare const AGENT_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const PROMPT_BLOCKS_SCHEMA: Record<string, StorageColumn>;
export declare const PROMPT_BLOCK_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const SCORER_DEFINITIONS_SCHEMA: Record<string, StorageColumn>;
export declare const SCORER_DEFINITION_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const MCP_CLIENTS_SCHEMA: Record<string, StorageColumn>;
export declare const MCP_CLIENT_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const MCP_SERVERS_SCHEMA: Record<string, StorageColumn>;
export declare const MCP_SERVER_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const WORKSPACES_SCHEMA: Record<string, StorageColumn>;
export declare const WORKSPACE_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const SKILLS_SCHEMA: Record<string, StorageColumn>;
export declare const FAVORITES_SCHEMA: Record<string, StorageColumn>;
/**
* Per-author registry of authorized tool provider connections. Stores a stable
* user-supplied label across agents. Composite primary key on
* (authorId, providerId, connectionId). `scope` buckets identity:
* 'per-author' (default), 'shared' (visible to all callers), or
* 'caller-supplied' (authorId is a host-app end-user id forwarded via request
* context).
*/
export declare const TOOL_PROVIDER_CONNECTIONS_SCHEMA: Record<string, StorageColumn>;
export declare const NOTIFICATIONS_SCHEMA: Record<string, StorageColumn>;
export declare const HARNESS_SESSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const THREAD_STATE_SCHEMA: Record<string, StorageColumn>;
export declare const SKILL_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const SKILL_BLOBS_SCHEMA: Record<string, StorageColumn>;
export declare const OBSERVATIONAL_MEMORY_SCHEMA: Record<string, StorageColumn>;
export declare const DATASETS_SCHEMA: Record<string, StorageColumn>;
export declare const DATASET_ITEMS_SCHEMA: Record<string, StorageColumn>;
export declare const DATASET_VERSIONS_SCHEMA: Record<string, StorageColumn>;
export declare const EXPERIMENTS_SCHEMA: Record<string, StorageColumn>;
export declare const EXPERIMENT_RESULTS_SCHEMA: Record<string, StorageColumn>;
/**
* Schema definitions for all core tables.
*/
export declare const TABLE_SCHEMAS: Record<TABLE_NAMES, Record<string, StorageColumn>>;
/**
* Table-level config for tables that need composite primary keys or other table-level settings.
* Keyed by table name. Tables not listed here use single-column PKs from their schema.
*/
export declare const TABLE_CONFIGS: Partial<Record<TABLE_NAMES, StorageTableConfig>>;
/**
* Schema for the observational memory table.
* Exported separately as OM is optional and not part of TABLE_NAMES.
*/
export declare const OBSERVATIONAL_MEMORY_TABLE_SCHEMA: {
mastra_observational_memory: Record<string, StorageColumn>;
};
//# sourceMappingURL=constants.d.ts.map