@mastra/server 0.0.0-working-memory-per-user-20250620163010 → 0.0.0-zod-v4-compat-part-2-20250820135355

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/LICENSE.md +11 -42
  2. package/dist/{chunk-VPNDC2DI.cjs → chunk-4CEZIJWJ.cjs} +16 -14
  3. package/dist/chunk-4CEZIJWJ.cjs.map +1 -0
  4. package/dist/{chunk-QLG2PFHE.js → chunk-4MQU6AJN.js} +5 -3
  5. package/dist/chunk-4MQU6AJN.js.map +1 -0
  6. package/dist/{chunk-57CJTIPW.cjs → chunk-4QSNRCOT.cjs} +4 -2
  7. package/dist/chunk-4QSNRCOT.cjs.map +1 -0
  8. package/dist/{chunk-WJY57THV.cjs → chunk-4US5W7PH.cjs} +26 -24
  9. package/dist/chunk-4US5W7PH.cjs.map +1 -0
  10. package/dist/chunk-57W7TS7P.cjs +547 -0
  11. package/dist/chunk-57W7TS7P.cjs.map +1 -0
  12. package/dist/{chunk-OCWPVYNI.cjs → chunk-7NADHFD2.cjs} +3 -0
  13. package/dist/chunk-7NADHFD2.cjs.map +1 -0
  14. package/dist/{chunk-IMBY5XUG.cjs → chunk-BED2O446.cjs} +11 -9
  15. package/dist/chunk-BED2O446.cjs.map +1 -0
  16. package/dist/chunk-CY4TP3FK.js +16 -0
  17. package/dist/chunk-CY4TP3FK.js.map +1 -0
  18. package/dist/{chunk-55DOQLP6.js → chunk-G7NVCO5M.js} +5 -3
  19. package/dist/chunk-G7NVCO5M.js.map +1 -0
  20. package/dist/{chunk-SDPGVWQJ.cjs → chunk-GASWM5HJ.cjs} +4 -2
  21. package/dist/chunk-GASWM5HJ.cjs.map +1 -0
  22. package/dist/{chunk-5UV7XQ4G.js → chunk-GBL4JYW7.js} +52 -16
  23. package/dist/chunk-GBL4JYW7.js.map +1 -0
  24. package/dist/chunk-GU4EWMZB.cjs +769 -0
  25. package/dist/chunk-GU4EWMZB.cjs.map +1 -0
  26. package/dist/chunk-GX25CWC7.cjs +588 -0
  27. package/dist/chunk-GX25CWC7.cjs.map +1 -0
  28. package/dist/{chunk-N2YBMSO2.js → chunk-HNYYFKON.js} +18 -15
  29. package/dist/chunk-HNYYFKON.js.map +1 -0
  30. package/dist/{chunk-R5VGYBV6.js → chunk-HWHKM67I.js} +6 -4
  31. package/dist/chunk-HWHKM67I.js.map +1 -0
  32. package/dist/{chunk-B4MQFJ7G.cjs → chunk-ILCWPBYQ.cjs} +9 -7
  33. package/dist/chunk-ILCWPBYQ.cjs.map +1 -0
  34. package/dist/{chunk-2GOU7Q4O.js → chunk-ITZX6VPI.js} +146 -73
  35. package/dist/chunk-ITZX6VPI.js.map +1 -0
  36. package/dist/chunk-LF2ZLOFP.js +767 -0
  37. package/dist/chunk-LF2ZLOFP.js.map +1 -0
  38. package/dist/{chunk-NYN7KFXL.js → chunk-MMROOK5J.js} +3 -0
  39. package/dist/chunk-MMROOK5J.js.map +1 -0
  40. package/dist/{chunk-BNEY4P4P.cjs → chunk-NCS2OXX6.cjs} +20 -18
  41. package/dist/chunk-NCS2OXX6.cjs.map +1 -0
  42. package/dist/{chunk-H5PTF3Y4.js → chunk-OW4FX5TS.js} +3 -1
  43. package/dist/chunk-OW4FX5TS.js.map +1 -0
  44. package/dist/{chunk-MLKGABMK.js → chunk-PZ5AY32C.js} +2 -0
  45. package/dist/chunk-PZ5AY32C.js.map +1 -0
  46. package/dist/{chunk-75ZPJI57.cjs → chunk-Q7SFCCGT.cjs} +2 -0
  47. package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
  48. package/dist/chunk-RE4RPXT2.cjs +18 -0
  49. package/dist/chunk-RE4RPXT2.cjs.map +1 -0
  50. package/dist/{chunk-CPPYMJX5.cjs → chunk-RTI33BGT.cjs} +25 -22
  51. package/dist/chunk-RTI33BGT.cjs.map +1 -0
  52. package/dist/{chunk-E5IRS3XH.cjs → chunk-SKWJUK3M.cjs} +63 -26
  53. package/dist/chunk-SKWJUK3M.cjs.map +1 -0
  54. package/dist/{chunk-4DTDPTQC.cjs → chunk-SOIOAAJ4.cjs} +48 -45
  55. package/dist/chunk-SOIOAAJ4.cjs.map +1 -0
  56. package/dist/{chunk-BFOA2QQY.js → chunk-SQ7KKIH3.js} +5 -3
  57. package/dist/chunk-SQ7KKIH3.js.map +1 -0
  58. package/dist/{chunk-GHC4YV6R.js → chunk-TRWPUPGD.js} +3 -1
  59. package/dist/chunk-TRWPUPGD.js.map +1 -0
  60. package/dist/chunk-TXAQU2XN.js +151 -0
  61. package/dist/chunk-TXAQU2XN.js.map +1 -0
  62. package/dist/chunk-VIGPWTDA.cjs +159 -0
  63. package/dist/chunk-VIGPWTDA.cjs.map +1 -0
  64. package/dist/{chunk-XR7VJOOP.js → chunk-WHQZT6R2.js} +12 -9
  65. package/dist/chunk-WHQZT6R2.js.map +1 -0
  66. package/dist/{chunk-C7564HUT.js → chunk-Y3J45CVZ.js} +6 -4
  67. package/dist/chunk-Y3J45CVZ.js.map +1 -0
  68. package/dist/chunk-ZKJZQN24.js +571 -0
  69. package/dist/chunk-ZKJZQN24.js.map +1 -0
  70. package/dist/index.cjs +2 -0
  71. package/dist/index.cjs.map +1 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.d.ts.map +1 -0
  74. package/dist/index.js +2 -0
  75. package/dist/index.js.map +1 -0
  76. package/dist/server/a2a/protocol.d.ts +8 -0
  77. package/dist/server/a2a/protocol.d.ts.map +1 -0
  78. package/dist/server/a2a/store.d.ts +14 -0
  79. package/dist/server/a2a/store.d.ts.map +1 -0
  80. package/dist/server/a2a/tasks.d.ts +20 -0
  81. package/dist/server/a2a/tasks.d.ts.map +1 -0
  82. package/dist/server/handlers/a2a.cjs +9 -7
  83. package/dist/server/handlers/a2a.cjs.map +1 -0
  84. package/dist/server/handlers/a2a.d.ts +66 -6
  85. package/dist/server/handlers/a2a.d.ts.map +1 -0
  86. package/dist/server/handlers/a2a.js +3 -1
  87. package/dist/server/handlers/a2a.js.map +1 -0
  88. package/dist/server/handlers/agents.cjs +13 -7
  89. package/dist/server/handlers/agents.cjs.map +1 -0
  90. package/dist/server/handlers/agents.d.ts +81 -6
  91. package/dist/server/handlers/agents.d.ts.map +1 -0
  92. package/dist/server/handlers/agents.js +3 -1
  93. package/dist/server/handlers/agents.js.map +1 -0
  94. package/dist/server/handlers/error.cjs +4 -2
  95. package/dist/server/handlers/error.cjs.map +1 -0
  96. package/dist/server/handlers/error.d.ts +2 -1
  97. package/dist/server/handlers/error.d.ts.map +1 -0
  98. package/dist/server/handlers/error.js +3 -1
  99. package/dist/server/handlers/error.js.map +1 -0
  100. package/dist/server/handlers/legacyWorkflows.cjs +13 -11
  101. package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
  102. package/dist/server/handlers/legacyWorkflows.d.ts +59 -10
  103. package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
  104. package/dist/server/handlers/legacyWorkflows.js +3 -1
  105. package/dist/server/handlers/legacyWorkflows.js.map +1 -0
  106. package/dist/server/handlers/logs.cjs +6 -4
  107. package/dist/server/handlers/logs.cjs.map +1 -0
  108. package/dist/server/handlers/logs.d.ts +34 -3
  109. package/dist/server/handlers/logs.d.ts.map +1 -0
  110. package/dist/server/handlers/logs.js +3 -1
  111. package/dist/server/handlers/logs.js.map +1 -0
  112. package/dist/server/handlers/memory.cjs +39 -9
  113. package/dist/server/handlers/memory.cjs.map +1 -0
  114. package/dist/server/handlers/memory.d.ts +119 -8
  115. package/dist/server/handlers/memory.d.ts.map +1 -0
  116. package/dist/server/handlers/memory.js +3 -1
  117. package/dist/server/handlers/memory.js.map +1 -0
  118. package/dist/server/handlers/network.cjs +7 -5
  119. package/dist/server/handlers/network.cjs.map +1 -0
  120. package/dist/server/handlers/network.d.ts +50 -4
  121. package/dist/server/handlers/network.d.ts.map +1 -0
  122. package/dist/server/handlers/network.js +3 -1
  123. package/dist/server/handlers/network.js.map +1 -0
  124. package/dist/server/handlers/scores.cjs +32 -0
  125. package/dist/server/handlers/scores.cjs.map +1 -0
  126. package/dist/server/handlers/scores.d.ts +49 -0
  127. package/dist/server/handlers/scores.d.ts.map +1 -0
  128. package/dist/server/handlers/scores.js +3 -0
  129. package/dist/server/handlers/scores.js.map +1 -0
  130. package/dist/server/handlers/telemetry.cjs +5 -3
  131. package/dist/server/handlers/telemetry.cjs.map +1 -0
  132. package/dist/server/handlers/telemetry.d.ts +32 -2
  133. package/dist/server/handlers/telemetry.d.ts.map +1 -0
  134. package/dist/server/handlers/telemetry.js +3 -1
  135. package/dist/server/handlers/telemetry.js.map +1 -0
  136. package/dist/server/handlers/tools.cjs +7 -5
  137. package/dist/server/handlers/tools.cjs.map +1 -0
  138. package/dist/server/handlers/tools.d.ts +21 -4
  139. package/dist/server/handlers/tools.d.ts.map +1 -0
  140. package/dist/server/handlers/tools.js +3 -1
  141. package/dist/server/handlers/tools.js.map +1 -0
  142. package/dist/server/handlers/utils.cjs +4 -2
  143. package/dist/server/handlers/utils.cjs.map +1 -0
  144. package/dist/server/handlers/utils.d.ts +2 -1
  145. package/dist/server/handlers/utils.d.ts.map +1 -0
  146. package/dist/server/handlers/utils.js +3 -1
  147. package/dist/server/handlers/utils.js.map +1 -0
  148. package/dist/server/handlers/vNextNetwork.cjs +220 -0
  149. package/dist/server/handlers/vNextNetwork.cjs.map +1 -0
  150. package/dist/server/handlers/vNextNetwork.d.ts +179 -0
  151. package/dist/server/handlers/vNextNetwork.d.ts.map +1 -0
  152. package/dist/server/handlers/vNextNetwork.js +213 -0
  153. package/dist/server/handlers/vNextNetwork.js.map +1 -0
  154. package/dist/server/handlers/vector.cjs +9 -7
  155. package/dist/server/handlers/vector.cjs.map +1 -0
  156. package/dist/server/handlers/vector.d.ts +51 -6
  157. package/dist/server/handlers/vector.d.ts.map +1 -0
  158. package/dist/server/handlers/vector.js +3 -1
  159. package/dist/server/handlers/vector.js.map +1 -0
  160. package/dist/server/handlers/voice.cjs +7 -5
  161. package/dist/server/handlers/voice.cjs.map +1 -0
  162. package/dist/server/handlers/voice.d.ts +39 -4
  163. package/dist/server/handlers/voice.d.ts.map +1 -0
  164. package/dist/server/handlers/voice.js +3 -1
  165. package/dist/server/handlers/voice.js.map +1 -0
  166. package/dist/server/handlers/workflows.cjs +27 -13
  167. package/dist/server/handlers/workflows.cjs.map +1 -0
  168. package/dist/server/handlers/workflows.d.ts +88 -12
  169. package/dist/server/handlers/workflows.d.ts.map +1 -0
  170. package/dist/server/handlers/workflows.js +3 -1
  171. package/dist/server/handlers/workflows.js.map +1 -0
  172. package/dist/server/handlers.cjs +32 -25
  173. package/dist/server/handlers.cjs.map +1 -0
  174. package/dist/server/handlers.d.ts +13 -11
  175. package/dist/server/handlers.d.ts.map +1 -0
  176. package/dist/server/handlers.js +14 -11
  177. package/dist/server/handlers.js.map +1 -0
  178. package/dist/server/http-exception.d.ts +87 -0
  179. package/dist/server/http-exception.d.ts.map +1 -0
  180. package/dist/server/types.d.ts +10 -0
  181. package/dist/server/types.d.ts.map +1 -0
  182. package/package.json +11 -11
  183. package/dist/_tsup-dts-rollup.d.cts +0 -864
  184. package/dist/_tsup-dts-rollup.d.ts +0 -864
  185. package/dist/chunk-64U3UDTH.cjs +0 -13
  186. package/dist/chunk-6TJSHFCJ.cjs +0 -221
  187. package/dist/chunk-7TB34RLZ.cjs +0 -471
  188. package/dist/chunk-I7KJZNX5.js +0 -211
  189. package/dist/chunk-M5ABIP7D.js +0 -11
  190. package/dist/chunk-MN6F4D5A.cjs +0 -2004
  191. package/dist/chunk-OSZM4EAY.js +0 -2001
  192. package/dist/index.d.cts +0 -1
  193. package/dist/server/handlers/a2a.d.cts +0 -6
  194. package/dist/server/handlers/agents.d.cts +0 -6
  195. package/dist/server/handlers/error.d.cts +0 -1
  196. package/dist/server/handlers/legacyWorkflows.d.cts +0 -10
  197. package/dist/server/handlers/logs.d.cts +0 -3
  198. package/dist/server/handlers/memory.d.cts +0 -8
  199. package/dist/server/handlers/network.d.cts +0 -4
  200. package/dist/server/handlers/telemetry.d.cts +0 -2
  201. package/dist/server/handlers/tools.d.cts +0 -4
  202. package/dist/server/handlers/utils.d.cts +0 -1
  203. package/dist/server/handlers/vector.d.cts +0 -6
  204. package/dist/server/handlers/voice.d.cts +0 -4
  205. package/dist/server/handlers/workflows.d.cts +0 -12
  206. package/dist/server/handlers.d.cts +0 -11
