@mastra/fastembed 1.1.1 → 1.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mastra/fastembed
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed FastEmbed so repeated embedding calls reuse loaded models instead of loading a new model each time. ([#17303](https://github.com/mastra-ai/mastra/pull/17303))
8
+
9
+ ## 1.1.2-alpha.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixed FastEmbed so repeated embedding calls reuse loaded models instead of loading a new model each time. ([#17303](https://github.com/mastra-ai/mastra/pull/17303))
14
+
3
15
  ## 1.1.1
4
16
 
5
17
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ import { JSONSchema7 } from 'json-schema';
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 'json-schema';
2
+ import { JSONSchema7Definition } from 'json-schema';
1
3
  import { ServerResponse } from 'node:http';
2
4
  import { ServerResponse as ServerResponse_2 } from 'http';
3
5
  import { z } from 'zod/v4';
@@ -3507,164 +3509,7 @@ export declare function jsonSchema<OBJECT = unknown>(jsonSchema: JSONSchema7 | (
3507
3509
  validate?: (value: unknown) => ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>;
3508
3510
  }): Schema<OBJECT>;
3509
3511
 
3510
- export declare interface JSONSchema7 {
3511
- $id?: string | undefined;
3512
- $ref?: string | undefined;
3513
- $schema?: JSONSchema7Version | undefined;
3514
- $comment?: string | undefined;
3515
-
3516
- /**
3517
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
3518
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
3519
- */
3520
- $defs?: {
3521
- [key: string]: JSONSchema7Definition;
3522
- } | undefined;
3523
-
3524
- /**
3525
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
3526
- */
3527
- type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
3528
- enum?: JSONSchema7Type[] | undefined;
3529
- const?: JSONSchema7Type | undefined;
3530
-
3531
- /**
3532
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
3533
- */
3534
- multipleOf?: number | undefined;
3535
- maximum?: number | undefined;
3536
- exclusiveMaximum?: number | undefined;
3537
- minimum?: number | undefined;
3538
- exclusiveMinimum?: number | undefined;
3539
-
3540
- /**
3541
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
3542
- */
3543
- maxLength?: number | undefined;
3544
- minLength?: number | undefined;
3545
- pattern?: string | undefined;
3546
-
3547
- /**
3548
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
3549
- */
3550
- items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
3551
- additionalItems?: JSONSchema7Definition | undefined;
3552
- maxItems?: number | undefined;
3553
- minItems?: number | undefined;
3554
- uniqueItems?: boolean | undefined;
3555
- contains?: JSONSchema7Definition | undefined;
3556
-
3557
- /**
3558
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
3559
- */
3560
- maxProperties?: number | undefined;
3561
- minProperties?: number | undefined;
3562
- required?: string[] | undefined;
3563
- properties?: {
3564
- [key: string]: JSONSchema7Definition;
3565
- } | undefined;
3566
- patternProperties?: {
3567
- [key: string]: JSONSchema7Definition;
3568
- } | undefined;
3569
- additionalProperties?: JSONSchema7Definition | undefined;
3570
- dependencies?: {
3571
- [key: string]: JSONSchema7Definition | string[];
3572
- } | undefined;
3573
- propertyNames?: JSONSchema7Definition | undefined;
3574
-
3575
- /**
3576
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
3577
- */
3578
- if?: JSONSchema7Definition | undefined;
3579
- then?: JSONSchema7Definition | undefined;
3580
- else?: JSONSchema7Definition | undefined;
3581
-
3582
- /**
3583
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
3584
- */
3585
- allOf?: JSONSchema7Definition[] | undefined;
3586
- anyOf?: JSONSchema7Definition[] | undefined;
3587
- oneOf?: JSONSchema7Definition[] | undefined;
3588
- not?: JSONSchema7Definition | undefined;
3589
-
3590
- /**
3591
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
3592
- */
3593
- format?: string | undefined;
3594
-
3595
- /**
3596
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
3597
- */
3598
- contentMediaType?: string | undefined;
3599
- contentEncoding?: string | undefined;
3600
-
3601
- /**
3602
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
3603
- */
3604
- definitions?: {
3605
- [key: string]: JSONSchema7Definition;
3606
- } | undefined;
3607
-
3608
- /**
3609
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
3610
- */
3611
- title?: string | undefined;
3612
- description?: string | undefined;
3613
- default?: JSONSchema7Type | undefined;
3614
- readOnly?: boolean | undefined;
3615
- writeOnly?: boolean | undefined;
3616
- examples?: JSONSchema7Type | undefined;
3617
- }
3618
-
3619
- declare interface JSONSchema7Array extends Array<JSONSchema7Type> {}
3620
-
3621
- /**
3622
- * JSON Schema v7
3623
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
3624
- */
3625
- declare type JSONSchema7Definition = JSONSchema7 | boolean;
3626
-
3627
- declare interface JSONSchema7Object {
3628
- [key: string]: JSONSchema7Type;
3629
- }
3630
-
3631
- /**
3632
- * Primitive type
3633
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
3634
- */
3635
- declare type JSONSchema7Type =
3636
- | string //
3637
- | number
3638
- | boolean
3639
- | JSONSchema7Object
3640
- | JSONSchema7Array
3641
- | null;
3642
-
3643
- /**
3644
- * Primitive type
3645
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
3646
- */
3647
- declare type JSONSchema7TypeName =
3648
- | "string" //
3649
- | "number"
3650
- | "integer"
3651
- | "boolean"
3652
- | "object"
3653
- | "array"
3654
- | "null";
3655
-
3656
- /**
3657
- * Meta schema
3658
- *
3659
- * Recommended values:
3660
- * - 'http://json-schema.org/schema#'
3661
- * - 'http://json-schema.org/hyper-schema#'
3662
- * - 'http://json-schema.org/draft-07/schema#'
3663
- * - 'http://json-schema.org/draft-07/hyper-schema#'
3664
- *
3665
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
3666
- */
3667
- declare type JSONSchema7Version = string;
3512
+ export { JSONSchema7 }
3668
3513
 
3669
3514
  export declare class JsonToSseTransformStream extends TransformStream<unknown, string> {
3670
3515
  constructor();
@@ -9039,5 +8884,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
9039
8884
  }): Schema<OBJECT>;
9040
8885
 
9041
8886
  export { }
9042
- 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 };
9043
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 };
@@ -1,3 +1,5 @@
1
+ import { JSONSchema7 } from 'json-schema';
2
+ import { JSONSchema7Definition } from 'json-schema';
1
3
  import { ServerResponse } from 'node:http';
