import type { RequestContext } from '@mastra/core/request-context'; import { Agent, MemoryThread, Tool, Processor, Workflow, Vector, Knowledge, BaseResource, A2A, A2AV1, MCPTool, AgentBuilder, Conversations, StoredAgent, DynamicWorkflow, StoredPromptBlock, StoredMCPClient, StoredScorer, StoredSkill, ToolProvider, ProcessorProvider, Workspace, Responses, Channels, AgentController } from './resources/index.js'; import type { KnowledgeInstanceSummary } from './resources/index.js'; import type { LegacyGetTracesResponse, LegacyTracesPaginatedArg, ListScoresBySpanParams, QuerySpansInput, QuerySpansResult, QueryTraceThreadsInput, QueryTraceThreadsResult, QueryTracesGroupedInput, QueryTracesInput, QueryTracesDeltaInput, QueryTracesKeysetInput, QueryTracesPaginatedInput } from './resources/observability.js'; import type { TraceRecord, GetTracePageArgs, TracePageResponse, GetTraceLightResponse, GetSpanResponse, ListTracesArgs, ListTracesResponse, ListTracesLightResponse, TraceQueryGroupResponse, TraceQueryKeysetTraceResponse, TraceQueryResponse, AggregateTracesArgs, AggregateTracesResponse, AggregateSpansArgs, AggregateSpansResponse, GetTraceQueryFieldsArgs, GetTraceQueryFieldsResponse, GetTraceQueryValuesArgs, GetTraceQueryValuesResponse, ListBranchesArgs, ListBranchesResponse, GetBranchArgs, GetBranchResponse, ScoreTracesRequest, ScoreTracesResponse, DeleteTracesRequest, DeleteTracesResponse, ListScoresResponse, Trajectory, ListLogsArgs, ListLogsResponse, ListScoresArgs, ListScoresResponseNew, CreateScoreBody, CreateScoreResponse, DeleteScoresArgs, DeleteScoresResponse, GetScoreAggregateArgs, GetScoreAggregateResponse, GetScoreBreakdownArgs, GetScoreBreakdownResponse, GetScoreTimeSeriesArgs, GetScoreTimeSeriesResponse, GetScorePercentilesArgs, GetScorePercentilesResponse, ListFeedbackArgs, CreateFeedbackBody, ReplaceFeedbackBody, CreateFeedbackResponse, DeleteFeedbackArgs, DeleteFeedbackResponse, UpdateFeedbackReviewStatusArgs, FeedbackRecord, GetFeedbackAggregateArgs, GetFeedbackAggregateResponse, GetFeedbackBreakdownArgs, GetFeedbackBreakdownResponse, GetFeedbackTimeSeriesArgs, GetFeedbackTimeSeriesResponse, GetFeedbackPercentilesArgs, GetFeedbackPercentilesResponse, GetMetricAggregateArgs, GetMetricAggregateResponse, GetMetricBreakdownArgs, GetMetricBreakdownResponse, GetMetricTimeSeriesArgs, GetMetricTimeSeriesResponse, GetMetricPercentilesArgs, GetMetricPercentilesResponse, GetMetricNamesArgs, GetMetricNamesResponse, GetMetricLabelKeysArgs, GetMetricLabelKeysResponse, GetMetricLabelValuesArgs, GetMetricLabelValuesResponse, GetEntityTypesResponse, GetEntityNamesArgs, GetEntityNamesResponse, GetServiceNamesResponse, GetEnvironmentsResponse, GetTagsArgs, GetTagsResponse } from './resources/observability-route-types.js'; import type { SignalWriteOptions } from './resources/signal-writes.js'; import type { Body, PathParams, QueryParams, RouteResponse } from './route-types.generated.js'; import type { GetScoreResponse, GetFeedbackResponse, ListFeedbackResponse, ClientOptions, McpServerEventStreamFrame, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, AgentVersionIdentifier, GetLogParams, GetLogsParams, GetLogsResponse, GetToolResponse, GetProcessorResponse, GetWorkflowResponse, ListWorkflowRunCountsResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, GetBuiltinMcpServerResponse, McpServerToolListResponse, GetScorerResponse, GetScorersResponse, ListDatasetExperimentResultsResponse, ListScoresByScorerIdParams, ListScoresByRunIdParams, ListScoresByEntityIdParams, SaveScoreParams, SaveScoreResponse, GetMemoryConfigParams, GetMemoryConfigResponse, ListMemoryThreadMessagesParams, ListMemoryThreadMessagesResponse, MemorySearchResponse, ListAgentsModelProvidersResponse, GetAgentBuilderActionsResponse, ListMemoryThreadsParams, ListMemoryThreadsResponse, ListStoredAgentsParams, ListStoredAgentsResponse, CreateStoredAgentParams, StoredAgentResponse, ListDynamicWorkflowsParams, ListDynamicWorkflowsResponse, UpsertDynamicWorkflowParams, UpsertDynamicWorkflowResponse, WorkflowBuilderSettingsResponse, ListStoredPromptBlocksParams, ListStoredPromptBlocksResponse, CreateStoredPromptBlockParams, StoredPromptBlockResponse, ListStoredScorersParams, ListStoredScorersResponse, CreateStoredScorerParams, StoredScorerResponse, ListStoredMCPClientsParams, ListStoredMCPClientsResponse, CreateStoredMCPClientParams, StoredMCPClientResponse, ListStoredSkillsParams, ListStoredSkillsResponse, CreateStoredSkillParams, StoredSkillResponse, GetSystemPackagesResponse, GetObservabilityCapabilitiesResponse, BuilderSettingsResponse, BuilderAvailableModelsResponse, PermissionPatternsResponse, InfrastructureStatusResponse, ListBuilderRegistriesResponse, BuilderRegistrySearchResponse, BuilderRegistryPopularResponse, BuilderRegistryPreviewResponse, BuilderRegistryInstallBody, BuilderRegistryInstallResponse, ListScoresResponse as ListScoresResponseOld, GetObservationalMemoryParams, GetObservationalMemoryResponse, AwaitBufferStatusParams, AwaitBufferStatusResponse, GetMemoryStatusResponse, ListWorkspacesResponse, ListStoredWorkspacesParams, ListStoredWorkspacesResponse, StoredWorkspaceResponse, ListVectorsResponse, ListEmbeddersResponse, DatasetExperimentResult, ListExperimentsParams, ListDatasetsParams, CreateDatasetParams, UpdateDatasetParams, AddDatasetItemParams, UpdateDatasetItemParams, BatchInsertDatasetItemsParams, BatchDeleteDatasetItemsParams, GenerateDatasetItemsParams, TriggerDatasetExperimentParams, UpdateDatasetExperimentParams, CreateDatasetExperimentParams, CreateDatasetExperimentResponse, RunExperimentItemParams, RunExperimentItemResponse, SubmitExperimentResultParams, FinalizeExperimentParams, UpdateExperimentResultParams, CompareExperimentsParams, CompareExperimentsResponse, ListToolProvidersResponse, GetProcessorProvidersResponse, ListBackgroundTasksParams, ListBackgroundTasksResponse, BackgroundTaskResponse, StreamBackgroundTasksParams, ListSchedulesParams, ListSchedulesResponse, ScheduleResponse, ListScheduleTriggersParams, ListScheduleTriggersResponse, CreateScheduleInput, UpdateScheduleInput, RunScheduleResponse, AgentControllerInfo, SerializedRouteResponse } from './types.js'; /** * Provides typed access to agents, workflows, and other APIs on a running Mastra server. * Point `baseUrl` at your server and configure authentication when required. * * @example * ```typescript * import { MastraClient } from '@mastra/client-js'; * * const client = new MastraClient({ baseUrl: 'http://localhost:4111' }); * ``` * * @see For documentation bundled with your installed package, locate * `@mastra/client-js/package.json` with your project's resolver or package-manager * tooling, then read `dist/docs/SKILL.md` from that package root and follow its * reference links. Use package-manager tools for virtual or archived packages. * * @see [Client documentation](https://mastra.ai/reference/client-js/mastra-client) * if packaged docs are unavailable. */ export declare class MastraClient extends BaseResource { private observability; readonly conversations: Conversations; readonly responses: Responses; readonly channels: Channels; constructor(options: ClientOptions); /** * Retrieves all available agents * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing map of agent IDs to agent details */ listAgents(requestContext?: RequestContext | Record, partial?: boolean): Promise>; listAgentsModelProviders(): Promise; /** * Gets an agent instance by ID * @param agentId - ID of the agent to retrieve * @param version - Optional version selector for stored agent overrides * @returns Agent instance */ getAgent(agentId: string, version?: AgentVersionIdentifier, routeOverrides?: { stream?: string; }): Agent; /** * Lists the agent controllers hosted on the connected Mastra instance. * @returns Promise containing one record per agent controller, carrying its id */ listAgentControllers(): Promise; /** * Scopes to an agent controller hosted on the connected Mastra instance. Use * `getAgentController(id).session(sessionId)` to create/resume a session, * stream its events, and send messages. * @param controllerId - The id the agent controller is registered under on Mastra */ getAgentController(controllerId: string): AgentController; /** * Lists memory threads with optional filtering by resourceId and/or metadata * @param params - Parameters containing optional filters, pagination options, and request context * @returns Promise containing paginated array of memory threads with metadata */ listMemoryThreads(params?: ListMemoryThreadsParams): Promise; /** * Retrieves memory config for a resource * @param params - Parameters containing the resource ID and optional request context * @returns Promise containing memory configuration */ getMemoryConfig(params: GetMemoryConfigParams): Promise; /** * Creates a new memory thread * @param params - Parameters for creating the memory thread including optional request context * @returns Promise containing the created memory thread */ createMemoryThread(params: CreateMemoryThreadParams): Promise; /** * Gets a memory thread instance by ID * @param threadId - ID of the memory thread to retrieve * @param agentId - Optional agent ID. When not provided, uses storage directly * @returns MemoryThread instance */ getMemoryThread({ threadId, agentId }: { threadId: string; agentId?: string; }): MemoryThread; /** * Lists messages for a thread. * @param threadId - ID of the thread * @param opts - Optional parameters including agentId, networkId, and requestContext * - When agentId is provided, uses the agent's memory * - When networkId is provided, uses the network endpoint * - When neither is provided, uses storage directly * @returns Promise containing the thread messages */ listThreadMessages(threadId: string, opts?: ListMemoryThreadMessagesParams): Promise; deleteThread(threadId: PathParams<'DELETE /memory/threads/:threadId'>['threadId'], opts: { agentId: string; networkId?: never; requestContext?: RequestContext | Record; } | { networkId: string; agentId?: never; requestContext?: RequestContext | Record; }): Promise>; /** * Saves messages to memory * @param params - Parameters containing messages to save and optional request context * @returns Promise containing the saved messages */ saveMessageToMemory(params: SaveMessageToMemoryParams): Promise; /** * Gets the status of the memory system * @param agentId - The agent ID * @param opts - Optional parameters including resourceId, threadId, and requestContext * @returns Promise containing memory system status including observational memory info */ getMemoryStatus(agentId: string, requestContext?: RequestContext | Record, opts?: { resourceId?: string; threadId?: string; }): Promise; /** * Gets observational memory data for a resource or thread * @param params - Parameters containing agentId, resourceId, threadId, and optional request context * @returns Promise containing the current OM record and history */ getObservationalMemory(params: GetObservationalMemoryParams): Promise; /** * Blocks until any in-flight observational memory buffering completes, then returns the updated record * @param params - Parameters containing agentId, resourceId, threadId * @returns Promise containing the updated OM record after buffering completes */ awaitBufferStatus(params: AwaitBufferStatusParams): Promise; /** * Retrieves all available tools * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing map of tool IDs to tool details */ listTools(requestContext?: RequestContext | Record): Promise>; /** * Gets a tool instance by ID * @param toolId - ID of the tool to retrieve * @returns Tool instance */ getTool(toolId: string): Tool; /** * Retrieves all available processors * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing map of processor IDs to processor details */ listProcessors(requestContext?: RequestContext | Record): Promise>; /** * Gets a processor instance by ID * @param processorId - ID of the processor to retrieve * @returns Processor instance */ getProcessor(processorId: string): Processor; /** * Retrieves all available workflows * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing map of workflow IDs to workflow details */ listWorkflows(requestContext?: RequestContext | Record, partial?: boolean): Promise>; /** * Retrieves per-workflow counts of running and suspended (awaiting resume) runs * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing map of workflow IDs to run counts */ listWorkflowRunCounts(requestContext?: RequestContext | Record): Promise; /** * Gets a workflow instance by ID * @param workflowId - ID of the workflow to retrieve * @returns Workflow instance */ getWorkflow(workflowId: string): Workflow; /** * Gets all available agent builder actions * @returns Promise containing map of action IDs to action details */ getAgentBuilderActions(): Promise; /** * Gets an agent builder instance for executing agent-builder workflows * @returns AgentBuilder instance */ getAgentBuilderAction(actionId: string): AgentBuilder; /** * Gets a vector instance by name * @param vectorName - Name of the vector to retrieve * @returns Vector instance */ getVector(vectorName: string): Vector; /** * Lists the Knowledge instances registered on the server * @returns Promise containing each instance's application key and id */ listKnowledge(): Promise<{ instances: KnowledgeInstanceSummary[]; }>; /** * Gets read-only access to a registered Knowledge instance * @param knowledgeKey - Application key the instance is registered under * @returns Knowledge resource */ getKnowledge(knowledgeKey: string): Knowledge; /** * Retrieves logs * @param params - Parameters for filtering logs * @returns Promise containing array of log messages */ listLogs(params: GetLogsParams): Promise; /** * Gets logs for a specific run * @param params - Parameters containing run ID to retrieve * @returns Promise containing array of log messages */ getLogForRun(params: GetLogParams): Promise; /** * List of all log transports * @returns Promise containing list of log transports */ listLogTransports(): Promise>; /** * Retrieves a list of available MCP servers. * @param params - Optional parameters for pagination (page, perPage, or deprecated offset, limit). * @returns Promise containing the list of MCP servers and pagination info. */ getMcpServers(params?: { page?: number; perPage?: number; /** @deprecated Use page instead */ offset?: number; /** @deprecated Use perPage instead */ limit?: number; }): Promise; /** * Describes the built-in Mastra MCP server: whether it is served, its endpoint path, toolsets, and auth mode. * Requires `mcp:read`. Its tools depend on the caller, so connect an MCP client to `path` to list them. */ getBuiltinMcpServer(): Promise; /** * Retrieves detailed information for a specific MCP server. * @param serverId - The ID of the MCP server to retrieve. * @param params - Optional parameters, e.g., specific version. * @returns Promise containing the detailed MCP server information. */ getMcpServerDetails(serverId: PathParams<'GET /mcp/v0/servers/:id'>['id'], params?: QueryParams<'GET /mcp/v0/servers/:id'>): Promise>; /** * Retrieves a list of tools for a specific MCP server. * @param serverId - The ID of the MCP server. * @returns Promise containing the list of tools. */ getMcpServerTools(serverId: string): Promise; /** * Gets an MCPTool resource instance for a specific tool on an MCP server. * This instance can then be used to fetch details or execute the tool. * @param serverId - The ID of the MCP server. * @param toolId - The ID of the tool. * @returns MCPTool instance. */ getMcpServerTool(serverId: string, toolId: string): MCPTool; /** * Lists resources available on an MCP server. * @param serverId - The ID of the MCP server. * @returns Promise containing the list of resources. */ getMcpServerResources(serverId: PathParams<'GET /mcp/:serverId/resources'>['serverId']): Promise>; /** * Reads the content of a resource from an MCP server. * Used for fetching ui:// MCP App HTML content. * @param serverId - The ID of the MCP server. * @param uri - The resource URI to read. * @returns Promise containing the resource content. */ readMcpServerResource(serverId: PathParams<'POST /mcp/:serverId/resources/read'>['serverId'], uri: Body<'POST /mcp/:serverId/resources/read'>['uri']): Promise>; /** * Lists the event types an MCP server declares (experimental). * `testEmit` is true when the server serves {@link emitMcpServerEvent} (under `mastra dev`). * @param serverId - The ID of the MCP server. */ getMcpServerEvents(serverId: PathParams<'GET /mcp/:serverId/events'>['serverId']): Promise>; /** * Reads occurrences of an MCP server event type, like the `events/poll` MCP request (experimental). * Pass the returned `cursor` to the next call to resume. * @param serverId - The ID of the MCP server. * @param eventName - The event type name. * @param body - Event arguments, resume cursor and page size. */ pollMcpServerEvent(serverId: PathParams<'POST /mcp/:serverId/events/:eventName/poll'>['serverId'], eventName: PathParams<'POST /mcp/:serverId/events/:eventName/poll'>['eventName'], body?: Body<'POST /mcp/:serverId/events/:eventName/poll'>): Promise>; /** * Streams occurrences of a push-capable MCP server event type (experimental). * Yields an `active` frame first, then `event`, `heartbeat` and `error` frames, and ends * when the server ends the stream. Abort `options.signal` or break out of the loop to stop. * * @example * ```typescript * const controller = new AbortController(); * for await (const frame of client.streamMcpServerEvent('tickets', 'ticket.created', {}, { signal: controller.signal })) { * if (frame.type === 'event') console.log(frame.occurrence.data); * } * ``` */ streamMcpServerEvent(serverId: PathParams<'POST /mcp/:serverId/events/:eventName/stream'>['serverId'], eventName: PathParams<'POST /mcp/:serverId/events/:eventName/stream'>['eventName'], body?: Body<'POST /mcp/:serverId/events/:eventName/stream'>, options?: { signal?: AbortSignal; }): AsyncGenerator; /** * Emits a test occurrence of an emit-fed MCP server event type (experimental). * Only served under `mastra dev`; other servers respond 404. The occurrence's * `eventId` starts with `mastra-test-`. * @param serverId - The ID of the MCP server. * @param eventName - The event type name. * @param data - The event payload; validated against the event's payload schema. */ emitMcpServerEvent(serverId: PathParams<'POST /mcp/:serverId/events/:eventName/emit'>['serverId'], eventName: PathParams<'POST /mcp/:serverId/events/:eventName/emit'>['eventName'], data: Body<'POST /mcp/:serverId/events/:eventName/emit'>['data']): Promise>; /** * Lists which tools an MCP server runs as tasks, and its recent tasks across principals * (experimental). `unavailable` says why `tasks` is empty for a store that can't be listed * or a resource-scoped caller. * @param serverId - The ID of the MCP server. * @param params - Optional `limit`, `status`, `surface` and `client` (a listed `principalKey`) * filters, and the `cursor` from the previous page's `nextCursor`. */ getMcpServerTasks(serverId: PathParams<'GET /mcp/:serverId/tasks'>['serverId'], params?: QueryParams<'GET /mcp/:serverId/tasks'>): Promise>; /** * Finds an MCP server task by its MCP task id, as a client sees it (experimental). The server * hashes the id before the lookup; it is sent in the body so it stays out of URLs and logs. * Rejects with 404 for an unknown task. * @param serverId - The ID of the MCP server. * @param taskId - The MCP task id. */ findMcpServerTask(serverId: PathParams<'POST /mcp/:serverId/tasks/find'>['serverId'], taskId: Body<'POST /mcp/:serverId/tasks/find'>['taskId']): Promise>; /** * Cancels an MCP server task by key, like the `tasks/cancel` MCP request (experimental). * Rejects with 404 once the task is no longer running. * @param serverId - The ID of the MCP server. * @param taskKey - The task's `taskKey`, as listed. */ cancelMcpServerTask(serverId: PathParams<'POST /mcp/:serverId/tasks/:taskKey/cancel'>['serverId'], taskKey: PathParams<'POST /mcp/:serverId/tasks/:taskKey/cancel'>['taskKey']): Promise>; /** * Answers an MCP server task's open input requests, like the `tasks/update` MCP request * (experimental). Rejects with 404 unless the task is waiting for one of them. * @param serverId - The ID of the MCP server. * @param taskKey - The task's `taskKey`, as listed. * @param inputResponses - Answers keyed by input request, e.g. `{ approve: { action: 'accept', content: {...} } }`. */ answerMcpServerTaskInput(serverId: PathParams<'POST /mcp/:serverId/tasks/:taskKey/input'>['serverId'], taskKey: PathParams<'POST /mcp/:serverId/tasks/:taskKey/input'>['taskKey'], inputResponses: Body<'POST /mcp/:serverId/tasks/:taskKey/input'>['inputResponses']): Promise>; /** * Gets an A2A client for interacting with an agent via the A2A protocol * @param agentId - ID of the agent to interact with * @returns A2A client instance */ getA2A(agentId: string): A2A; /** * Gets an A2A Protocol v1.0 client for an agent. * @param agentId - ID of the agent to interact with */ getA2AV1(agentId: string): A2AV1; /** * Retrieves the working memory for a specific thread (optionally resource-scoped). * @param agentId - ID of the agent. * @param threadId - ID of the thread. * @param resourceId - Optional ID of the resource. * @returns Working memory for the specified thread or resource. */ getWorkingMemory({ agentId, threadId, resourceId, requestContext, }: { agentId: string; threadId: string; resourceId?: string; requestContext?: RequestContext | Record; }): Promise; searchMemory({ agentId, resourceId, threadId, searchQuery, memoryConfig, requestContext, }: { agentId: string; resourceId: string; threadId?: string; searchQuery: string; memoryConfig?: any; requestContext?: RequestContext | Record; }): Promise; /** * Updates the working memory for a specific thread (optionally resource-scoped). * @param agentId - ID of the agent. * @param threadId - ID of the thread. * @param workingMemory - The new working memory content. * @param resourceId - Optional ID of the resource. * @param mode - `replace` (default) or `merge` to atomically deep-merge a partial JSON object * into resource-scoped schema working memory (requires storage support, e.g. PostgreSQL). */ updateWorkingMemory({ agentId, threadId, workingMemory, resourceId, mode, requestContext, }: { agentId: string; threadId: string; workingMemory: string; resourceId?: string; mode?: 'replace' | 'merge'; requestContext?: RequestContext | Record; }): Promise; /** * Retrieves all available scorers * @param requestContext - Optional request context to pass as query parameter * @returns Promise containing list of available scorers */ listScorers(requestContext?: RequestContext | Record): Promise; /** * Retrieves a scorer by ID * @param scorerId - ID of the scorer to retrieve * @returns Promise containing the scorer */ getScorer(scorerId: string): Promise; listScoresByScorerId(params: ListScoresByScorerIdParams): Promise; /** * Retrieves scores by run ID * @param params - Parameters containing run ID and pagination options * @returns Promise containing scores and pagination info */ listScoresByRunId(params: ListScoresByRunIdParams): Promise; /** * Retrieves scores by entity ID and type * @param params - Parameters containing entity ID, type, and pagination options * @returns Promise containing scores and pagination info */ listScoresByEntityId(params: ListScoresByEntityIdParams): Promise; /** * Saves a score * @param params - Parameters containing the score data to save * @returns Promise containing the saved score */ saveScore(params: SaveScoreParams): Promise; /** Retrieves a specific trace by ID. */ getTrace(traceId: string): Promise; /** * Retrieves a bounded trace page from Platform. OSS servers do not serve this endpoint. * Check `capabilities.tracePage` before calling. * @experimental This Platform integration may change or be removed. */ getTracePage(request: GetTracePageArgs): Promise; /** Retrieves a lightweight trace by ID (timeline fields only, excludes heavy fields). */ getTraceLight(traceId: string): Promise; /** Retrieves a single span with full details by trace ID and span ID. */ getSpan(traceId: string, spanId: string): Promise; /** Extracts a structured trajectory from a trace's spans. */ getTraceTrajectory(traceId: string): Promise; /** * Retrieves paginated list of traces with optional filtering. * This is the legacy API preserved for backward compatibility. * * @param params - Parameters for pagination and filtering (legacy format) * @returns Promise containing paginated traces and pagination info * @deprecated Use {@link listTraces} instead for new features like ordering and more filters. */ getTraces(params: LegacyTracesPaginatedArg): Promise; /** * Retrieves paginated list of traces with optional filtering and sorting. * This is the new API with improved filtering options. * * @param params - Parameters for pagination, filtering, and ordering * @returns Promise containing paginated traces and pagination info */ listTraces(params?: ListTracesArgs): Promise; /** * Queries completed logical traces using recursive trace and related-record predicates. * Grouped results remain supported but are deprecated. Use `queryTraceThreads()` to retrieve thread identities. */ queryTraces(params: QueryTracesGroupedInput): Promise; queryTraces(params: QueryTracesDeltaInput): Promise>; queryTraces(params: QueryTracesPaginatedInput): Promise>; queryTraces(params: QueryTracesKeysetInput): Promise; queryTraces(params: QueryTracesInput): Promise; /** * Groups and measures the traces selected by a time range and optional trace-query predicate. * Check `capabilities.traceAggregate` from `getObservabilityCapabilities()` first; servers without it return 404 or 501. */ aggregateTraces(params: AggregateTracesArgs, options?: { signal?: AbortSignal; }): Promise; /** * Groups and measures individual completed spans selected by a time range and optional span-query predicate. * Token and cost measures count usage recorded on each span itself. Check `capabilities.spanAggregate` from * `getObservabilityCapabilities()` first; servers without it return 404 or 501. */ aggregateSpans(params: AggregateSpansArgs): Promise; /** Returns canonical and observed fields available to the advanced trace-query grammar. */ getTraceQueryFields(params: GetTraceQueryFieldsArgs, options?: { signal?: AbortSignal; }): Promise; /** Returns bounded string suggestions for one eligible trace-query field. */ getTraceQueryValues(params: GetTraceQueryValuesArgs, options?: { signal?: AbortSignal; }): Promise; /** Queries full-history thread rows using a trace or thread activity window. */ queryTraceThreads(params: T): Promise>; /** Queries completed spans using a span predicate, returning one row per matching span. */ querySpans(params: QuerySpansInput): Promise; /** * Retrieves paginated list of traces carrying only the fields a trace list renders. * Same contract as {@link listTraces}, but rows omit the `attributes`/`input`/`output` * blobs and carry a short `inputPreview` instead. * * @param params - Parameters for pagination, filtering, and ordering * @returns Promise containing paginated lightweight traces and pagination info */ listTracesLight(params?: ListTracesArgs): Promise; /** * Retrieves a paginated list of trace branches with optional filtering and sorting. * Each row is a branch-anchor span (AGENT_RUN, WORKFLOW_RUN, TOOL_CALL, etc.) including * ones nested under a different root entity. Pairs with {@link getBranch} to expand * a single branch into its subtree. */ listBranches(params?: ListBranchesArgs): Promise; /** * Retrieves the subtree of spans rooted at a given span. The optional `depth` field * bounds descendant levels below the anchor (0 = anchor only; omitted = full subtree). */ getBranch(params: GetBranchArgs): Promise; listScoresBySpan(params: ListScoresBySpanParams): Promise; /** * Deletes traces by ID, cascading to all associated spans and trace-linked * signal events (scores, feedback, metrics, logs). Signals without a trace ID * are untouched. On ClickHouse-backed stores, reads may briefly return * deleted rows until the delete is fully applied. A supporting Platform backend * returns `{ accepted: true }` after queueing cleanup, before records disappear. */ deleteTraces(params: DeleteTracesRequest): Promise; /** Scores one or more traces using a specified scorer (fire-and-forget). */ score(params: ScoreTracesRequest): Promise; /** Retrieves a paginated list of observability logs. */ listLogsVNext(params?: ListLogsArgs): Promise; /** Retrieves one score by ID; the response contains null when it is missing. */ getScore(id: string): Promise; /** Retrieves a paginated list of observability scores. */ listScores(params?: ListScoresArgs): Promise; /** Creates a single score record in the observability store. */ createScore(params: CreateScoreBody, options?: SignalWriteOptions): Promise; /** * Deletes score records by scoreId, optionally scoped to a tenant. * Returns OSS success or Platform acceptance; accepted cleanup is asynchronous. */ deleteScores(params: DeleteScoresArgs): Promise; /** Returns an aggregated score value with optional period-over-period comparison. */ getScoreAggregate(params: GetScoreAggregateArgs): Promise; /** Returns score values grouped by specified dimensions. */ getScoreBreakdown(params: GetScoreBreakdownArgs): Promise; /** Returns score values bucketed by time interval with optional grouping. */ getScoreTimeSeries(params: GetScoreTimeSeriesArgs): Promise; /** Returns percentile values for scores bucketed by time interval. */ getScorePercentiles(params: GetScorePercentilesArgs): Promise; /** Retrieves one feedback by ID; the response contains null when it is missing. */ getFeedback(id: string): Promise; /** Retrieves a paginated list of feedback records. */ listFeedback(params?: ListFeedbackArgs): Promise; /** Creates a single feedback record in the observability store. */ createFeedback(params: CreateFeedbackBody, options?: SignalWriteOptions): Promise; /** Full replacement on Platform. Preserve the original identity/timestamp; each accepted retry is a new replacement. */ replaceFeedback(params: ReplaceFeedbackBody, options?: SignalWriteOptions): Promise; /** * Deletes feedback records by feedbackId, optionally scoped to a tenant. * Returns OSS success or Platform acceptance; accepted cleanup is asynchronous. */ deleteFeedback(params: DeleteFeedbackArgs): Promise; /** Updates a feedback record's review workflow status. */ updateFeedbackReviewStatus(params: UpdateFeedbackReviewStatusArgs): Promise; /** Returns an aggregated feedback value with optional period-over-period comparison. */ getFeedbackAggregate(params: GetFeedbackAggregateArgs): Promise; /** Returns feedback values grouped by specified dimensions. */ getFeedbackBreakdown(params: GetFeedbackBreakdownArgs): Promise; /** Returns feedback values bucketed by time interval with optional grouping. */ getFeedbackTimeSeries(params: GetFeedbackTimeSeriesArgs): Promise; /** Returns percentile values for feedback bucketed by time interval. */ getFeedbackPercentiles(params: GetFeedbackPercentilesArgs): Promise; /** Returns an aggregated metric value with optional period-over-period comparison. */ getMetricAggregate(params: GetMetricAggregateArgs): Promise; /** Returns metric values grouped by specified dimensions. */ getMetricBreakdown(params: GetMetricBreakdownArgs): Promise; /** Returns metric values bucketed by time interval with optional grouping. */ getMetricTimeSeries(params: GetMetricTimeSeriesArgs): Promise; /** Returns percentile values for a metric bucketed by time interval. */ getMetricPercentiles(params: GetMetricPercentilesArgs): Promise; /** Returns distinct metric names with optional prefix filtering. */ getMetricNames(params?: GetMetricNamesArgs): Promise; /** Returns distinct label keys for a given metric. */ getMetricLabelKeys(params: GetMetricLabelKeysArgs): Promise; /** Returns distinct values for a given metric label key. */ getMetricLabelValues(params: GetMetricLabelValuesArgs): Promise; /** Returns distinct entity types from observability data. */ getEntityTypes(): Promise; /** Returns distinct entity names with optional type filtering. */ getEntityNames(params?: GetEntityNamesArgs): Promise; /** Returns distinct service names from observability data. */ getServiceNames(): Promise; /** Returns distinct environments from observability data. */ getEnvironments(): Promise; /** Returns distinct tags with optional entity type filtering. */ getTags(params?: GetTagsArgs): Promise; /** Returns which optional observability APIs the configured observability storage supports. */ getObservabilityCapabilities(): Promise; /** * Lists all stored agents with optional pagination * @param params - Optional pagination and ordering parameters * @returns Promise containing paginated list of stored agents */ listStoredAgents(params?: ListStoredAgentsParams): Promise; /** * Creates a new stored agent * @param params - Agent configuration including id, name, instructions, model, etc. * @returns Promise containing the created stored agent */ createStoredAgent(params: CreateStoredAgentParams): Promise; /** * Gets a stored agent instance by ID for further operations (details, update, delete) * @param storedAgentId - ID of the stored agent to retrieve * @returns StoredAgent instance */ getStoredAgent(storedAgentId: string): StoredAgent; /** * Lists dynamic workflow definitions, optionally filtered by status or author * @param params - Optional filters: `status` ('active' | 'archived') and `authorId` * @returns Promise containing the matching definitions and a total count */ listDynamicWorkflows(params?: ListDynamicWorkflowsParams): Promise; /** * Creates or replaces a dynamic workflow definition and live-registers it on the server. * Optional `dependencies` lets helper workflows referenced by the root definition be * saved in the same request; their ids are echoed back as `dependencyIds`. * @param params - The workflow definition (id, schemas, graph) plus optional helper dependencies * @returns Promise containing the persisted definition and any dependency ids */ upsertDynamicWorkflow(params: UpsertDynamicWorkflowParams): Promise; /** * Gets a dynamic workflow instance by ID for further operations (details, delete). * To execute a dynamic workflow, use `getWorkflow(id).createRun()` like any other workflow. * @param dynamicWorkflowId - ID of the dynamic workflow definition * @returns DynamicWorkflow instance */ getDynamicWorkflow(dynamicWorkflowId: string): DynamicWorkflow; /** * Retrieves workflow builder settings for UI gating. */ getWorkflowBuilderSettings(): Promise; /** * Lists all stored prompt blocks with optional pagination * @param params - Optional pagination and ordering parameters * @returns Promise containing paginated list of stored prompt blocks */ listStoredPromptBlocks(params?: ListStoredPromptBlocksParams): Promise; /** * Creates a new stored prompt block * @param params - Prompt block configuration including name, content, rules, etc. * @returns Promise containing the created stored prompt block */ createStoredPromptBlock(params: CreateStoredPromptBlockParams): Promise; /** * Gets a stored prompt block instance by ID for further operations (details, update, delete) * @param storedPromptBlockId - ID of the stored prompt block to retrieve * @returns StoredPromptBlock instance */ getStoredPromptBlock(storedPromptBlockId: string): StoredPromptBlock; /** * Lists all stored scorer definitions with optional pagination * @param params - Optional pagination and ordering parameters * @returns Promise containing paginated list of stored scorer definitions */ listStoredScorers(params?: ListStoredScorersParams): Promise; /** * Creates a new stored scorer definition * @param params - Scorer definition configuration * @returns Promise containing the created stored scorer definition */ createStoredScorer(params: CreateStoredScorerParams): Promise; /** * Gets a stored scorer definition instance by ID for further operations (details, update, delete) * @param storedScorerId - ID of the stored scorer definition * @returns StoredScorer instance */ getStoredScorer(storedScorerId: string): StoredScorer; /** * Lists all stored MCP clients with optional pagination * @param params - Optional pagination and ordering parameters * @returns Promise containing paginated list of stored MCP clients */ listStoredMCPClients(params?: ListStoredMCPClientsParams): Promise; /** * Creates a new stored MCP client * @param params - MCP client configuration * @returns Promise containing the created stored MCP client */ createStoredMCPClient(params: CreateStoredMCPClientParams): Promise; /** * Gets a stored MCP client instance by ID for further operations (details, update, delete) * @param storedMCPClientId - ID of the stored MCP client * @returns StoredMCPClient instance */ getStoredMCPClient(storedMCPClientId: string): StoredMCPClient; /** * Lists all stored skills with optional pagination * @param params - Optional pagination and ordering parameters * @returns Promise containing paginated list of stored skills */ listStoredSkills(params?: ListStoredSkillsParams): Promise; /** * Creates a new stored skill * @param params - Skill configuration * @returns Promise containing the created stored skill */ createStoredSkill(params: CreateStoredSkillParams): Promise; /** * Gets a stored skill instance by ID for further operations (details, update, delete) * @param storedSkillId - ID of the stored skill * @returns StoredSkill instance */ getStoredSkill(storedSkillId: string): StoredSkill; /** * Lists all registered tool providers * @returns Promise containing list of tool provider info */ listToolProviders(): Promise; /** * Gets a tool provider instance by ID for further operations (listToolkits, listTools, getToolSchema) * @param providerId - ID of the tool provider * @returns ToolProvider instance */ getToolProvider(providerId: string): ToolProvider; /** * Lists all registered processor providers * @returns Promise containing list of processor provider info */ getProcessorProviders(): Promise; /** * Gets a processor provider instance by ID for further operations * @param providerId - ID of the processor provider * @returns ProcessorProvider instance */ getProcessorProvider(providerId: string): ProcessorProvider; /** * Retrieves installed Mastra packages and their versions * @returns Promise containing the list of installed Mastra packages */ getSystemPackages(): Promise; /** * Retrieves agent builder settings for UI gating. * Returns feature flags and configuration set by admin. * @returns Promise containing builder settings */ getBuilderSettings(): Promise; /** * Retrieves the AI providers/models available under the active builder model * policy. The server applies the EE allowlist, so the result can be rendered * directly in the model picker. * @returns Promise containing the policy-filtered providers/models */ getBuilderAvailableModels(): Promise; /** * Retrieves the authoritative list of valid permission-pattern strings. * Used by Studio to validate route→permission literals and gate the sidebar. * @returns Promise containing the permission patterns */ getPermissionPatterns(): Promise; /** * Retrieves Agent Builder infrastructure configuration and resolution status. * Requires `infrastructure:read` permission. * @returns Promise containing infrastructure status */ getInfrastructureStatus(): Promise; /** * Lists known skill registries surfaced by the Agent Builder config. * Each entry reports whether the registry is enabled. Disabled or unknown * registries return 404 from registry-scoped routes. * Requires `stored-skills:read` permission. */ listBuilderRegistries(): Promise; /** * Search a builder skill registry. The registry must be enabled or the * server returns 404. * Requires `stored-skills:read` permission. */ searchBuilderRegistry(registryId: string, params: { q: string; limit?: number; }): Promise; /** * Fetch the popular skills feed from a builder skill registry. * Requires `stored-skills:read` permission. */ getBuilderRegistryPopular(registryId: string, params?: { limit?: number; offset?: number; }): Promise; /** * Fetch the rendered preview content for a single registry skill. * Requires `stored-skills:read` permission. */ getBuilderRegistryPreview(registryId: string, params: { owner: string; repo: string; path: string; }): Promise; /** * Install a registry skill into the builder's stored-skills DB. * Returns 409 when a stored skill with the derived id already exists. * Requires `stored-skills:write` permission. */ installBuilderRegistrySkill(registryId: string, body: BuilderRegistryInstallBody): Promise; /** * Lists all workspaces from both Mastra instance and agents * @returns Promise containing array of workspace items */ listWorkspaces(): Promise; /** * Gets the workspace resource for filesystem, search, and skills operations * @param workspaceId - Workspace ID to target * @returns Workspace instance */ getWorkspace(workspaceId: string): Workspace; /** * Lists stored workspace configurations from the database * @param params - Optional filter and pagination parameters * @returns Promise containing paginated list of stored workspaces */ listStoredWorkspaces(params?: ListStoredWorkspacesParams): Promise; /** * Gets a specific stored workspace by ID * @param id - The workspace ID * @returns Promise containing the stored workspace */ getStoredWorkspace(id: string): Promise; /** * Lists all available vector stores * @returns Promise containing list of available vector stores */ listVectors(): Promise; /** * Lists all available embedding models * @returns Promise containing list of available embedders */ listEmbedders(): Promise; /** * Lists all datasets with optional pagination */ listDatasets(params?: ListDatasetsParams): Promise>; /** * Gets a single dataset by ID. Optionally scope the lookup to a specific * tenant organization/project — the server returns 404 if the dataset does * not belong to the given tenant. */ getDataset(datasetId: PathParams<'GET /datasets/:datasetId'>['datasetId'], tenancy?: QueryParams<'GET /datasets/:datasetId'>): Promise>; /** * Creates a new dataset */ createDataset(params: CreateDatasetParams): Promise>; /** * Updates a dataset. Tenancy fields, when provided, scope the existence * check on the server side so that a caller can only update datasets that * belong to the given tenant. */ updateDataset(params: UpdateDatasetParams): Promise>; /** * Deletes a dataset. When tenancy fields are supplied, the server only * deletes the dataset if it belongs to the given tenant (silent no-op * otherwise). */ deleteDataset(datasetId: PathParams<'DELETE /datasets/:datasetId'>['datasetId'], tenancy?: QueryParams<'DELETE /datasets/:datasetId'>): Promise>; /** * Lists items in a dataset with optional pagination, search, and version filter */ listDatasetItems(datasetId: PathParams<'GET /datasets/:datasetId/items'>['datasetId'], params?: QueryParams<'GET /datasets/:datasetId/items'>): Promise>; /** * Gets a single dataset item by ID */ getDatasetItem(datasetId: PathParams<'GET /datasets/:datasetId/items/:itemId'>['datasetId'], itemId: PathParams<'GET /datasets/:datasetId/items/:itemId'>['itemId']): Promise>; /** * Adds an item to a dataset */ addDatasetItem(params: AddDatasetItemParams): Promise>; /** * Updates a dataset item */ updateDatasetItem(params: UpdateDatasetItemParams): Promise>; /** * Deletes a dataset item */ deleteDatasetItem(datasetId: PathParams<'DELETE /datasets/:datasetId/items/:itemId'>['datasetId'], itemId: PathParams<'DELETE /datasets/:datasetId/items/:itemId'>['itemId']): Promise>; /** * Permanently scrubs a dataset item's data from all versions and linked experiment results */ purgeDatasetItem(datasetId: PathParams<'DELETE /datasets/:datasetId/items/:itemId/purge'>['datasetId'], itemId: PathParams<'DELETE /datasets/:datasetId/items/:itemId/purge'>['itemId'], tenancy?: QueryParams<'DELETE /datasets/:datasetId/items/:itemId/purge'>): Promise>; /** * Batch inserts items to a dataset */ batchInsertDatasetItems(params: BatchInsertDatasetItemsParams): Promise>; /** * Batch deletes items from a dataset */ batchDeleteDatasetItems(params: BatchDeleteDatasetItemsParams): Promise>; /** * Generates synthetic dataset items using AI. Items are returned for review, not auto-saved. */ generateDatasetItems(params: GenerateDatasetItemsParams): Promise>; /** * Cluster experiment failures using AI to identify common failure patterns. */ clusterFailures(params: Body<'POST /datasets/cluster-failures'>): Promise>; /** * Lists versions for a dataset item */ getItemHistory(datasetId: PathParams<'GET /datasets/:datasetId/items/:itemId/history'>['datasetId'], itemId: PathParams<'GET /datasets/:datasetId/items/:itemId/history'>['itemId']): Promise>; /** * Gets a specific version of a dataset item */ getDatasetItemVersion(datasetId: PathParams<'GET /datasets/:datasetId/items/:itemId/versions/:datasetVersion'>['datasetId'], itemId: PathParams<'GET /datasets/:datasetId/items/:itemId/versions/:datasetVersion'>['itemId'], datasetVersion: PathParams<'GET /datasets/:datasetId/items/:itemId/versions/:datasetVersion'>['datasetVersion']): Promise>; /** * Lists versions for a dataset */ listDatasetVersions(datasetId: PathParams<'GET /datasets/:datasetId/versions'>['datasetId'], pagination?: QueryParams<'GET /datasets/:datasetId/versions'>): Promise>; /** * Lists all experiments across all datasets */ listExperiments(params?: ListExperimentsParams): Promise>; /** * Gets review status counts aggregated per experiment */ getExperimentReviewSummary(): Promise>; /** * Lists experiments for a dataset */ listDatasetExperiments(datasetId: PathParams<'GET /datasets/:datasetId/experiments'>['datasetId'], params?: QueryParams<'GET /datasets/:datasetId/experiments'>): Promise>; /** * Gets a single dataset experiment by ID */ getDatasetExperiment(datasetId: PathParams<'GET /datasets/:datasetId/experiments/:experimentId'>['datasetId'], experimentId: PathParams<'GET /datasets/:datasetId/experiments/:experimentId'>['experimentId']): Promise>; /** * Gets an experiment by ID regardless of dataset association, including its * `datasetId` (null for experiments orphaned by dataset deletion). When tenancy * fields are supplied, experiments outside the tenant are reported as not found. */ getExperiment(experimentId: PathParams<'GET /experiments/:experimentId'>['experimentId'], options?: QueryParams<'GET /experiments/:experimentId'>): Promise>; /** * Deletes a dataset experiment and its results. Tenancy fields, when provided, * scope the dataset lookup on the server side. * * The server also attempts to delete the experiment's observability traces, * cascading to their spans and trace-linked signals. Stores without * observability or trace deletion support leave the traces in place. */ deleteDatasetExperiment(datasetId: PathParams<'DELETE /datasets/:datasetId/experiments/:experimentId'>['datasetId'], experimentId: PathParams<'DELETE /datasets/:datasetId/experiments/:experimentId'>['experimentId'], tenancy?: QueryParams<'DELETE /datasets/:datasetId/experiments/:experimentId'>): Promise>; /** * Deletes an experiment and its results regardless of dataset association * (including experiments orphaned by dataset deletion). When tenancy fields * are supplied, the server only deletes the experiment if it belongs to the * given tenant (silent no-op otherwise). * * The server also attempts to delete the experiment's observability traces, * cascading to their spans and trace-linked signals. Stores without * observability or trace deletion support leave the traces in place. */ deleteExperiment(experimentId: PathParams<'DELETE /experiments/:experimentId'>['experimentId'], options?: QueryParams<'DELETE /experiments/:experimentId'>): Promise>; /** * Updates a dataset experiment's name, description or metadata */ updateDatasetExperiment(params: UpdateDatasetExperimentParams): Promise>; /** * Lists results for a dataset experiment. * `tags` restricts the list to results that have all of the given tags. */ listDatasetExperimentResults(datasetId: PathParams<'GET /datasets/:datasetId/experiments/:experimentId/results'>['datasetId'], experimentId: PathParams<'GET /datasets/:datasetId/experiments/:experimentId/results'>['experimentId'], options?: QueryParams<'GET /datasets/:datasetId/experiments/:experimentId/results'>): Promise; /** * Updates an experiment result's status, tags, and/or comment */ updateDatasetExperimentResult(params: UpdateExperimentResultParams): Promise>; /** * Triggers a new dataset experiment */ triggerDatasetExperiment(params: TriggerDatasetExperimentParams): Promise>; /** * Creates an experiment without starting the in-process runner, so the caller * drives the loop (e.g. a Temporal workflow). With a target, execute items * server-side via `runExperimentItem`; without one, ingest results via * `submitExperimentResult`. Idempotent when a caller-supplied `id` is provided. */ createDatasetExperiment(params: CreateDatasetExperimentParams): Promise; /** * Executes the experiment's target against one dataset item server-side, * runs the resolved scorers, and upserts the result row keyed by * (experimentId, itemId, attempt) — safe to retry. */ runExperimentItem(params: RunExperimentItemParams): Promise; /** * Submits (or re-submits) one item result for a target-less (ingestion) experiment. * Upsert semantics on (experimentId, itemId, attempt) — safe to retry. */ submitExperimentResult(params: SubmitExperimentResultParams): Promise>; /** * Finalizes an external experiment. The server computes counts from persisted results. Idempotent. */ finalizeExperiment(params: FinalizeExperimentParams): Promise>; /** * Updates the status, tags, and/or comment on an experiment result */ updateExperimentResult(params: UpdateExperimentResultParams): Promise; /** * Compares two to ten dataset experiments item by item against a baseline. * Every experiment in `experimentIds` gets a result entry per item (`null` when it did not run that item). */ compareExperiments(params: CompareExperimentsParams): Promise; /** * Lists background tasks with optional filtering and pagination. */ listBackgroundTasks(params?: ListBackgroundTasksParams): Promise; /** * Gets a single background task by ID. */ getBackgroundTask(backgroundTaskId: string): Promise; /** * Answers a suspended background task with `resumeData`. Pass the task's * `suspendedAt` to have the server reject the answer (409) when the task has * resumed or suspended again since you read it. */ resumeBackgroundTask(backgroundTaskId: string, resumeData: unknown, options?: { suspendedAt?: Date | string | number; }): Promise; /** * Opens an SSE stream of background task events (completed/failed). * Returns a Response that can be consumed as a ReadableStream. */ streamBackgroundTasks(params?: StreamBackgroundTasksParams): Promise>; /** * Lists schedules — agent schedules and workflow schedules — with optional * filtering by agentId, workflowId, or status. Agent schedules can * additionally be filtered by threadId, resourceId, or name. */ listSchedules(params?: ListSchedulesParams): Promise; /** * Gets a single schedule by ID. */ getSchedule(scheduleId: string): Promise; /** * Creates a schedule. Pass `agentId` (plus `prompt`) to schedule an agent, * or `workflowId` (plus optional `inputData`) to schedule a workflow. * By default each call creates a new schedule with a random id * (`agent_` for agents, `schedule_` for workflows) — pass `id` * to choose a stable id instead; creating one with an id that already * exists throws. * * Trigger (fire) history is read through `listScheduleTriggers(schedule.id)`. */ createSchedule(options: CreateScheduleInput): Promise; /** * Patches an existing schedule. Fields apply to the matching target type; * agent-only fields on a workflow schedule are rejected. `threadId` / * `resourceId` are immutable — to retarget, delete and recreate. */ updateSchedule(scheduleId: string, patch: UpdateScheduleInput): Promise; /** * Deletes a schedule. */ deleteSchedule(scheduleId: PathParams<'DELETE /schedules/:scheduleId'>['scheduleId']): Promise>; /** * Fires a schedule manually, out-of-band from the cron schedule. Behaves * like a scheduled fire but does not advance `nextFireAt`. The returned * `claimId` is the trigger row's runId — look it up via * `listScheduleTriggers(scheduleId)`. */ runSchedule(scheduleId: string): Promise; /** * Lists trigger history for a schedule, ordered by actualFireAt descending. */ listScheduleTriggers(scheduleId: string, params?: ListScheduleTriggersParams): Promise; /** * Pauses a schedule. The scheduler tick loop will skip paused schedules. * Idempotent — pausing an already-paused schedule returns the current state unchanged. * Pause status survives redeploys. */ pauseSchedule(scheduleId: string): Promise; /** * Resumes a paused schedule. Recomputes nextFireAt from 'now' so a long-paused schedule * does not fire a backlog. Idempotent — resuming an already-active schedule returns * the current state unchanged. */ resumeSchedule(scheduleId: string): Promise; } //# sourceMappingURL=client.d.ts.map