@@ -1,864 +0,0 @@
1
- import type { Agent } from '@mastra/core/agent';
2
- import type { AgentCard } from '@mastra/core/a2a';
3
- import type { AgentNetwork } from '@mastra/core/network';
4
- import type { Artifact } from '@mastra/core/a2a';
5
- import type { BaseLogMessage } from '@mastra/core/logger';
6
- import { CoreMessage } from 'ai';
7
- import type { CoreMessage as CoreMessage_2 } from '@mastra/core/llm';
8
- import { EvalRow } from '@mastra/core/storage';
9
- import { GenerateObjectResult } from 'ai';
10
- import { GenerateTextResult } from 'ai';
11
- import type { IMastraLogger } from '@mastra/core/logger';
12
- import type { JSONRPCError } from '@mastra/core/a2a';
13
- import { JSONRPCResponse } from '@mastra/core/a2a';
14
- import { LegacyStep } from '@mastra/core/workflows/legacy';
15
- import type { LegacyWorkflow } from '@mastra/core/workflows/legacy';
16
- import { LegacyWorkflowRunResult } from '@mastra/core/workflows/legacy';
17
- import type { LegacyWorkflowRuns } from '@mastra/core/storage';
18
- import type { LogLevel } from '@mastra/core/logger';
19
- import type { Mastra } from '@mastra/core/mastra';
20
- import type { MastraMemory } from '@mastra/core/memory';
21
- import { MastraMessageV1 } from '@mastra/core/memory';
22
- import type { Message } from '@mastra/core/a2a';
23
- import type { QueryResult } from '@mastra/core/vector';
24
- import { ReadableStream as ReadableStream_2 } from 'node:stream/web';
25
- import { RuntimeContext } from '@mastra/core/runtime-context';
26
- import type { RuntimeContext as RuntimeContext_2 } from '@mastra/core/di';
27
- import type { SerializedStepFlowEntry } from '@mastra/core/workflows';
28
- import { Step } from '@mastra/core/workflows';
29
- import { StepExecutionContext } from '@mastra/core/workflows/legacy';
30
- import { StepGraph } from '@mastra/core/workflows/legacy';
31
- import { StorageThreadType } from '@mastra/core/memory';
32
- import { StreamEvent } from '@mastra/core/workflows';
33
- import { Task } from '@mastra/core/a2a';
34
- import { TaskAndHistory } from '@mastra/core/a2a';
35
- import type { TaskContext } from '@mastra/core/a2a';
36
- import type { TaskIdParams } from '@mastra/core/a2a';
37
- import type { TaskQueryParams } from '@mastra/core/a2a';
38
- import type { TaskSendParams } from '@mastra/core/a2a';
39
- import type { TaskStatus } from '@mastra/core/a2a';
40
- import type { ToolAction } from '@mastra/core/tools';
41
- import { UIMessage } from 'ai';
42
- import type { VercelTool } from '@mastra/core/tools';
43
- import type { WatchEvent } from '@mastra/core/workflows';
44
- import type { Workflow } from '@mastra/core/workflows';
45
- import { WorkflowContext as WorkflowContext_2 } from '@mastra/core/workflows/legacy';
46
- import { WorkflowResult } from '@mastra/core/workflows';
47
- import type { WorkflowRuns } from '@mastra/core/storage';
48
- import { ZodType } from 'zod';
49
- import { ZodTypeDef } from 'zod';
50
-
51
- export declare namespace a2a {
52
- export {
53
- getAgentCardByIdHandler,
54
- handleTaskSend,
55
- handleTaskGet,
56
- handleTaskSendSubscribe,
57
- handleTaskCancel,
58
- getAgentExecutionHandler
59
- }
60
- }
61
-
62
- export declare namespace agents {
63
- export {
64
- getAgentsHandler,
65
- getAgentByIdHandler,
66
- getEvalsByAgentIdHandler,
67
- getLiveEvalsByAgentIdHandler,
68
- generateHandler,
69
- streamGenerateHandler
70
- }
71
- }
72
-
73
- export declare interface ApiError extends Error {
74
- message: string;
75
- status?: number;
76
- }
77
-
78
- export declare function applyUpdateToTaskAndHistory(current: TaskAndHistory, update: Omit<TaskStatus, 'timestamp'> | Artifact): TaskAndHistory;
79
-
80
- declare type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
81
-
82
- export declare interface Context {
83
- mastra: Mastra;
84
- }
85
-
86
- export declare function convertToCoreMessage(message: Message): CoreMessage_2;
87
-
88
- export declare function createErrorResponse(id: number | string | null, error: JSONRPCError<unknown>): JSONRPCResponse<null, unknown>;
89
-
90
- export declare function createIndex({ mastra, vectorName, index, }: Pick<VectorContext, 'mastra' | 'vectorName'> & {
91
- index: CreateIndexRequest;
92
- }): Promise<{
93
- success: boolean;
94
- }>;
95
-
96
- declare interface CreateIndexRequest {
97
- indexName: string;
98
- dimension: number;
99
- metric?: 'cosine' | 'euclidean' | 'dotproduct';
100
- }
101
-
102
- export declare function createLegacyWorkflowRunHandler({ mastra, workflowId, runId: prevRunId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<{
103
- runId: string;
104
- }>;
105
-
106
- export declare function createSuccessResponse<T>(id: number | string | null, result: T): JSONRPCResponse<T>;
107
-
108
- export declare function createTaskContext({ task, userMessage, history, activeCancellations, }: {
109
- task: Task;
110
- userMessage: Message;
111
- history: Message[];
112
- activeCancellations: Set<string>;
113
- }): TaskContext;
114
-
115
- export declare function createThreadHandler({ mastra, agentId, body, }: Pick<MemoryContext, 'mastra' | 'agentId'> & {
116
- body?: Omit<Parameters<MastraMemory['createThread']>[0], 'resourceId'> & {
117
- resourceId?: string;
118
- };
119
- }): Promise<StorageThreadType>;
120
-
121
- export declare function createWorkflowRunHandler({ mastra, workflowId, runId: prevRunId, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'>): Promise<{
122
- runId: string;
123
- }>;
124
-
125
- export declare function deleteIndex({ mastra, vectorName, indexName, }: Pick<VectorContext, 'mastra' | 'vectorName'> & {
126
- indexName?: string;
127
- }): Promise<{
128
- success: boolean;
129
- }>;
130
-
131
- export declare function deleteThreadHandler({ mastra, agentId, threadId, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId'>): Promise<{
132
- result: string;
133
- }>;
134
-
135
- declare type DeprecatedStatusCode = 305 | 306;
136
-
137
- export declare function describeIndex({ mastra, vectorName, indexName, }: Pick<VectorContext, 'mastra' | 'vectorName'> & {
138
- indexName?: string;
139
- }): Promise<{
140
- dimension: number;
141
- count: number;
142
- metric: string | undefined;
143
- }>;
144
-
145
- export declare function executeAgentToolHandler({ mastra, agentId, toolId, data, runtimeContext, }: Pick<ToolsContext, 'mastra' | 'toolId'> & {
146
- agentId?: string;
147
- data: any;
148
- runtimeContext: RuntimeContext_2;
149
- }): Promise<any>;
150
-
151
- export declare function executeToolHandler(tools: ToolsContext['tools']): ({ mastra, runId, toolId, data, runtimeContext, }: Pick<ToolsContext, "mastra" | "toolId" | "runId"> & {
152
- data?: unknown;
153
- runtimeContext: RuntimeContext_2;
154
- }) => Promise<any>;
155
-
156
- export declare function generateHandler({ mastra, runtimeContext, agentId, body, }: Context & {
157
- runtimeContext: RuntimeContext;
158
- agentId: string;
159
- body: GetBody<'generate'> & {
160
- resourceid?: string;
161
- runtimeContext?: Record<string, unknown>;
162
- };
163
- }): Promise<GenerateTextResult<any, unknown>>;
164
-
165
- export declare function generateHandler_alias_1({ mastra, runtimeContext, networkId, body, }: NetworkContext & {
166
- runtimeContext: RuntimeContext;
167
- body: {
168
- messages?: Parameters<AgentNetwork['generate']>[0];
169
- } & Parameters<AgentNetwork['generate']>[1];
170
- }): Promise<GenerateObjectResult<any>>;
171
-
172
- /**
173
- * Generate speech from text
174
- */
175
- export declare function generateSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
176
- body?: {
177
- text?: string;
178
- speakerId?: string;
179
- };
180
- }): Promise<NodeJS.ReadableStream>;
181
-
182
- export declare function getAgentByIdHandler({ mastra, runtimeContext, agentId, isPlayground, }: Context & {
183
- isPlayground?: boolean;
184
- runtimeContext: RuntimeContext;
185
- agentId: string;
186
- }): Promise<{
187
- name: any;
188
- instructions: string;
189
- tools: any;
190
- workflows: {};
191
- provider: string;
192
- modelId: string;
193
- defaultGenerateOptions: any;
194
- defaultStreamOptions: any;
195
- }>;
196
-
197
- export declare function getAgentCardByIdHandler({ mastra, agentId, executionUrl, provider, version, runtimeContext, }: Context & {
198
- runtimeContext: RuntimeContext;
199
- agentId: keyof ReturnType<typeof mastra.getAgents>;
200
- executionUrl?: string;
201
- version?: string;
202
- provider?: {
203
- organization: string;
204
- url: string;
205
- };
206
- }): Promise<AgentCard>;
207
-
208
- export declare function getAgentExecutionHandler({ requestId, mastra, agentId, runtimeContext, method, params, taskStore, logger, }: Context & {
209
- requestId: string;
210
- runtimeContext: RuntimeContext;
211
- agentId: string;
212
- method: 'tasks/send' | 'tasks/sendSubscribe' | 'tasks/get' | 'tasks/cancel';
213
- params: TaskSendParams | TaskQueryParams | TaskIdParams;
214
- taskStore?: InMemoryTaskStore;
215
- logger?: IMastraLogger;
216
- }): Promise<any>;
217
-
218
- export declare function getAgentsHandler({ mastra, runtimeContext }: Context & {
219
- runtimeContext: RuntimeContext;
220
- }): Promise<any>;
221
-
222
- declare type GetBody<T extends keyof Agent & {
223
- [K in keyof Agent]: Agent[K] extends (...args: any) => any ? K : never;
224
- }[keyof Agent]> = {
225
- messages: Parameters<Agent[T]>[0];
226
- } & Parameters<Agent[T]>[1];
227
-
228
- export declare function getEvalsByAgentIdHandler({ mastra, runtimeContext, agentId, }: Context & {
229
- runtimeContext: RuntimeContext;
230
- agentId: string;
231
- }): Promise<{
232
- id: string;
233
- name: any;
234
- instructions: string;
235
- evals: EvalRow[];
236
- }>;
237
-
238
- export declare function getLegacyWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext): Promise<{
239
- stepGraph: StepGraph;
240
- stepSubscriberGraph: Record<string, StepGraph>;
241
- serializedStepGraph: StepGraph;
242
- serializedStepSubscriberGraph: Record<string, StepGraph>;
243
- name: string;
244
- triggerSchema: string | undefined;
245
- steps: any;
246
- }>;
247
-
248
- export declare function getLegacyWorkflowRunHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<LegacyWorkflow['getRun']>>;
249
-
250
- export declare function getLegacyWorkflowRunsHandler({ mastra, workflowId, fromDate, toDate, limit, offset, resourceId, }: WorkflowContext & {
251
- fromDate?: Date;
252
- toDate?: Date;
253
- limit?: number;
254
- offset?: number;
255
- resourceId?: string;
256
- }): Promise<LegacyWorkflowRuns>;
257
-
258
- export declare function getLegacyWorkflowsHandler({ mastra }: WorkflowContext): Promise<any>;
259
-
260
- /**
261
- * Get available listeners for an agent
262
- */
263
- export declare function getListenerHandler({ mastra, agentId }: VoiceContext): Promise<{
264
- enabled: boolean;
265
- }>;
266
-
267
- export declare function getLiveEvalsByAgentIdHandler({ mastra, runtimeContext, agentId, }: Context & {
268
- runtimeContext: RuntimeContext;
269
- agentId: string;
270
- }): Promise<{
271
- id: string;
272
- name: any;
273
- instructions: string;
274
- evals: EvalRow[];
275
- }>;
276
-
277
- export declare function getLogsByRunIdHandler({ mastra, runId, transportId, params, }: Pick<LogsContext, 'mastra' | 'runId' | 'transportId' | 'params'>): Promise<{
278
- logs: BaseLogMessage[];
279
- total: number;
280
- page: number;
281
- perPage: number;
282
- hasMore: boolean;
283
- }>;
284
-
285
- export declare function getLogsHandler({ mastra, transportId, params, }: Pick<LogsContext, 'mastra' | 'transportId' | 'params'>): Promise<{
286
- logs: BaseLogMessage[];
287
- total: number;
288
- page: number;
289
- perPage: number;
290
- hasMore: boolean;
291
- }>;
292
-
293
- export declare function getLogTransports({ mastra }: Pick<LogsContext, 'mastra'>): Promise<{
294
- transports: string[];
295
- }>;
296
-
297
- export declare function getMemoryStatusHandler({ mastra, agentId }: Pick<MemoryContext, 'mastra' | 'agentId'>): Promise<{
298
- result: boolean;
299
- }>;
300
-
301
- export declare function getMessagesHandler({ mastra, agentId, threadId, limit, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId'> & {
302
- limit?: number;
303
- }): Promise<{
304
- messages: CoreMessage[];
305
- uiMessages: UIMessage[];
306
- }>;
307
-
308
- export declare function getNetworkByIdHandler({ mastra, networkId, runtimeContext, }: Pick<NetworkContext, 'mastra' | 'networkId' | 'runtimeContext'>): Promise<{
309
- id: string;
310
- name: string;
311
- instructions: string;
312
- agents: {
313
- name: string;
314
- provider: string;
315
- modelId: string;
316
- }[];
317
- routingModel: {
318
- provider: string;
319
- modelId: string;
320
- };
321
- }>;
322
-
323
- export declare function getNetworksHandler({ mastra, runtimeContext, }: Pick<NetworkContext, 'mastra' | 'runtimeContext'>): Promise<{
324
- id: string;
325
- name: string;
326
- instructions: string;
327
- agents: {
328
- name: string;
329
- provider: string;
330
- modelId: string;
331
- }[];
332
- routingModel: {
333
- provider: string;
334
- modelId: string;
335
- };
336
- }[]>;
337
-
338
- /**
339
- * Get available speakers for an agent
340
- */
341
- export declare function getSpeakersHandler({ mastra, agentId }: VoiceContext): Promise<{
342
- voiceId: string;
343
- }[]>;
344
-
345
- export declare function getTelemetryHandler({ mastra, body }: TelemetryContext): Promise<any[]>;
346
-
347
- export declare function getThreadByIdHandler({ mastra, agentId, threadId, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId'>): Promise<StorageThreadType>;
348
-
349
- export declare function getThreadsHandler({ mastra, agentId, resourceId, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'resourceId'>): Promise<StorageThreadType[]>;
350
-
351
- export declare function getToolByIdHandler({ tools, toolId }: Pick<ToolsContext, 'tools' | 'toolId'>): Promise<any>;
352
-
353
- export declare function getToolsHandler({ tools }: Pick<ToolsContext, 'tools'>): Promise<Record<string, any>>;
354
-
355
- export declare function getWorkflowByIdHandler({ mastra, workflowId }: WorkflowContext_3): Promise<{
356
- steps: SerializedStep[];
357
- name: string | undefined;
358
- description: string | undefined;
359
- stepGraph: SerializedStepFlowEntry[];
360
- inputSchema: string | undefined;
361
- outputSchema: string | undefined;
362
- }>;
363
-
364
- export declare function getWorkflowRunByIdHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'>): Promise<ReturnType<Workflow['getWorkflowRunById']>>;
365
-
366
- export declare function getWorkflowRunExecutionResultHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'>): Promise<WatchEvent['payload']['workflowState']>;
367
-
368
- export declare function getWorkflowRunsHandler({ mastra, workflowId, fromDate, toDate, limit, offset, resourceId, }: WorkflowContext_3 & {
369
- fromDate?: Date;
370
- toDate?: Date;
371
- limit?: number;
372
- offset?: number;
373
- resourceId?: string;
374
- }): Promise<WorkflowRuns>;
375
-
376
- export declare function getWorkflowsHandler({ mastra }: WorkflowContext_3): Promise<any>;
377
-
378
- export declare function handleError(error: unknown, defaultMessage: string): never;
379
-
380
- export declare function handleTaskCancel({ requestId, taskStore, agentId, taskId, logger, }: {
381
- requestId: string;
382
- taskStore: InMemoryTaskStore;
383
- agentId: string;
384
- taskId: string;
385
- logger?: IMastraLogger;
386
- }): Promise<JSONRPCResponse<Task, unknown>>;
387
-
388
- export declare function handleTaskGet({ requestId, taskStore, agentId, taskId, }: {
389
- requestId: string;
390
- taskStore: InMemoryTaskStore;
391
- agentId: string;
392
- taskId: string;
393
- }): Promise<JSONRPCResponse<TaskAndHistory, unknown>>;
394
-
395
- export declare function handleTaskSend({ requestId, params, taskStore, agent, agentId, logger, runtimeContext, }: {
396
- requestId: string;
397
- params: TaskSendParams;
398
- taskStore: InMemoryTaskStore;
399
- agent: Agent;
400
- agentId: string;
401
- logger?: IMastraLogger;
402
- runtimeContext: RuntimeContext;
403
- }): Promise<JSONRPCResponse<null, unknown> | JSONRPCResponse<Task, unknown>>;
404
-
405
- export declare function handleTaskSendSubscribe({ requestId, params, taskStore, agent, agentId, logger, runtimeContext, }: {
406
- requestId: string;
407
- params: TaskSendParams;
408
- taskStore: InMemoryTaskStore;
409
- agent: Agent;
410
- agentId: string;
411
- logger?: IMastraLogger;
412
- runtimeContext: RuntimeContext;
413
- }): AsyncGenerator<JSONRPCResponse<null, unknown> | JSONRPCResponse<Task, unknown> | JSONRPCResponse< {
414
- state: string;
415
- message: {
416
- role: string;
417
- parts: {
418
- type: string;
419
- text: string;
420
- }[];
421
- };
422
- }, unknown>, void, unknown>;
423
-
424
- /**
425
- * `HTTPException` must be used when a fatal error such as authentication failure occurs.
426
- *
427
- * @see {@link https://hono.dev/docs/api/exception}
428
- *
429
- * @param {StatusCode} status - status code of HTTPException
430
- * @param {HTTPExceptionOptions} options - options of HTTPException
431
- * @param {HTTPExceptionOptions["res"]} options.res - response of options of HTTPException
432
- * @param {HTTPExceptionOptions["message"]} options.message - message of options of HTTPException
433
- * @param {HTTPExceptionOptions["cause"]} options.cause - cause of options of HTTPException
434
- *
435
- * @example
436
- * ```ts
437
- * import { HTTPException } from 'hono/http-exception'
438
- *
439
- * // ...
440
- *
441
- * app.post('/auth', async (c, next) => {
442
- * // authentication
443
- * if (authorized === false) {
444
- * throw new HTTPException(401, { message: 'Custom error message' })
445
- * }
446
- * await next()
447
- * })
448
- * ```
449
- */
450
- export declare class HTTPException extends Error {
451
- readonly res?: Response;
452
- readonly status: StatusCode;
453
- /**
454
- * Creates an instance of `HTTPException`.
455
- * @param status - HTTP status code for the exception. Defaults to 500.
456
- * @param options - Additional options for the exception.
457
- */
458
- constructor(status?: StatusCode, options?: HTTPExceptionOptions);
459
- /**
460
- * Returns the response object associated with the exception.
461
- * If a response object is not provided, a new response is created with the error message and status code.
462
- * @returns The response object.
463
- */
464
- getResponse(): Response;
465
- }
466
-
467
- /**
468
- * Options for creating an `HTTPException`.
469
- * @property res - Optional response object to use.
470
- * @property message - Optional custom error message.
471
- * @property cause - Optional cause of the error.
472
- */
473
- declare type HTTPExceptionOptions = {
474
- res?: Response;
475
- message?: string;
476
- cause?: unknown;
477
- };
478
-
479
- /**
480
- * @module
481
- * This module provides the `HTTPException` class.
482
- */
483
- declare type InfoStatusCode = 100 | 101 | 102 | 103;
484
-
485
- export declare class InMemoryTaskStore {
486
- private store;
487
- activeCancellations: Set<string>;
488
- load({ agentId, taskId }: {
489
- agentId: string;
490
- taskId: string;
491
- }): Promise<TaskAndHistory | null>;
492
- save({ agentId, data }: {
493
- agentId: string;
494
- data: TaskAndHistory;
495
- }): Promise<void>;
496
- }
497
-
498
- export declare namespace legacyWorkflows {
499
- export {
500
- getLegacyWorkflowsHandler,
501
- getLegacyWorkflowByIdHandler,
502
- startAsyncLegacyWorkflowHandler,
503
- getLegacyWorkflowRunHandler,
504
- createLegacyWorkflowRunHandler,
505
- startLegacyWorkflowRunHandler,
506
- watchLegacyWorkflowHandler,
507
- resumeAsyncLegacyWorkflowHandler,
508
- resumeLegacyWorkflowHandler,
509
- getLegacyWorkflowRunsHandler
510
- }
511
- }
512
-
513
- export declare function listIndexes({ mastra, vectorName }: Pick<VectorContext, 'mastra' | 'vectorName'>): Promise<string[]>;
514
-
515
- export declare function loadOrCreateTaskAndHistory({ agentId, taskId, taskStore, message, sessionId, metadata, logger, }: {
516
- agentId: string;
517
- taskId: string;
518
- taskStore: InMemoryTaskStore;
519
- message: Message;
520
- sessionId?: string | null;
521
- metadata?: Record<string, unknown> | null;
522
- logger?: IMastraLogger;
523
- }): Promise<TaskAndHistory>;
524
-
525
- export declare namespace logs {
526
- export {
527
- getLogsHandler,
528
- getLogsByRunIdHandler,
529
- getLogTransports
530
- }
531
- }
532
-
533
- declare type LogsContext = {
534
- mastra: Mastra;
535
- transportId?: string;
536
- runId?: string;
537
- params?: {
538
- fromDate?: Date;
539
- toDate?: Date;
540
- logLevel?: LogLevel;
541
- filters?: string | string[];
542
- page?: number;
543
- perPage?: number;
544
- };
545
- };
546
-
547
- export declare namespace memory {
548
- export {
549
- getMemoryStatusHandler,
550
- getThreadsHandler,
551
- getThreadByIdHandler,
552
- saveMessagesHandler,
553
- createThreadHandler,
554
- updateThreadHandler,
555
- deleteThreadHandler,
556
- getMessagesHandler
557
- }
558
- }
559
-
560
- declare interface MemoryContext extends Context {
561
- agentId?: string;
562
- resourceId?: string;
563
- threadId?: string;
564
- }
565
-
566
- export declare namespace network {
567
- export {
568
- getNetworksHandler,
569
- getNetworkByIdHandler,
570
- generateHandler_alias_1 as generateHandler,
571
- streamGenerateHandler_alias_1 as streamGenerateHandler
572
- }
573
- }
574
-
575
- declare interface NetworkContext extends Context {
576
- networkId?: string;
577
- runtimeContext: RuntimeContext;
578
- }
579
-
580
- export declare function normalizeError(error: any, reqId: number | string | null, taskId?: string, logger?: IMastraLogger): JSONRPCResponse<null, unknown>;
581
-
582
- declare interface QueryRequest {
583
- indexName: string;
584
- queryVector: number[];
585
- topK?: number;
586
- filter?: Record<string, any>;
587
- includeVector?: boolean;
588
- }
589
-
590
- export declare function queryVectors({ mastra, vectorName, query, }: Pick<VectorContext, 'mastra' | 'vectorName'> & {
591
- query: QueryRequest;
592
- }): Promise<QueryResult[]>;
593
-
594
- declare type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | DeprecatedStatusCode | 307 | 308;
595
-
596
- export declare function resumeAsyncLegacyWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
597
- body: {
598
- stepId: string;
599
- context: any;
600
- };
601
- runtimeContext: RuntimeContext;
602
- }): Promise<Omit<LegacyWorkflowRunResult<any, LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext_2<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], any>, "runId"> | undefined>;
603
-
604
- export declare function resumeAsyncWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext: payloadRuntimeContext, }: WorkflowContext_3 & {
605
- body: {
606
- step: string | string[];
607
- resumeData?: unknown;
608
- };
609
- runtimeContext?: Record<string, any>;
610
- }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
611
-
612
- export declare function resumeLegacyWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext, }: WorkflowContext & {
613
- body: {
614
- stepId: string;
615
- context: any;
616
- };
617
- runtimeContext: RuntimeContext;
618
- }): Promise<{
619
- message: string;
620
- }>;
621
-
622
- export declare function resumeWorkflowHandler({ mastra, workflowId, runId, body, runtimeContext: payloadRuntimeContext, }: WorkflowContext_3 & {
623
- body: {
624
- step: string | string[];
625
- resumeData?: unknown;
626
- };
627
- runtimeContext?: Record<string, any>;
628
- }): Promise<{
629
- message: string;
630
- }>;
631
-
632
- export declare function saveMessagesHandler({ mastra, agentId, body, }: Pick<MemoryContext, 'mastra' | 'agentId'> & {
633
- body: {
634
- messages: Parameters<MastraMemory['saveMessages']>[0]['messages'];
635
- };
636
- }): Promise<MastraMessageV1[]>;
637
-
638
- declare type SerializedStep = {
639
- id: string;
640
- description: string;
641
- inputSchema: string | undefined;
642
- outputSchema: string | undefined;
643
- resumeSchema: string | undefined;
644
- suspendSchema: string | undefined;
645
- };
646
-
647
- declare type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
648
-
649
- export declare function startAsyncLegacyWorkflowHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
650
- triggerData?: unknown;
651
- runtimeContext: RuntimeContext;
652
- }): Promise<LegacyWorkflowRunResult<any, LegacyStep<string, any, any, StepExecutionContext<any, WorkflowContext_2<any, LegacyStep<string, any, any, any>[], Record<string, any>>>>[], any>>;
653
-
654
- export declare function startAsyncWorkflowHandler({ mastra, runtimeContext: payloadRuntimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'> & {
655
- inputData?: unknown;
656
- runtimeContext?: Record<string, any>;
657
- }): Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
658
-
659
- export declare function startLegacyWorkflowRunHandler({ mastra, runtimeContext, workflowId, runId, triggerData, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {
660
- triggerData?: unknown;
661
- runtimeContext: RuntimeContext;
662
- }): Promise<{
663
- message: string;
664
- }>;
665
-
666
- export declare function startWorkflowRunHandler({ mastra, runtimeContext: payloadRuntimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'> & {
667
- inputData?: unknown;
668
- runtimeContext?: Record<string, any>;
669
- }): Promise<{
670
- message: string;
671
- }>;
672
-
673
- /**
674
- * If you want to use an unofficial status, use `UnofficialStatusCode`.
675
- */
676
- export declare type StatusCode = InfoStatusCode | SuccessStatusCode | RedirectStatusCode | ClientErrorStatusCode | ServerErrorStatusCode | UnofficialStatusCode;
677
-
678
- export declare function storeTelemetryHandler({ mastra, body }: Context & {
679
- body: {
680
- resourceSpans: any[];
681
- };
682
- }): Promise<{
683
- status: string;
684
- message: string;
685
- error: any;
686
- } | {
687
- status: string;
688
- message: string;
689
- traceCount?: undefined;
690
- } | {
691
- status: string;
692
- message: string;
693
- traceCount: number;
694
- }>;
695
-
696
- export declare function streamGenerateHandler({ mastra, runtimeContext, agentId, body, }: Context & {
697
- runtimeContext: RuntimeContext;
698
- agentId: string;
699
- body: GetBody<'stream'> & {
700
- resourceid?: string;
701
- runtimeContext?: string;
702
- };
703
- }): Promise<Response | undefined>;
704
-
705
- export declare function streamGenerateHandler_alias_1({ mastra, networkId, body, runtimeContext, }: NetworkContext & {
706
- runtimeContext: RuntimeContext;
707
- body: {
708
- messages?: Parameters<AgentNetwork['stream']>[0];
709
- } & Parameters<AgentNetwork['stream']>[1];
710
- }): Promise<Response>;
711
-
712
- export declare function streamWorkflowHandler({ mastra, runtimeContext: payloadRuntimeContext, workflowId, runId, inputData, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'> & {
713
- inputData?: unknown;
714
- runtimeContext?: Record<string, any>;
715
- }): Promise<{
716
- stream: globalThis.ReadableStream<StreamEvent>;
717
- getWorkflowState: () => Promise<WorkflowResult<ZodType<any, ZodTypeDef, any>, Step<string, any, any, any, any, any>[]>>;
718
- }>;
719
-
720
- declare type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
721
-
722
- export declare namespace telemetry {
723
- export {
724
- getTelemetryHandler,
725
- storeTelemetryHandler
726
- }
727
- }
728
-
729
- declare interface TelemetryContext extends Context {
730
- body?: {
731
- name?: string;
732
- scope?: string;
733
- page?: number;
734
- perPage?: number;
735
- attribute?: string | string[];
736
- fromDate?: Date;
737
- toDate?: Date;
738
- };
739
- }
740
-
741
- export declare namespace tools {
742
- export {
743
- getToolsHandler,
744
- getToolByIdHandler,
745
- executeToolHandler,
746
- executeAgentToolHandler
747
- }
748
- }
749
-
750
- declare interface ToolsContext extends Context {
751
- tools?: Record<string, ToolAction | VercelTool>;
752
- toolId?: string;
753
- runId?: string;
754
- }
755
-
756
- /**
757
- * Transcribe speech to text
758
- */
759
- export declare function transcribeSpeechHandler({ mastra, agentId, body, }: VoiceContext & {
760
- body?: {
761
- audioData?: Buffer;
762
- options?: Parameters<NonNullable<Agent['voice']>['listen']>[1];
763
- };
764
- }): Promise<{
765
- text: string | void | NodeJS.ReadableStream;
766
- }>;
767
-
768
- /**
769
- * @deprecated
770
- * Use `UnofficialStatusCode` instead.
771
- */
772
- export declare type UnOfficalStatusCode = UnofficialStatusCode;
773
-
774
- /**
775
- * `UnofficialStatusCode` can be used to specify an unofficial status code.
776
- * @example
777
- *
778
- * ```ts
779
- * app.get('/unknown', (c) => {
780
- * return c.text("Unknown Error", 520 as UnofficialStatusCode)
781
- * })
782
- * ```
783
- */
784
- export declare type UnofficialStatusCode = -1;
785
-
786
- export declare function updateThreadHandler({ mastra, agentId, threadId, body, }: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId'> & {
787
- body?: Parameters<MastraMemory['saveThread']>[0]['thread'];
788
- }): Promise<StorageThreadType>;
789
-
790
- declare interface UpsertRequest {
791
- indexName: string;
792
- vectors: number[][];
793
- metadata?: Record<string, any>[];
794
- ids?: string[];
795
- }
796
-
797
- export declare function upsertVectors({ mastra, vectorName, index }: VectorContext & {
798
- index: UpsertRequest;
799
- }): Promise<{
800
- ids: string[];
801
- }>;
802
-
803
- export declare function validateBody(body: Record<string, unknown>): void;
804
-
805
- export declare namespace vector {
806
- export {
807
- upsertVectors,
808
- createIndex,
809
- queryVectors,
810
- listIndexes,
811
- describeIndex,
812
- deleteIndex
813
- }
814
- }
815
-
816
- declare interface VectorContext extends Context {
817
- vectorName?: string;
818
- }
819
-
820
- export declare namespace voice {
821
- export {
822
- getSpeakersHandler,
823
- generateSpeechHandler,
824
- transcribeSpeechHandler,
825
- getListenerHandler
826
- }
827
- }
828
-
829
- declare interface VoiceContext extends Context {
830
- agentId?: string;
831
- }
832
-
833
- export declare function watchLegacyWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream_2<string>>;
834
-
835
- export declare function watchWorkflowHandler({ mastra, workflowId, runId, }: Pick<WorkflowContext_3, 'mastra' | 'workflowId' | 'runId'>): Promise<ReadableStream_2<string>>;
836
-
837
- declare interface WorkflowContext extends Context {
838
- workflowId?: string;
839
- runId?: string;
840
- }
841
-
842
- declare interface WorkflowContext_3 extends Context {
843
- workflowId?: string;
844
- runId?: string;
845
- }
846
-
847
- export declare namespace workflows {
848
- export {
849
- getWorkflowsHandler,
850
- getWorkflowByIdHandler,
851
- getWorkflowRunByIdHandler,
852
- getWorkflowRunExecutionResultHandler,
853
- createWorkflowRunHandler,
854
- startAsyncWorkflowHandler,
855
- startWorkflowRunHandler,
856
- watchWorkflowHandler,
857
- streamWorkflowHandler,
858
- resumeAsyncWorkflowHandler,
859
- resumeWorkflowHandler,
860
- getWorkflowRunsHandler
861
- }
862
- }
863
-
864
- export { }