2
4
  import { ServerResponse as ServerResponse_2 } from 'http';
3
5
  import { z } from 'zod/v4';
@@ -4758,164 +4760,7 @@ export declare function jsonSchema<OBJECT = unknown>(jsonSchema: JSONSchema7 | P
4758
4760
  validate?: (value: unknown) => ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>;
4759
4761
  }): Schema<OBJECT>;
4760
4762
 
4761
- export declare interface JSONSchema7 {
4762
- $id?: string | undefined;
4763
- $ref?: string | undefined;
4764
- $schema?: JSONSchema7Version | undefined;
4765
- $comment?: string | undefined;
4766
-
4767
- /**
4768
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
4769
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
4770
- */
4771
- $defs?: {
4772
- [key: string]: JSONSchema7Definition;
4773
- } | undefined;
4774
-
4775
- /**
4776
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
4777
- */
4778
- type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
4779
- enum?: JSONSchema7Type[] | undefined;
4780
- const?: JSONSchema7Type | undefined;
4781
-
4782
- /**
4783
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
4784
- */
4785
- multipleOf?: number | undefined;
4786
- maximum?: number | undefined;
4787
- exclusiveMaximum?: number | undefined;
4788
- minimum?: number | undefined;
4789
- exclusiveMinimum?: number | undefined;
4790
-
4791
- /**
4792
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
4793
- */
4794
- maxLength?: number | undefined;
4795
- minLength?: number | undefined;
4796
- pattern?: string | undefined;
4797
-
4798
- /**
4799
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
4800
- */
4801
- items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
4802
- additionalItems?: JSONSchema7Definition | undefined;
4803
- maxItems?: number | undefined;
4804
- minItems?: number | undefined;
4805
- uniqueItems?: boolean | undefined;
4806
- contains?: JSONSchema7Definition | undefined;
4807
-
4808
- /**
4809
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
4810
- */
4811
- maxProperties?: number | undefined;
4812
- minProperties?: number | undefined;
4813
- required?: string[] | undefined;
4814
- properties?: {
4815
- [key: string]: JSONSchema7Definition;
4816
- } | undefined;
4817
- patternProperties?: {
4818
- [key: string]: JSONSchema7Definition;
4819
- } | undefined;
4820
- additionalProperties?: JSONSchema7Definition | undefined;
4821
- dependencies?: {
4822
- [key: string]: JSONSchema7Definition | string[];
4823
- } | undefined;
4824
- propertyNames?: JSONSchema7Definition | undefined;
4825
-
4826
- /**
4827
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
4828
- */
4829
- if?: JSONSchema7Definition | undefined;
4830
- then?: JSONSchema7Definition | undefined;
4831
- else?: JSONSchema7Definition | undefined;
4832
-
4833
- /**
4834
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
4835
- */
4836
- allOf?: JSONSchema7Definition[] | undefined;
4837
- anyOf?: JSONSchema7Definition[] | undefined;
4838
- oneOf?: JSONSchema7Definition[] | undefined;
4839
- not?: JSONSchema7Definition | undefined;
4840
-
4841
- /**
4842
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
4843
- */
4844
- format?: string | undefined;
4845
-
4846
- /**
4847
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
4848
- */
4849
- contentMediaType?: string | undefined;
4850
- contentEncoding?: string | undefined;
4851
-
4852
- /**
4853
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
4854
- */
4855
- definitions?: {
4856
- [key: string]: JSONSchema7Definition;
4857
- } | undefined;
4858
-
4859
- /**
4860
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
4861
- */
4862
- title?: string | undefined;
4863
- description?: string | undefined;
4864
- default?: JSONSchema7Type | undefined;
4865
- readOnly?: boolean | undefined;
4866
- writeOnly?: boolean | undefined;
4867
- examples?: JSONSchema7Type | undefined;
4868
- }
4869
-
4870
- declare interface JSONSchema7Array extends Array<JSONSchema7Type> {}
4871
-
4872
- /**
4873
- * JSON Schema v7
4874
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
4875
- */
4876
- declare type JSONSchema7Definition = JSONSchema7 | boolean;
4877
-
4878
- declare interface JSONSchema7Object {
4879
- [key: string]: JSONSchema7Type;
4880
- }
4881
-
4882
- /**
4883
- * Primitive type
4884
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
4885
- */
4886
- declare type JSONSchema7Type =
4887
- | string //
4888
- | number
4889
- | boolean
4890
- | JSONSchema7Object
4891
- | JSONSchema7Array
4892
- | null;
4893
-
4894
- /**
4895
- * Primitive type
4896
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
4897
- */
4898
- declare type JSONSchema7TypeName =
4899
- | "string" //
4900
- | "number"
4901
- | "integer"
4902
- | "boolean"
4903
- | "object"
4904
- | "array"
4905
- | "null";
4906
-
4907
- /**
4908
- * Meta schema
4909
- *
4910
- * Recommended values:
4911
- * - 'http://json-schema.org/schema#'
4912
- * - 'http://json-schema.org/hyper-schema#'
4913
- * - 'http://json-schema.org/draft-07/schema#'
4914
- * - 'http://json-schema.org/draft-07/hyper-schema#'
4915
- *
4916
- * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
4917
- */
4918
- declare type JSONSchema7Version = string;
4763
+ export { JSONSchema7 }
4919
4764
 
