@mastra/voice-deepgram 0.13.0 → 0.13.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
@@ -1,10 +1,12 @@
1
1
  Portions of this software are licensed as follows:
2
2
 
3
- - All content that resides under any directory named "ee/" within this
3
+ - All content that resides under any directory named `ee/` within this
4
4
  repository, including but not limited to:
5
- - `packages/core/src/auth/ee/`
6
- - `packages/server/src/server/auth/ee/`
7
- is licensed under the license defined in `ee/LICENSE`.
5
+ - `@mastra/core/auth/ee`
6
+ - `@mastra/core/agent-builder/ee`
7
+ - `@mastra/editor/ee`
8
+
9
+ is licensed under the license defined in [`ee/LICENSE`](https://github.com/mastra-ai/mastra/blob/main/ee/LICENSE).
8
10
 
9
11
  - All third-party components incorporated into the Mastra Software are
10
12
  licensed under the original license provided by the owner of the
@@ -1,5 +1,4 @@
1
1
  import { JSONSchema7 } from 'json-schema';
2
- import { JSONSchema7Definition } from 'json-schema';
3
2
  import { ServerResponse } from 'node:http';
4
3
  import { ServerResponse as ServerResponse_2 } from 'http';
5
4
  import { z } from '../../zod/v4/index.d.cts';
@@ -112,76 +111,6 @@ export declare abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
112
111
  private makeRequest;
113
112
  }
114
113
 
