@mastra/schema-compat 1.2.10-alpha.0 → 1.2.11-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.
Files changed (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +2 -160
  3. package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +13 -171
  4. package/dist/_types/@internal_ai-v6/dist/index.d.ts +28 -165
  5. package/dist/_types/@standard-schema_spec/dist/index.d.ts +119 -0
  6. package/dist/_types/@types_json-schema/index.d.ts +749 -0
  7. package/dist/{chunk-MARLM5PM.cjs → chunk-B6ZU4MU5.cjs} +508 -508
  8. package/dist/chunk-B6ZU4MU5.cjs.map +1 -0
  9. package/dist/{chunk-JO4RRSYO.cjs → chunk-BQ3VTMIR.cjs} +4 -4
  10. package/dist/{chunk-JO4RRSYO.cjs.map → chunk-BQ3VTMIR.cjs.map} +1 -1
  11. package/dist/{chunk-7ZCSAPV3.js → chunk-ECLNT3TQ.js} +3 -2
  12. package/dist/chunk-ECLNT3TQ.js.map +1 -0
  13. package/dist/{chunk-K73KZRCA.js → chunk-H72LBCXW.js} +4 -4
  14. package/dist/{chunk-K73KZRCA.js.map → chunk-H72LBCXW.js.map} +1 -1
  15. package/dist/{chunk-UFJG5KPA.cjs → chunk-LQOEEQF6.cjs} +3 -2
  16. package/dist/chunk-LQOEEQF6.cjs.map +1 -0
  17. package/dist/{chunk-KGSZKLQN.js → chunk-MXN3UURE.js} +506 -506
  18. package/dist/chunk-MXN3UURE.js.map +1 -0
  19. package/dist/{chunk-DLZFWLZ2.js → chunk-QFEMCRFS.js} +3 -3
  20. package/dist/{chunk-DLZFWLZ2.js.map → chunk-QFEMCRFS.js.map} +1 -1
  21. package/dist/{chunk-3MLZICLP.cjs → chunk-SKPYVQBT.cjs} +4 -4
  22. package/dist/chunk-SKPYVQBT.cjs.map +1 -0
  23. package/dist/{chunk-K7I3YXWP.js → chunk-Y4VRRNL5.js} +4 -4
  24. package/dist/chunk-Y4VRRNL5.js.map +1 -0
  25. package/dist/{chunk-Q6XZFGLX.cjs → chunk-ZRSV37SF.cjs} +6 -6
  26. package/dist/{chunk-Q6XZFGLX.cjs.map → chunk-ZRSV37SF.cjs.map} +1 -1
  27. package/dist/index.cjs +129 -36
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.js +101 -8
  30. package/dist/index.js.map +1 -1
  31. package/dist/json-schema.d.ts +2 -2
  32. package/dist/provider-compats/anthropic.d.ts +1 -1
  33. package/dist/provider-compats/deepseek.d.ts +1 -1
  34. package/dist/provider-compats/google.d.ts.map +1 -1
  35. package/dist/provider-compats/meta.d.ts +1 -1
  36. package/dist/schema.cjs +7 -7
  37. package/dist/schema.js +1 -1
  38. package/dist/schema.types.d.ts +3 -3
  39. package/dist/standard-schema/adapters/ai-sdk.d.ts +1 -1
  40. package/dist/standard-schema/adapters/json-schema.cjs +3 -3
  41. package/dist/standard-schema/adapters/json-schema.js +1 -1
  42. package/dist/standard-schema/adapters/zod-v3.cjs +2 -2
  43. package/dist/standard-schema/adapters/zod-v3.js +1 -1
  44. package/dist/standard-schema/adapters/zod-v4.d.ts +1 -1
  45. package/dist/standard-schema/standard-schema.d.ts +1 -1
  46. package/dist/standard-schema/standard-schema.types.d.ts +1 -1
  47. package/dist/zod-to-json.cjs +4 -4
  48. package/dist/zod-to-json.d.ts.map +1 -1
  49. package/dist/zod-to-json.js +1 -1
  50. package/package.json +12 -12
  51. package/dist/chunk-3MLZICLP.cjs.map +0 -1
  52. package/dist/chunk-7ZCSAPV3.js.map +0 -1
  53. package/dist/chunk-K7I3YXWP.js.map +0 -1
  54. package/dist/chunk-KGSZKLQN.js.map +0 -1
  55. package/dist/chunk-MARLM5PM.cjs.map +0 -1
  56. package/dist/chunk-UFJG5KPA.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/schema-compat
2
2
 
3
+ ## 1.2.11-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed Gemini REST tool calls failing for `z.discriminatedUnion`, `z.lazy`, and `z.tuple` inputs. `GoogleSchemaCompatLayer` now rewrites JSON Schema 2020-12 keywords into the OpenAPI 3.0 Schema Object subset that Gemini expects: `oneOf` → `anyOf`, `const` → `enum`, tuple `items: [array]` → `items: { anyOf: [...] }`, nullable `anyOf` collapse, `$ref` inlining with recursive schema support, and stripping of `$schema`/`additionalProperties`/`propertyNames`. Fixes #17057. ([#17179](https://github.com/mastra-ai/mastra/pull/17179))
8
+
9
+ - Fixed Zod 4 schemas with `.transform()` producing the wrong JSON Schema for structured output and tool calling. The generated schema now describes the pre-transform input the model must produce instead of the post-transform output, so a field like `z.string().transform(JSON.parse)` is advertised as a `string` rather than `string | number | boolean | null`. ([#17357](https://github.com/mastra-ai/mastra/pull/17357))
10
+
11
+ ## 1.2.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Fixed Google-compatible schema conversion so Gemini accepts broad nullable tool parameters. ([#16129](https://github.com/mastra-ai/mastra/pull/16129))
16
+
3
17
  ## 1.2.10-alpha.0
4
18
 
5
19
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ import { JSONSchema7 } from '../../@types_json-schema/index.d.ts';
1
2
  import { ServerResponse } from 'http';
2
3
  import { ServerResponse as ServerResponse_2 } from 'node:http';
3
4
  import { z } from 'zod';
@@ -3324,165 +3325,6 @@ export declare function jsonSchema<OBJECT = unknown>(jsonSchema: JSONSchema7, {
3324
3325
  };
3325
3326
  }): Schema<OBJECT>;
3326
3327
 
3327
- declare interface JSONSchema7 {
3328
- $id?: string | undefined;
3329
- $ref?: string | undefined;
3330
- $schema?: JSONSchema7Version | undefined;
3331
- $comment?: string | undefined;
3332
-
3333
- /**
3334
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
3335
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
3336
- */
3337
- $defs?: {
3338
- [key: string]: JSONSchema7Definition;
3339
- } | undefined;
3340
-
3341
- /**
3342
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
3343
- */
3344
- type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
3345
- enum?: JSONSchema7Type[] | undefined;
3346
- const?: JSONSchema7Type | undefined;
3347
-
3348
- /**
3349
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
3350
- */
3351
- multipleOf?: number | undefined;
3352
- maximum?: number | undefined;
3353
- exclusiveMaximum?: number | undefined;
3354
- minimum?: number | undefined;
3355
- exclusiveMinimum?: number | undefined;
3356
-
3357
- /**
3358
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
3359
- */
3360
- maxLength?: number | undefined;
3361
- minLength?: number | undefined;
3362
- pattern?: string | undefined;
3363
-
3364
- /**
3365
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
3366
- */
3367
- items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
3368
- additionalItems?: JSONSchema7Definition | undefined;
3369
- maxItems?: number | undefined;
3370
- minItems?: number | undefined;
3371
- uniqueItems?: boolean | undefined;
3372
- contains?: JSONSchema7Definition | undefined;
3373
-
3374
- /**
3375
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
3376
- */
3377
- maxProperties?: number | undefined;
3378
- minProperties?: number | undefined;
3379
- required?: string[] | undefined;
3380
- properties?: {
3381
- [key: string]: JSONSchema7Definition;
3382
- } | undefined;
3383
- patternProperties?: {
3384
- [key: string]: JSONSchema7Definition;
3385
- } | undefined;
3386
- additionalProperties?: JSONSchema7Definition | undefined;
3387
- dependencies?: {
3388
- [key: string]: JSONSchema7Definition | string[];
3389
- } | undefined;
3390
- propertyNames?: JSONSchema7Definition | undefined;
3391
-
3392
- /**
3393
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
3394
- */
3395
- if?: JSONSchema7Definition | undefined;
3396
- then?: JSONSchema7Definition | undefined;
3397
- else?: JSONSchema7Definition | undefined;
3398
-
3399
- /**
3400
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
3401
- */
3402
- allOf?: JSONSchema7Definition[] | undefined;
3403
- anyOf?: JSONSchema7Definition[] | undefined;
3404
- oneOf?: JSONSchema7Definition[] | undefined;
3405
- not?: JSONSchema7Definition | undefined;
3406
-
3407
- /**
3408
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
3409
- */
3410
- format?: string | undefined;
3411
-
3412
- /**
3413
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
3414
- */
3415
- contentMediaType?: string | undefined;
3416
- contentEncoding?: string | undefined;
3417
-
3418
- /**
3419
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
3420
- */
3421
- definitions?: {
3422
- [key: string]: JSONSchema7Definition;
3423
- } | undefined;
3424
-
3425
- /**
3426
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
3427
- */
3428
- title?: string | undefined;
3429
- description?: string | undefined;
3430
- default?: JSONSchema7Type | undefined;
3431
- readOnly?: boolean | undefined;
3432
- writeOnly?: boolean | undefined;
3433
- examples?: JSONSchema7Type | undefined;
3434
- }
3435
-
3436
- declare interface JSONSchema7Array extends Array<JSONSchema7Type> {}
3437
-
3438
- /**
3439
- * JSON Schema v7
3440
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
3441
- */
3442
- declare type JSONSchema7Definition = JSONSchema7 | boolean;
3443
-
3444
- declare interface JSONSchema7Object {
3445
- [key: string]: JSONSchema7Type;
3446
- }
3447
-
3448
- /**
3449
- * Primitive type
3450
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
3451
- */
3452
- declare type JSONSchema7Type =
3453
- | string //
3454
- | number
3455
- | boolean
3456
- | JSONSchema7Object
3457
- | JSONSchema7Array
3458
- | null;
3459
-
3460
- /**
3461
- * Primitive type
3462
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
3463
- */
3464
- declare type JSONSchema7TypeName =
3465
- | "string" //
3466
- | "number"
3467
- | "integer"
3468
- | "boolean"
3469
- | "object"
3470
- | "array"
3471
- | "null";
3472
-
3473
- /**
3474
- * Meta schema
3475
- *
3476
- * Recommended values:
3477
- * - 'http://json-schema.org/schema#'
3478
- * - 'http://json-schema.org/hyper-schema#'
3479
- * - 'http://json-schema.org/draft-07/schema#'
3480
- * - 'http://json-schema.org/draft-07/hyper-schema#'
3481
- *
3482
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
3483
- */
3484
- declare type JSONSchema7Version = string;
3485
-
3486
3328
  /**
3487
3329
  A JSON value can be a string, number, boolean, object, array, or null.
3488
3330
  JSON values can be serialized and deserialized by the JSON.stringify and JSON.parse methods.
@@ -7605,4 +7447,4 @@ export declare function zodSchema<OBJECT>(zodSchema: z.Schema<OBJECT, z.ZodTypeD
7605
7447
  }): Schema<OBJECT>;
7606
7448
 
7607
7449
  export { }
7608
- export { LanguageModelV1Message as LanguageModelV1Message, LanguageModelV1CallSettings as LanguageModelV1CallSettings, LanguageModelV1FunctionTool as LanguageModelV1FunctionTool, LanguageModelV1ProviderDefinedTool as LanguageModelV1ProviderDefinedTool, LanguageModelV1ToolChoice as LanguageModelV1ToolChoice, LanguageModelV1ObjectGenerationMode as LanguageModelV1ObjectGenerationMode, LanguageModelV1FunctionToolCall as LanguageModelV1FunctionToolCall, LanguageModelV1Source as LanguageModelV1Source, LanguageModelV1LogProbs as LanguageModelV1LogProbs, FetchFunction as FetchFunction, TextUIPart as TextUIPart, ReasoningUIPart as ReasoningUIPart, ToolInvocationUIPart as ToolInvocationUIPart, SourceUIPart as SourceUIPart, FileUIPart as FileUIPart, StepStartUIPart as StepStartUIPart, AssistantStreamPartType as AssistantStreamPartType, AssistantStreamPartValueType as AssistantStreamPartValueType, AssistantStreamString as AssistantStreamString, DataStreamPartType as DataStreamPartType, DataStreamPartValueType as DataStreamPartValueType, DeepPartialInternal as DeepPartialInternal, Validator as Validator, JSONSchema7 as JSONSchema7, LanguageModelV1FinishReason as LanguageModelV1FinishReason, LanguageModelV1CallWarning as LanguageModelV1CallWarning, JSONValue_2 as JSONValue_2, Source as Source, DataStreamString as DataStreamString, AttributeValue as AttributeValue, Tracer as Tracer, EmbeddingModelV1 as EmbeddingModelV1, EmbeddingModelV1Embedding as EmbeddingModelV1Embedding, ImageModelV1CallWarning as ImageModelV1CallWarning, TranscriptionModelV1CallWarning as TranscriptionModelV1CallWarning, SpeechModelV1CallWarning as SpeechModelV1CallWarning, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, RedactedReasoningPart as RedactedReasoningPart, ToolResultContent as ToolResultContent, inferParameters as inferParameters, ToolParameters as ToolParameters, JSONRPCRequestSchema as JSONRPCRequestSchema, JSONRPCResponseSchema as JSONRPCResponseSchema, JSONRPCErrorSchema as JSONRPCErrorSchema, JSONRPCNotificationSchema as JSONRPCNotificationSchema, JSONRPCMessageSchema as JSONRPCMessageSchema, MCPClientConfig as MCPClientConfig, MCPClient as MCPClient, ValueOf as ValueOf, ToToolResultObject as ToToolResultObject, ToToolsWithDefinedExecute as ToToolsWithDefinedExecute, ToToolsWithExecute as ToToolsWithExecute, ReasoningDetail as ReasoningDetail, ToolCallArray as ToolCallArray, ToolResultArray as ToolResultArray, ResponseMessage as ResponseMessage, Output_2 as Output_2, ConsumeStreamOptions as ConsumeStreamOptions, ImageModelV1 as ImageModelV1, CallSettings as CallSettings, Prompt as Prompt, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, AsyncIterableStream as AsyncIterableStream, SpeechModelV1 as SpeechModelV1, TranscriptionModelV1 as TranscriptionModelV1, LanguageModelV1ProviderMetadata as LanguageModelV1ProviderMetadata, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV1 as ProviderV1, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, AssistantResponseSettings as AssistantResponseSettings, AssistantResponseCallback as AssistantResponseCallback };
7450
+ export { LanguageModelV1Message as LanguageModelV1Message, LanguageModelV1CallSettings as LanguageModelV1CallSettings, LanguageModelV1FunctionTool as LanguageModelV1FunctionTool, LanguageModelV1ProviderDefinedTool as LanguageModelV1ProviderDefinedTool, LanguageModelV1ToolChoice as LanguageModelV1ToolChoice, LanguageModelV1ObjectGenerationMode as LanguageModelV1ObjectGenerationMode, LanguageModelV1FunctionToolCall as LanguageModelV1FunctionToolCall, LanguageModelV1Source as LanguageModelV1Source, LanguageModelV1LogProbs as LanguageModelV1LogProbs, FetchFunction as FetchFunction, TextUIPart as TextUIPart, ReasoningUIPart as ReasoningUIPart, ToolInvocationUIPart as ToolInvocationUIPart, SourceUIPart as SourceUIPart, FileUIPart as FileUIPart, StepStartUIPart as StepStartUIPart, AssistantStreamPartType as AssistantStreamPartType, AssistantStreamPartValueType as AssistantStreamPartValueType, AssistantStreamString as AssistantStreamString, DataStreamPartType as DataStreamPartType, DataStreamPartValueType as DataStreamPartValueType, DeepPartialInternal as DeepPartialInternal, Validator as Validator, LanguageModelV1FinishReason as LanguageModelV1FinishReason, LanguageModelV1CallWarning as LanguageModelV1CallWarning, JSONValue_2 as JSONValue_2, Source as Source, DataStreamString as DataStreamString, AttributeValue as AttributeValue, Tracer as Tracer, EmbeddingModelV1 as EmbeddingModelV1, EmbeddingModelV1Embedding as EmbeddingModelV1Embedding, ImageModelV1CallWarning as ImageModelV1CallWarning, TranscriptionModelV1CallWarning as TranscriptionModelV1CallWarning, SpeechModelV1CallWarning as SpeechModelV1CallWarning, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, RedactedReasoningPart as RedactedReasoningPart, ToolResultContent as ToolResultContent, inferParameters as inferParameters, ToolParameters as ToolParameters, JSONRPCRequestSchema as JSONRPCRequestSchema, JSONRPCResponseSchema as JSONRPCResponseSchema, JSONRPCErrorSchema as JSONRPCErrorSchema, JSONRPCNotificationSchema as JSONRPCNotificationSchema, JSONRPCMessageSchema as JSONRPCMessageSchema, MCPClientConfig as MCPClientConfig, MCPClient as MCPClient, ValueOf as ValueOf, ToToolResultObject as ToToolResultObject, ToToolsWithDefinedExecute as ToToolsWithDefinedExecute, ToToolsWithExecute as ToToolsWithExecute, ReasoningDetail as ReasoningDetail, ToolCallArray as ToolCallArray, ToolResultArray as ToolResultArray, ResponseMessage as ResponseMessage, Output_2 as Output_2, ConsumeStreamOptions as ConsumeStreamOptions, ImageModelV1 as ImageModelV1, CallSettings as CallSettings, Prompt as Prompt, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, AsyncIterableStream as AsyncIterableStream, SpeechModelV1 as SpeechModelV1, TranscriptionModelV1 as TranscriptionModelV1, LanguageModelV1ProviderMetadata as LanguageModelV1ProviderMetadata, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV1 as ProviderV1, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, AssistantResponseSettings as AssistantResponseSettings, AssistantResponseCallback as AssistantResponseCallback };
@@ -1,3 +1,5 @@
1
+ import { JSONSchema7 } from '../../@types_json-schema/index.d.ts';
2
+ import { JSONSchema7Definition } from '../../@types_json-schema/index.d.ts';
1
3
  import { ServerResponse } from 'node:http';
2
4
  import { ServerResponse as ServerResponse_2 } from 'http';
3
5
  import { z } from 'zod/v4';
@@ -1547,16 +1549,16 @@ declare interface EventSourceMessage {
1547
1549
  * implementation in that browsers will default this to `message`, whereas this parser will
1548
1550
  * leave this as `undefined` if not explicitly declared.
1549
1551
  */
1550
- event?: string | undefined;
1552
+ event?: string | undefined
1551
1553
  /**
1552
1554
  * ID of the message, if any was provided by the server. Can be used by clients to keep the
1553
1555
  * last received message ID in sync when reconnecting.
1554
1556
  */
1555
- id?: string | undefined;
1557
+ id?: string | undefined
1556
1558
  /**
1557
1559
  * The data received for this message
1558
1560
  */
1559
- data: string;
1561
+ data: string
1560
1562
  }
1561
1563
 
1562
1564
  /**
@@ -1580,11 +1582,8 @@ declare interface EventSourceMessage {
1580
1582
  *
1581
1583
  * @public
1582
1584
  */
1583
- declare class EventSourceParserStream extends TransformStream<
1584
- string,
1585
- EventSourceMessage
1586
- > {
1587
- constructor({ onError, onRetry, onComment }?: StreamOptions);
1585
+ declare class EventSourceParserStream extends TransformStream<string, EventSourceMessage> {
1586
+ constructor({onError, onRetry, onComment}?: StreamOptions)
1588
1587
  }
1589
1588
 
1590
1589
  /**
@@ -2310,7 +2309,7 @@ declare interface GatewayLanguageModelEntry {
2310
2309
 
2311
2310
  declare type GatewayLanguageModelSpecification = Pick<LanguageModelV2, 'specificationVersion' | 'provider' | 'modelId'>;
2312
2311
 
2313
- 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/mixtral-8x22b-instruct' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | '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 & {});
2312
+ 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 & {});
2314
2313
 
2315
2314
  declare interface GatewayProvider extends ProviderV2 {
2316
2315
  (modelId: GatewayModelId): LanguageModelV2;
@@ -3510,164 +3509,7 @@ export declare function jsonSchema<OBJECT = unknown>(jsonSchema: JSONSchema7 | (
3510
3509
  validate?: (value: unknown) => ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>;
3511
3510
  }): Schema<OBJECT>;
3512
3511
 
3513
- export declare interface JSONSchema7 {
3514
- $id?: string | undefined;
3515
- $ref?: string | undefined;
3516
- $schema?: JSONSchema7Version | undefined;
3517
- $comment?: string | undefined;
3518
-
3519
- /**
3520
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
3521
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
3522
- */
3523
- $defs?: {
3524
- [key: string]: JSONSchema7Definition;
3525
- } | undefined;
3526
-
3527
- /**
3528
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
3529
- */
3530
- type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
3531
- enum?: JSONSchema7Type[] | undefined;
3532
- const?: JSONSchema7Type | undefined;
3533
-
3534
- /**
3535
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
3536
- */
3537
- multipleOf?: number | undefined;
3538
- maximum?: number | undefined;
3539
- exclusiveMaximum?: number | undefined;
3540
- minimum?: number | undefined;
3541
- exclusiveMinimum?: number | undefined;
3542
-
3543
- /**
3544
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
3545
- */
3546
- maxLength?: number | undefined;
3547
- minLength?: number | undefined;
3548
- pattern?: string | undefined;
3549
-
3550
- /**
3551
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
3552
- */
3553
- items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
3554
- additionalItems?: JSONSchema7Definition | undefined;
3555
- maxItems?: number | undefined;
3556
- minItems?: number | undefined;
3557
- uniqueItems?: boolean | undefined;
3558
- contains?: JSONSchema7Definition | undefined;
3559
-
3560
- /**
3561
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
3562
- */
3563
- maxProperties?: number | undefined;
3564
- minProperties?: number | undefined;
3565
- required?: string[] | undefined;
3566
- properties?: {
3567
- [key: string]: JSONSchema7Definition;
3568
- } | undefined;
3569
- patternProperties?: {
3570
- [key: string]: JSONSchema7Definition;
3571
- } | undefined;
3572
- additionalProperties?: JSONSchema7Definition | undefined;
3573
- dependencies?: {
3574
- [key: string]: JSONSchema7Definition | string[];
3575
- } | undefined;
3576
- propertyNames?: JSONSchema7Definition | undefined;
3577
-
3578
- /**
3579
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
3580
- */
3581
- if?: JSONSchema7Definition | undefined;
3582
- then?: JSONSchema7Definition | undefined;
3583
- else?: JSONSchema7Definition | undefined;
3584
-
3585
- /**
3586
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
3587
- */
3588
- allOf?: JSONSchema7Definition[] | undefined;
3589
- anyOf?: JSONSchema7Definition[] | undefined;
3590
- oneOf?: JSONSchema7Definition[] | undefined;
3591
- not?: JSONSchema7Definition | undefined;
3592
-
3593
- /**
3594
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
3595
- */
3596
- format?: string | undefined;
3597
-
3598
- /**
3599
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
3600
- */
3601
- contentMediaType?: string | undefined;
3602
- contentEncoding?: string | undefined;
3603
-
3604
- /**
3605
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
3606
- */
3607
- definitions?: {
3608
- [key: string]: JSONSchema7Definition;
3609
- } | undefined;
3610
-
3611
- /**
3612
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
3613
- */
3614
- title?: string | undefined;
3615
- description?: string | undefined;
3616
- default?: JSONSchema7Type | undefined;
3617
- readOnly?: boolean | undefined;
3618
- writeOnly?: boolean | undefined;
3619
- examples?: JSONSchema7Type | undefined;
3620
- }
3621
-
3622
- declare interface JSONSchema7Array extends Array<JSONSchema7Type> {}
3623
-
3624
- /**
3625
- * JSON Schema v7
3626
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
3627
- */
3628
- declare type JSONSchema7Definition = JSONSchema7 | boolean;
3629
-
3630
- declare interface JSONSchema7Object {
3631
- [key: string]: JSONSchema7Type;
3632
- }
3633
-
3634
- /**
3635
- * Primitive type
3636
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
3637
- */
3638
- declare type JSONSchema7Type =
3639
- | string //
3640
- | number
3641
- | boolean
3642
- | JSONSchema7Object
3643
- | JSONSchema7Array
3644
- | null;
3645
-
3646
- /**
3647
- * Primitive type
3648
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
3649
- */
3650
- declare type JSONSchema7TypeName =
3651
- | "string" //
3652
- | "number"
3653
- | "integer"
3654
- | "boolean"
3655
- | "object"
3656
- | "array"
3657
- | "null";
3658
-
3659
- /**
3660
- * Meta schema
3661
- *
3662
- * Recommended values:
3663
- * - 'http://json-schema.org/schema#'
3664
- * - 'http://json-schema.org/hyper-schema#'
3665
- * - 'http://json-schema.org/draft-07/schema#'
3666
- * - 'http://json-schema.org/draft-07/hyper-schema#'
3667
- *
3668
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
3669
- */
3670
- declare type JSONSchema7Version = string;
3512
+ export { JSONSchema7 }
3671
3513
 
3672
3514
  export declare class JsonToSseTransformStream extends TransformStream<unknown, string> {
3673
3515
  constructor();
@@ -6988,19 +6830,19 @@ declare interface StreamOptions {
6988
6830
  *
6989
6831
  * @defaultValue `undefined`
6990
6832
  */
6991
- onError?: ("terminate" | ((error: Error) => void)) | undefined;
6833
+ onError?: ('terminate' | ((error: Error) => void)) | undefined
6992
6834
  /**
6993
6835
  * Callback for when a reconnection interval is sent from the server.
6994
6836
  *
6995
6837
  * @param retry - The number of milliseconds to wait before reconnecting.
6996
6838
  */
6997
- onRetry?: ((retry: number) => void) | undefined;
6839
+ onRetry?: ((retry: number) => void) | undefined
6998
6840
  /**
6999
6841
  * Callback for when a comment is encountered in the stream.
7000
6842
  *
7001
6843
  * @param comment - The comment encountered in the stream.
7002
6844
  */
7003
- onComment?: ((comment: string) => void) | undefined;
6845
+ onComment?: ((comment: string) => void) | undefined
7004
6846
  }
7005
6847
 
7006
6848
  /**
@@ -9042,5 +8884,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
9042
8884
  }): Schema<OBJECT>;
9043
8885
 
9044
8886
  export { }
9045
- 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, JSONSchema7Version as JSONSchema7Version, JSONSchema7Definition as JSONSchema7Definition, JSONSchema7TypeName as JSONSchema7TypeName, JSONSchema7Type as JSONSchema7Type, 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 };
8887
+ 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 };
9046
8888
  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 };