4920
4765
  /**
4921
4766
  * A TransformStream that converts JSON objects to Server-Sent Events (SSE) format.
@@ -13678,5 +13523,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
13678
13523
  }): Schema<OBJECT>;
13679
13524
 
13680
13525
  export { }
13681
- export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, LazySchema as LazySchema, ZodSchema as ZodSchema, StandardSchema as StandardSchema, ValidationResult as ValidationResult, ParseResult as ParseResult, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, ToolResultOutput as ToolResultOutput, ToolNeedsApprovalFunction as ToolNeedsApprovalFunction, TypeValidationContext as TypeValidationContext, JSONSchema7Version as JSONSchema7Version, JSONSchema7Definition as JSONSchema7Definition, JSONSchema7TypeName as JSONSchema7TypeName, JSONSchema7Type as JSONSchema7Type, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV3Embedding as EmbeddingModelV3Embedding, EmbeddingModelV3Middleware as EmbeddingModelV3Middleware, ImageModelV2 as ImageModelV2, ImageModelV3ProviderMetadata as ImageModelV3ProviderMetadata, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV3Middleware as ImageModelV3Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2 as LanguageModelV2, SharedV3Warning as SharedV3Warning, LanguageModelV3Middleware as LanguageModelV3Middleware, SharedV3ProviderMetadata as SharedV3ProviderMetadata, SpeechModelV2 as SpeechModelV2, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV3Usage as ImageModelV3Usage, DeepPartialInternal as DeepPartialInternal, AttributeValue as AttributeValue, Tracer as Tracer, BaseToolCall as BaseToolCall, Source as Source, ResponseMessage as ResponseMessage, LanguageModelV3ToolCall as LanguageModelV3ToolCall, GenerateTextIncludeSettings as GenerateTextIncludeSettings, 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, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, StreamTextIncludeSettings as StreamTextIncludeSettings, StreamTextOnAbortCallback as StreamTextOnAbortCallback, CallbackModelInfo as CallbackModelInfo, LanguageModelV3ToolChoice as LanguageModelV3ToolChoice, Listener as Listener, MaybePromiseLike as MaybePromiseLike, Output_2 as Output_2, InferAgentTools as InferAgentTools, UIMessageStreamResponseInit as UIMessageStreamResponseInit, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, GenerateImagePrompt as GenerateImagePrompt, JSONValue_2 as JSONValue_2, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModel as VideoModel, EmbeddingModelV3CallOptions as EmbeddingModelV3CallOptions, LanguageModelV3CallOptions as LanguageModelV3CallOptions, JSONObject as JSONObject, LanguageModelV3 as LanguageModelV3, EmbeddingModelV3 as EmbeddingModelV3, ImageModelV3 as ImageModelV3, TranscriptionModelV3 as TranscriptionModelV3, SpeechModelV3 as SpeechModelV3, RerankingModelV3 as RerankingModelV3, VideoModelV3 as VideoModelV3, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV3 as ProviderV3 };
13526
+ export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, LazySchema as LazySchema, ZodSchema as ZodSchema, StandardSchema as StandardSchema, ValidationResult as ValidationResult, ParseResult as ParseResult, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, ToolResultOutput as ToolResultOutput, ToolNeedsApprovalFunction as ToolNeedsApprovalFunction, TypeValidationContext as TypeValidationContext, EmbeddingModelV2 as EmbeddingModelV2, EmbeddingModelV3Embedding as EmbeddingModelV3Embedding, EmbeddingModelV3Middleware as EmbeddingModelV3Middleware, ImageModelV2 as ImageModelV2, ImageModelV3ProviderMetadata as ImageModelV3ProviderMetadata, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, ImageModelV3Middleware as ImageModelV3Middleware, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2 as LanguageModelV2, SharedV3Warning as SharedV3Warning, LanguageModelV3Middleware as LanguageModelV3Middleware, SharedV3ProviderMetadata as SharedV3ProviderMetadata, SpeechModelV2 as SpeechModelV2, TranscriptionModelV2 as TranscriptionModelV2, ImageModelV3Usage as ImageModelV3Usage, DeepPartialInternal as DeepPartialInternal, AttributeValue as AttributeValue, Tracer as Tracer, BaseToolCall as BaseToolCall, Source as Source, ResponseMessage as ResponseMessage, LanguageModelV3ToolCall as LanguageModelV3ToolCall, GenerateTextIncludeSettings as GenerateTextIncludeSettings, 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, InferElementOutput as InferElementOutput, ConsumeStreamOptions as ConsumeStreamOptions, StreamTextIncludeSettings as StreamTextIncludeSettings, StreamTextOnAbortCallback as StreamTextOnAbortCallback, CallbackModelInfo as CallbackModelInfo, LanguageModelV3ToolChoice as LanguageModelV3ToolChoice, Listener as Listener, MaybePromiseLike as MaybePromiseLike, Output_2 as Output_2, InferAgentTools as InferAgentTools, UIMessageStreamResponseInit as UIMessageStreamResponseInit, getOriginalFetch as getOriginalFetch, InferUIMessageTools as InferUIMessageTools, InferUIMessageToolCall as InferUIMessageToolCall, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, Resolvable as Resolvable, FetchFunction as FetchFunction, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, GenerateImagePrompt as GenerateImagePrompt, JSONValue_2 as JSONValue_2, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, VideoModelResponseMetadata as VideoModelResponseMetadata, VideoModelProviderMetadata as VideoModelProviderMetadata, VideoModel as VideoModel, EmbeddingModelV3CallOptions as EmbeddingModelV3CallOptions, LanguageModelV3CallOptions as LanguageModelV3CallOptions, JSONObject as JSONObject, LanguageModelV3 as LanguageModelV3, EmbeddingModelV3 as EmbeddingModelV3, ImageModelV3 as ImageModelV3, TranscriptionModelV3 as TranscriptionModelV3, SpeechModelV3 as SpeechModelV3, RerankingModelV3 as RerankingModelV3, VideoModelV3 as VideoModelV3, ProviderV2 as ProviderV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV3 as ProviderV3 };
13682
13527
  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$f, symbol$g, symbol$h, symbol$i, symbol$j, symbol, symbol_2, symbol_3 };