115
- declare namespace _ai_sdk_provider {
116
- export {
117
- JSONSchema7,
118
- JSONSchema7Definition,
119
- AISDKError,
120
- APICallError,
121
- EmbeddingModelV2,
122
- EmbeddingModelV2Embedding,
123
- EmptyResponseBodyError,
124
- ImageModelV2,
125
- ImageModelV2CallOptions,
126
- ImageModelV2CallWarning,
127
- ImageModelV2ProviderMetadata,
128
- InvalidArgumentError_2 as InvalidArgumentError,
129
- InvalidPromptError,
130
- InvalidResponseDataError,
131
- JSONArray,
132
- JSONObject,
133
- JSONParseError,
134
- JSONValue_2 as JSONValue,
135
- LanguageModelV2,
136
- LanguageModelV2CallOptions,
137
- LanguageModelV2CallWarning,
138
- LanguageModelV2Content,
139
- LanguageModelV2DataContent,
140
- LanguageModelV2File,
141
- LanguageModelV2FilePart,
142
- LanguageModelV2FinishReason,
143
- LanguageModelV2FunctionTool,
144
- LanguageModelV2Message,
145
- LanguageModelV2Middleware,
146
- LanguageModelV2Prompt,
147
- LanguageModelV2ProviderDefinedTool,
148
- LanguageModelV2Reasoning,
149
- LanguageModelV2ReasoningPart,
150
- LanguageModelV2ResponseMetadata,
151
- LanguageModelV2Source,
152
- LanguageModelV2StreamPart,
153
- LanguageModelV2Text,
154
- LanguageModelV2TextPart,
155
- LanguageModelV2ToolCall,
156
- LanguageModelV2ToolCallPart,
157
- LanguageModelV2ToolChoice,
158
- LanguageModelV2ToolResultOutput,
159
- LanguageModelV2ToolResultPart,
160
- LanguageModelV2Usage,
161
- LoadAPIKeyError,
162
- LoadSettingError,
163
- NoContentGeneratedError,
164
- NoSuchModelError,
165
- ProviderV2,
166
- SharedV2Headers,
167
- SharedV2ProviderMetadata,
168
- SharedV2ProviderOptions,
169
- SpeechModelV2,
170
- SpeechModelV2CallOptions,
171
- SpeechModelV2CallWarning,
172
- TooManyEmbeddingValuesForCallError,
173
- TranscriptionModelV2,
174
- TranscriptionModelV2CallOptions,
175
- TranscriptionModelV2CallWarning,
176
- TypeValidationError,
177
- UnsupportedFunctionalityError,
178
- getErrorMessage_2 as getErrorMessage,
179
- isJSONArray,
180
- isJSONObject,
181
- isJSONValue
182
- }
183
- }
184
-
185
114
  declare namespace _ai_sdk_provider_utils {
186
115
  export {
187
116
  EventSourceMessage,
@@ -231,6 +160,7 @@ declare namespace _ai_sdk_provider_utils {
231
160
  Validator,
232
161
  asSchema,
233
162
  asValidator,
163
+ cancelResponseBody,
234
164
  combineHeaders,
235
165
  convertAsyncIteratorToReadableStream,
236
166
  convertBase64ToUint8Array,
@@ -249,13 +179,16 @@ declare namespace _ai_sdk_provider_utils {
249
179
  dynamicTool,
250
180
  executeTool,
251
181
  extractResponseHeaders,
182
+ fetchWithValidatedRedirects,
252
183
  generateId,
253
184
  getErrorMessage,
254
185
  getFromApi,
255
186
  getRuntimeEnvironmentUserAgent,
256
187
  injectJsonInstructionIntoMessages,
257
188
  isAbortError,
189
+ isBrowserRuntime,
258
190
  isParsableJson,
191
+ isSameOrigin,
259
192
  isUrlSupported,
260
193
  isValidator,
261
194
  jsonSchema,
@@ -494,6 +427,20 @@ export declare type CallSettings = {
494
427
  */
495
428
  export declare type CallWarning = LanguageModelV2CallWarning;
496
429
 
430
+ /**
431
+ * Cancels a response body to release the underlying connection.
432
+ *
433
+ * When a fetch Response is rejected without consuming its body (e.g. a failed
434
+ * status code, an open-redirect rejection, or a Content-Length that exceeds the
435
+ * size limit), the underlying TCP socket is not returned to the connection pool
436
+ * and may stay open until the process runs out of file descriptors. Cancelling
437
+ * the body avoids this leak.
438
+ *
439
+ * Errors thrown while cancelling are ignored: the body may already be locked,
440
+ * disturbed, or absent, none of which should mask the original rejection.
441
+ */
442
+ declare function cancelResponseBody(response: Response): Promise<void>;
443
+
497
444
  export declare interface ChatInit<UI_MESSAGE extends UIMessage> {
498
445
  /**
499
446
  * A unique identifier for the chat. If not provided, a random one will be
@@ -956,7 +903,21 @@ export declare type CreateUIMessage<UI_MESSAGE extends UIMessage> = Omit<UI_MESS
956
903
  role?: UI_MESSAGE['role'];
957
904
  };
958
905
 
959
- export declare function createUIMessageStream<UI_MESSAGE extends UIMessage>({ execute, onError, originalMessages, onFinish, generateId, }: {
906
+ /**
907
+ * Creates a UI message stream that can be used to send messages to the client.
908
+ *
909
+ * @param options.execute - A function that is called with a writer to write UI message chunks to the stream.
910
+ * @param options.onError - A function that extracts an error message from an error. Defaults to `() => 'An error occurred.'` so server-side error details are not leaked to the client; supply your own to surface richer messages.
911
+ * @param options.originalMessages - The original messages. If provided, persistence mode is assumed
912
+ * and a message ID is provided for the response message.
913
+ * @param options.onStepFinish - A callback that is called when each step finishes. Useful for persisting intermediate messages.
914
+ * @param options.onFinish - A callback that is called when the stream finishes.
915
+ * @param options.generateId - A function that generates a unique ID. Defaults to the built-in ID generator.
916
+ *
917
+ * @returns A `ReadableStream` of UI message chunks.
918
+ */
919
+ export declare function createUIMessageStream<UI_MESSAGE extends UIMessage>({ execute, onError, // prevent leaking server error details to the client by default
920
+ originalMessages, onFinish, generateId, }: {
960
921
  execute: (options: {
961
922
  writer: UIMessageStreamWriter<UI_MESSAGE>;
962
923
  }) => Promise<void> | void;
@@ -2129,6 +2090,36 @@ declare function extractResponseHeaders(response: Response): {
2129
2090
  */
2130
2091
  declare type FetchFunction = typeof globalThis.fetch;
2131
2092
 
2093
+ /**
2094
+ * Fetches a URL while enforcing the SSRF download guard on every hop.
2095
+ *
2096
+ * Redirects are followed manually (`redirect: 'manual'`) so each hop is
2097
+ * validated with {@link validateDownloadUrl} *before* it is requested. Relying
2098
+ * on the default `redirect: 'follow'` would issue the request to a redirect
2099
+ * target (e.g. an internal address) before we ever see its URL, defeating the
2100
+ * SSRF guard.
2101
+ *
2102
+ * A `redirect: 'manual'` request yields an unreadable opaque response in the
2103
+ * browser (and in other spec-compliant fetch implementations), so the redirect
2104
+ * target cannot be validated here. In a real browser this is safe to follow
2105
+ * natively because SSRF is not reachable (fetch is constrained by CORS and
2106
+ * cannot reach a server's internal network or cloud-metadata). On any other
2107
+ * runtime we cannot validate the hop, so we fail closed rather than follow it
2108
+ * blindly and bypass the SSRF guard.
2109
+ *
2110
+ * The returned response is the final (non-redirect) response. The caller is
2111
+ * responsible for checking `response.ok` and reading the body.
2112
+ *
2113
+ * @throws DownloadError if a hop is unsafe, the redirect limit is exceeded, or
2114
+ * a redirect cannot be validated on a non-browser runtime.
2115
+ */
2116
+ declare function fetchWithValidatedRedirects({ url, headers, abortSignal, maxRedirects, }: {
2117
+ url: string;
2118
+ headers?: HeadersInit;
2119
+ abortSignal?: AbortSignal;
2120
+ maxRedirects?: number;
2121
+ }): Promise<Response>;
2122
+
2132
2123
  /**
2133
2124
  File content part of a prompt. It contains a file.
2134
2125
  */
@@ -2261,7 +2252,7 @@ declare interface GatewayGenerationInfoParams {
2261
2252
  id: string;
2262
2253
  }
2263
2254
 
2264
- declare type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' | 'bfl/flux-pro-1.0-fill' | 'bfl/flux-pro-1.1' | 'bfl/flux-pro-1.1-ultra' | 'bytedance/seedream-4.0' | 'bytedance/seedream-4.5' | 'bytedance/seedream-5.0-lite' | 'google/imagen-4.0-fast-generate-001' | 'google/imagen-4.0-generate-001' | 'google/imagen-4.0-ultra-generate-001' | 'openai/gpt-image-1' | 'openai/gpt-image-1-mini' | 'openai/gpt-image-1.5' | 'openai/gpt-image-2' | 'prodia/flux-fast-schnell' | 'recraft/recraft-v2' | 'recraft/recraft-v3' | 'recraft/recraft-v4' | 'recraft/recraft-v4-pro' | 'xai/grok-imagine-image' | 'xai/grok-imagine-image-pro' | (string & {});
2255
+ declare type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' | 'bfl/flux-pro-1.0-fill' | 'bfl/flux-pro-1.1' | 'bfl/flux-pro-1.1-ultra' | 'bytedance/seedream-4.0' | 'bytedance/seedream-4.5' | 'bytedance/seedream-5.0-lite' | 'bytedance/seedream-5.0-pro' | 'google/imagen-4.0-fast-generate-001' | 'google/imagen-4.0-generate-001' | 'google/imagen-4.0-ultra-generate-001' | 'openai/gpt-image-1' | 'openai/gpt-image-1-mini' | 'openai/gpt-image-1.5' | 'openai/gpt-image-2' | 'prodia/flux-fast-schnell' | 'quiverai/arrow-1.1' | 'recraft/recraft-v2' | 'recraft/recraft-v3' | 'recraft/recraft-v4' | 'recraft/recraft-v4-pro' | 'recraft/recraft-v4.1' | 'recraft/recraft-v4.1-pro' | 'recraft/recraft-v4.1-utility' | 'recraft/recraft-v4.1-utility-pro' | 'xai/grok-imagine-image' | (string & {});
2265
2256
 
2266
2257
  declare interface GatewayLanguageModelEntry {
2267
2258
  /**
@@ -2312,7 +2303,7 @@ declare interface GatewayLanguageModelEntry {
2312
2303
 
2313
2304
  declare type GatewayLanguageModelSpecification = Pick<LanguageModelV2, 'specificationVersion' | 'provider' | 'modelId'>;
2314
2305
 
2315
- export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'arcee-ai/trinity-large-preview' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3-pro-preview' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite-preview' | 'google/gemini-3.1-pro-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking-2601' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-code-fast-1' | 'xiaomi/mimo-v2-flash' | 'xiaomi/mimo-v2-pro' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5v-turbo' | (string & {});
2306
+ export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-fable-5' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-5' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3-pro-preview' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.5-flash' | 'google/gemini-3.5-flash-lite' | 'google/gemini-3.6-flash' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'inclusionai/ling-3.0-flash-free' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-air-v2.5' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'kwaipilot/kat-coder-pro-v2.5' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-spark-1.1' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'moonshotai/kimi-k3-fast' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-terra' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'poolside/laguna-s-2.1' | 'poolside/laguna-s-2.1-free' | 'sakana/fugu-ultra' | 'stepfun/step-3.5-flash' | 'stepfun/step-3.7-flash' | 'tencent/hy3' | 'thinkingmachines/inkling' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-4.5' | 'xai/grok-build-0.1' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5v-turbo' | (string & {});
2316
2307
 
2317
2308
  declare interface GatewayProvider extends ProviderV2 {
2318
2309
  (modelId: GatewayModelId): LanguageModelV2;
@@ -2814,7 +2805,9 @@ export declare interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT> {
2814
2805
  */
2815
2806
  readonly content: Array<ContentPart<TOOLS>>;
2816
2807
  /**
2817
- The text that was generated in the last step.
2808
+ The concatenation of all text parts generated in the last step.
2809
+ It is an empty string if the last step contains no text parts.
2810
+ Inspect `content` to distinguish that case.
2818
2811
  */
2819
2812
  readonly text: string;
2820
2813
  /**
@@ -2918,8 +2911,6 @@ export declare interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT> {
2918
2911
 
2919
2912
  declare function getErrorMessage(error: unknown | undefined): string;
2920
2913
 
2921
- declare function getErrorMessage_2(error: unknown | undefined): string;
2922
-
2923
2914
  declare const getFromApi: <T>({ url, headers, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, }: {
2924
2915
  url: string;
2925
2916
  headers?: Record<string, string | undefined>;
@@ -3335,20 +3326,6 @@ export declare class InvalidArgumentError extends AISDKError {
3335
3326
  static isInstance(error: unknown): error is InvalidArgumentError;
3336
3327
  }
3337
3328
 
3338
- /**
3339
- * A function argument is invalid.
3340
- */
3341
- declare class InvalidArgumentError_2 extends AISDKError {
3342
- private readonly [symbol$a_2];
3343
- readonly argument: string;
3344
- constructor({ message, cause, argument, }: {
3345
- argument: string;
3346
- message: string;
3347
- cause?: unknown;
3348
- });
3349
- static isInstance(error: unknown): error is InvalidArgumentError_2;
3350
- }
3351
-
3352
3329
  export declare class InvalidDataContentError extends AISDKError {
3353
3330
  private readonly [symbol$5_2];
3354
3331
  readonly content: unknown;
@@ -3424,6 +3401,16 @@ export declare class InvalidToolInputError extends AISDKError {
3424
3401
 
3425
3402
  declare function isAbortError(error: unknown): error is Error;
3426
3403
 
3404
+ /**
3405
+ * Returns `true` when running in a browser.
3406
+ *
3407
+ * Detection keys on the presence of a global `window`, matching the browser
3408
+ * check used elsewhere in this package (see `getRuntimeEnvironmentUserAgent`)
3409
+ * so the SDK has a single, consistent definition of "browser". Server runtimes
3410
+ * (Node.js, Deno, Bun, edge/workers) do not define `window`.
3411
+ */
3412
+ declare function isBrowserRuntime(globalThisAny?: any): boolean;
3413
+
3427
3414
  /**
3428
3415
  * Check if a message part is a data part.
3429
3416
  */
@@ -3443,12 +3430,6 @@ export declare function isDeepEqualData(obj1: any, obj2: any): boolean;
3443
3430
  */
3444
3431
  export declare function isFileUIPart(part: UIMessagePart<UIDataTypes, UITools>): part is FileUIPart;
3445
3432
 
3446
- declare function isJSONArray(value: unknown): value is JSONArray;
3447
-
3448
- declare function isJSONObject(value: unknown): value is JSONObject;
3449
-
3450
- declare function isJSONValue(value: unknown): value is JSONValue_2;
3451
-
3452
3433
  declare function isParsableJson(input: string): boolean;
3453
3434
 
3454
3435
  /**
@@ -3456,6 +3437,20 @@ declare function isParsableJson(input: string): boolean;
3456
3437
  */
3457
3438
  export declare function isReasoningUIPart(part: UIMessagePart<UIDataTypes, UITools>): part is ReasoningUIPart;
3458
3439
 
3440
+ /**
3441
+ * Returns true when `url` has the same origin (scheme + host + port) as
3442
+ * `baseUrl`.
3443
+ *
3444
+ * Used to decide whether provider credentials may be attached to a request to a
3445
+ * URL taken from a provider response (e.g. a polling or media-download URL).
3446
+ * Credentials must only be sent to the provider's own origin; a response that
3447
+ * names a foreign host (a CDN, or an attacker-controlled host if the response
3448
+ * is tampered with) must not receive the API key.
3449
+ *
3450
+ * Returns false if either value is not a valid absolute URL (fail-closed).
3451
+ */
3452
+ declare function isSameOrigin(url: string, baseUrl: string): boolean;
3453
+
3459
3454
  /**
3460
3455
  * Type guard to check if a message part is a text part.
3461
3456
  */
@@ -5092,12 +5087,12 @@ declare const perplexitySearchToolFactory: _ai_sdk_provider_utils.ProviderDefine
5092
5087
  export declare function pipeTextStreamToResponse({ response, status, statusText, headers, textStream, }: {
5093
5088
  response: ServerResponse;
5094
5089
  textStream: ReadableStream<string>;
5095
- } & ResponseInit): void;
5090
+ } & ResponseInit): Promise<void>;
5096
5091
 
5097
5092
  export declare function pipeUIMessageStreamToResponse({ response, status, statusText, headers, stream, consumeSseStream, }: {
5098
5093
  response: ServerResponse;
5099
5094
  stream: ReadableStream<UIMessageChunk>;
5100
- } & UIMessageStreamResponseInit): void;
5095
+ } & UIMessageStreamResponseInit): Promise<void>;
5101
5096
 
5102
5097
  declare const postFormDataToApi: <T>({ url, headers, formData, failedResponseHandler, successfulResponseHandler, abortSignal, fetch, }: {
5103
5098
  url: string;
@@ -6474,7 +6469,8 @@ export declare type StepResult<TOOLS extends ToolSet> = {
6474
6469
  */
6475
6470
  readonly content: Array<ContentPart<TOOLS>>;
6476
6471
  /**
6477
- The generated text.
6472
+ The concatenation of all text parts generated in this step.
6473
+ It is an empty string if the step contains no text parts.
6478
6474
  */
6479
6475
  readonly text: string;
6480
6476
  /**
@@ -6806,7 +6802,7 @@ export declare interface StreamObjectResult<PARTIAL, RESULT, ELEMENT_STREAM> {
6806
6802
  @param response A Node.js response-like object (ServerResponse).
6807
6803
  @param init Optional headers, status code, and status text.
6808
6804
  */
6809
- pipeTextStreamToResponse(response: ServerResponse_2, init?: ResponseInit): void;
6805
+ pipeTextStreamToResponse(response: ServerResponse_2, init?: ResponseInit): Promise<void>;
6810
6806
  /**
6811
6807
  Creates a simple text stream response.
6812
6808
  The response has a `Content-Type` header set to `text/plain; charset=utf-8`.
@@ -7209,8 +7205,8 @@ export declare interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT>
7209
7205
  readonly providerMetadata: Promise<ProviderMetadata | undefined>;
7210
7206
  /**
7211
7207
  A text stream that returns only the generated text deltas. You can use it
7212
- as either an AsyncIterable or a ReadableStream. When an error occurs, the
7213
- stream will throw the error.
7208
+ as either an AsyncIterable or a ReadableStream. Error parts are not surfaced
7209
+ in this stream. Use the `onError` callback or `fullStream` to observe them.
7214
7210
  */
7215
7211
  readonly textStream: AsyncIterableStream<string>;
7216
7212
  /**
@@ -7242,7 +7238,7 @@ export declare interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT>
7242
7238
  /**
7243
7239
  *Writes UI message stream output to a Node.js response-like object.
7244
7240
  */
7245
- pipeUIMessageStreamToResponse<UI_MESSAGE extends UIMessage>(response: ServerResponse, options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): void;
7241
+ pipeUIMessageStreamToResponse<UI_MESSAGE extends UIMessage>(response: ServerResponse, options?: UIMessageStreamResponseInit & UIMessageStreamOptions<UI_MESSAGE>): Promise<void>;
7246
7242
  /**
7247
7243
  Writes text delta output to a Node.js response-like object.
7248
7244
  It sets a `Content-Type` header to `text/plain; charset=utf-8` and
@@ -7251,7 +7247,7 @@ export declare interface StreamTextResult<TOOLS extends ToolSet, PARTIAL_OUTPUT>
7251
7247
  @param response A Node.js response-like object (ServerResponse).
7252
7248
  @param init Optional headers, status code, and status text.
7253
7249
  */
7254
- pipeTextStreamToResponse(response: ServerResponse, init?: ResponseInit): void;
7250
+ pipeTextStreamToResponse(response: ServerResponse, init?: ResponseInit): Promise<void>;
7255
7251
  /**
7256
7252
  Converts the result to a streamed response object with a stream data part stream.
7257
7253
 
@@ -7316,8 +7312,6 @@ declare const symbol$9_2: unique symbol;
7316
7312
 
7317
7313
  declare const symbol$a: unique symbol;
7318
7314
 
7319
- declare const symbol$a_2: unique symbol;
7320
-
7321
7315
  declare const symbol$b: unique symbol;
7322
7316
 
7323
7317
  declare const symbol$b_2: unique symbol;
@@ -7549,8 +7543,8 @@ export declare type Tool<INPUT extends JSONValue_2 | unknown | never = any, OUTP
7549
7543
  */
7550
7544
  inputSchema: FlexibleSchema<INPUT>;
7551
7545
  /**
7552
- * Optional function that is called when the argument streaming starts.
7553
- * Only called when the tool is used in a streaming context.
7546
+ * Optional function that is called when the model starts generating the tool input.
7547
+ * In non-streaming contexts, it is called immediately before `onInputAvailable`.
7554
7548
  */
7555
7549
  onInputStart?: (options: ToolCallOptions) => void | PromiseLike<void>;
7556
7550
  /**
@@ -8336,116 +8330,7 @@ export declare type UIMessageChunk<METADATA = unknown, DATA_TYPES extends UIData
8336
8330
  messageMetadata: METADATA;
8337
8331
  };
8338
8332
 
8339
- export declare const uiMessageChunkSchema: _ai_sdk_provider_utils.LazyValidator<{
8340
- type: "text-start";
8341
- id: string;
8342
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8343
- } | {
8344
- type: "text-delta";
8345
- id: string;
8346
- delta: string;
8347
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8348
- } | {
8349
- type: "text-end";
8350
- id: string;
8351
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8352
- } | {
8353
- type: "error";
8354
- errorText: string;
8355
- } | {
8356
- type: "tool-input-start";
8357
- toolCallId: string;
8358
- toolName: string;
8359
- providerExecuted?: boolean | undefined;
8360
- dynamic?: boolean | undefined;
8361
- } | {
8362
- type: "tool-input-delta";
8363
- toolCallId: string;
8364
- inputTextDelta: string;
8365
- } | {
8366
- type: "tool-input-available";
8367
- toolCallId: string;
8368
- toolName: string;
8369
- input: unknown;
8370
- providerExecuted?: boolean | undefined;
8371
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8372
- dynamic?: boolean | undefined;
8373
- } | {
8374
- type: "tool-input-error";
8375
- toolCallId: string;
8376
- toolName: string;
8377
- input: unknown;
8378
- errorText: string;
8379
- providerExecuted?: boolean | undefined;
8380
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8381
- dynamic?: boolean | undefined;
8382
- } | {
8383
- type: "tool-output-available";
8384
- toolCallId: string;
8385
- output: unknown;
8386
- providerExecuted?: boolean | undefined;
8387
- dynamic?: boolean | undefined;
8388
- preliminary?: boolean | undefined;
8389
- } | {
8390
- type: "tool-output-error";
8391
- toolCallId: string;
8392
- errorText: string;
8393
- providerExecuted?: boolean | undefined;
8394
- dynamic?: boolean | undefined;
8395
- } | {
8396
- type: "reasoning-start";
8397
- id: string;
8398
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8399
- } | {
8400
- type: "reasoning-delta";
8401
- id: string;
8402
- delta: string;
8403
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8404
- } | {
8405
- type: "reasoning-end";
8406
- id: string;
8407
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8408
- } | {
8409
- type: "source-url";
8410
- sourceId: string;
8411
- url: string;
8412
- title?: string | undefined;
8413
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8414
- } | {
8415
- type: "source-document";
8416
- sourceId: string;
8417
- mediaType: string;
8418
- title: string;
8419
- filename?: string | undefined;
8420
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8421
- } | {
8422
- type: "file";
8423
- url: string;
8424
- mediaType: string;
8425
- providerMetadata?: _ai_sdk_provider.SharedV2ProviderMetadata | undefined;
8426
- } | {
8427
- type: `data-${string}`;
8428
- data: unknown;
8429
- id?: string | undefined;
8430
- transient?: boolean | undefined;
8431
- } | {
8432
- type: "start-step";
8433
- } | {
8434
- type: "finish-step";
8435
- } | {
8436
- type: "start";
8437
- messageId?: string | undefined;
8438
- messageMetadata?: unknown;
8439
- } | {
8440
- type: "finish";
8441
- finishReason?: "other" | "length" | "unknown" | "error" | "stop" | "content-filter" | "tool-calls" | undefined;
8442
- messageMetadata?: unknown;
8443
- } | {
8444
- type: "abort";
8445
- } | {
8446
- type: "message-metadata";
8447
- messageMetadata: unknown;
8448
- }>;
8333
+ export declare const uiMessageChunkSchema: _ai_sdk_provider_utils.LazyValidator<UIMessageChunk<unknown, UIDataTypes>>;
8449
8334
 
8450
8335
  export declare type UIMessagePart<DATA_TYPES extends UIDataTypes, TOOLS extends UITools> = TextUIPart | ReasoningUIPart | ToolUIPart<TOOLS> | DynamicToolUIPart | SourceUrlUIPart | SourceDocumentUIPart | FileUIPart | DataUIPart<DATA_TYPES> | StepStartUIPart;
8451
8336
 
@@ -8714,6 +8599,10 @@ export declare const userModelMessageSchema: z.ZodType<UserModelMessage>;
8714
8599
  * Validates that a URL is safe to download from, blocking private/internal addresses
8715
8600
  * to prevent SSRF attacks.
8716
8601
  *
8602
+ * Note: this performs string/literal-IP checks only. It does not resolve DNS, so a
8603
+ * hostname that resolves to a private address is not blocked here (see callers, which
8604
+ * should additionally constrain egress at the network layer when handling untrusted URLs).
8605
+ *
8717
8606
  * @param url - The URL string to validate.
8718
8607
  * @throws DownloadError if the URL is unsafe.
8719
8608
  */
@@ -8887,5 +8776,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
8887
8776
  }): Schema<OBJECT>;
8888
8777
 
8889
8778
  export { }
8890
- export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, FlexibleValidator as FlexibleValidator, ValidationResult as ValidationResult, LanguageModelV2ToolResultOutput as LanguageModelV2ToolResultOutput, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, LanguageModelV2ToolResultPart as LanguageModelV2ToolResultPart, FlexibleSchema as FlexibleSchema, ImageModelV2CallWarning as ImageModelV2CallWarning, SpeechModelV2CallWarning as SpeechModelV2CallWarning, TranscriptionModelV2CallWarning as TranscriptionModelV2CallWarning, AttributeValue as AttributeValue, Tracer as Tracer, EmbeddingModelV2Embedding as EmbeddingModelV2Embedding, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2FinishReason as LanguageModelV2FinishReason, LanguageModelV2CallWarning as LanguageModelV2CallWarning, LanguageModelV2Middleware as LanguageModelV2Middleware, SharedV2ProviderMetadata as SharedV2ProviderMetadata, LanguageModelV2Usage as LanguageModelV2Usage, Source as Source, ResponseMessage as ResponseMessage, DeepPartialInternal as DeepPartialInternal, LanguageModelV2ToolCall as LanguageModelV2ToolCall, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ValueOf as ValueOf, asUITool as asUITool, _ai_sdk_provider_utils as _ai_sdk_provider_utils, _ai_sdk_provider as _ai_sdk_provider, DataUIMessageChunk as DataUIMessageChunk, ConsumeStreamOptions as ConsumeStreamOptions, Output_2 as Output_2, InferAgentTools as InferAgentTools, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, InferSchema as InferSchema, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, JSONValue_2 as JSONValue_2, LanguageModelV2CallOptions as LanguageModelV2CallOptions, LanguageModelV2 as LanguageModelV2, EmbeddingModelV2 as EmbeddingModelV2, ImageModelV2 as ImageModelV2, TranscriptionModelV2 as TranscriptionModelV2, SpeechModelV2 as SpeechModelV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV2 as ProviderV2, getOriginalFetch as getOriginalFetch, UIMessageStreamResponseInit as UIMessageStreamResponseInit, InferUIMessageToolCall as InferUIMessageToolCall, Validator as Validator, StandardSchemaV1 as StandardSchemaV1, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, InferUIMessageTools as InferUIMessageTools, Resolvable as Resolvable, FetchFunction as FetchFunction };
8891
- export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$a_2, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol, symbol_2, symbol_3, validatorSymbol };
8779
+ export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, FlexibleValidator as FlexibleValidator, ValidationResult as ValidationResult, LanguageModelV2ToolResultOutput as LanguageModelV2ToolResultOutput, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, LanguageModelV2ToolResultPart as LanguageModelV2ToolResultPart, FlexibleSchema as FlexibleSchema, ImageModelV2CallWarning as ImageModelV2CallWarning, SpeechModelV2CallWarning as SpeechModelV2CallWarning, TranscriptionModelV2CallWarning as TranscriptionModelV2CallWarning, AttributeValue as AttributeValue, Tracer as Tracer, EmbeddingModelV2Embedding as EmbeddingModelV2Embedding, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2FinishReason as LanguageModelV2FinishReason, LanguageModelV2CallWarning as LanguageModelV2CallWarning, LanguageModelV2Middleware as LanguageModelV2Middleware, SharedV2ProviderMetadata as SharedV2ProviderMetadata, LanguageModelV2Usage as LanguageModelV2Usage, Source as Source, ResponseMessage as ResponseMessage, DeepPartialInternal as DeepPartialInternal, LanguageModelV2ToolCall as LanguageModelV2ToolCall, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ValueOf as ValueOf, asUITool as asUITool, _ai_sdk_provider_utils as _ai_sdk_provider_utils, DataUIMessageChunk as DataUIMessageChunk, ConsumeStreamOptions as ConsumeStreamOptions, Output_2 as Output_2, InferAgentTools as InferAgentTools, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, InferSchema as InferSchema, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, JSONValue_2 as JSONValue_2, LanguageModelV2CallOptions as LanguageModelV2CallOptions, LanguageModelV2 as LanguageModelV2, EmbeddingModelV2 as EmbeddingModelV2, ImageModelV2 as ImageModelV2, TranscriptionModelV2 as TranscriptionModelV2, SpeechModelV2 as SpeechModelV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV2 as ProviderV2, getOriginalFetch as getOriginalFetch, UIMessageStreamResponseInit as UIMessageStreamResponseInit, InferUIMessageToolCall as InferUIMessageToolCall, Validator as Validator, StandardSchemaV1 as StandardSchemaV1, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, InferUIMessageTools as InferUIMessageTools, Resolvable as Resolvable, FetchFunction as FetchFunction };
8780
+ export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol, symbol_2, symbol_3, validatorSymbol };
@@ -1,31 +1,31 @@
1
- import { RegisteredLogger, IMastraLogger } from '../logger/index.js';
2
- import 'node:stream';
3
-
1
+ import { i as IMastraLogger, u as RegisteredLogger } from "../index-Biaf3BmX.js";
2
+ //#region src/base/MastraBase.d.ts
4
3
  declare class MastraBase {
5
- #private;
6
- component: RegisteredLogger;
7
- protected logger: IMastraLogger;
4
+ #private;
5
+ component: RegisteredLogger;
6
+ protected logger: IMastraLogger;
7
+ name?: string;
8
+ constructor({ component, name, rawConfig }: {
9
+ component?: RegisteredLogger;
8
10
  name?: string;
9
- constructor({ component, name, rawConfig, }: {
10
- component?: RegisteredLogger;
11
- name?: string;
12
- rawConfig?: Record<string, unknown>;
13
- });
14
- /**
15
- * Returns the raw storage configuration this primitive was created from,
16
- * or undefined if it was created from code.
17
- */
18
- toRawConfig(): Record<string, unknown> | undefined;
19
- /**
20
- * Sets the raw storage configuration for this primitive.
21
- * @internal
22
- */
23
- __setRawConfig(rawConfig: Record<string, unknown>): void;
24
- /**
25
- * Set the logger for the agent
26
- * @param logger
27
- */
28
- __setLogger(logger: IMastraLogger): void;
11
+ rawConfig?: Record<string, unknown>;
12
+ });
13
+ /**
14
+ * Returns the raw storage configuration this primitive was created from,
15
+ * or undefined if it was created from code.
16
+ */
17
+ toRawConfig(): Record<string, unknown> | undefined;
18
+ /**
19
+ * Sets the raw storage configuration for this primitive.
20
+ * @internal
21
+ */
22
+ __setRawConfig(rawConfig: Record<string, unknown>): void;
23
+ /**
24
+ * Set the logger for the agent
25
+ * @param logger
26
+ */
27
+ __setLogger(logger: IMastraLogger): void;
29
28
  }
30
-
29
+ //#endregion
31
30
  export { MastraBase };
31
+ //# sourceMappingURL=index.d.ts.map