UNPKG

@mastra/schema-compat

Version:

Tool schema compatibility layer for Mastra.ai

19 lines 2.05 kB
export { SchemaCompatLayer as SchemaCompatLayerV3, ALL_STRING_CHECKS, ALL_NUMBER_CHECKS, ALL_ARRAY_CHECKS, UNSUPPORTED_ZOD_TYPES, SUPPORTED_ZOD_TYPES, ALL_ZOD_TYPES, type StringCheckType, type NumberCheckType, type ArrayCheckType, type UnsupportedZodType, type SupportedZodType, type AllZodType, type ZodShape, type ShapeKey, type ShapeValue, isOptional, isObj, isArr, isUnion, isString, isNumber, } from './schema-compatibility-v3.js'; export { SchemaCompatLayer as SchemaCompatLayerV4 } from './schema-compatibility-v4.js'; export { SchemaCompatLayer } from './schema-compatibility.js'; export { convertZodSchemaToAISDKSchema, applyCompatLayer, convertSchemaToZod, isZodType } from './utils.js'; export { wrapSchemaWithNullTransform } from './null-to-undefined.js'; export { ensureAllPropertiesRequired, prepareJsonSchemaForOpenAIStrictMode } from './zod-to-json.js'; export { extractZodSchema, applyOpenAICompatTransforms, applyOpenAICompatToTools } from './standard-schema-compat.js'; export { AnthropicSchemaCompatLayer } from './provider-compats/anthropic.js'; export { DeepSeekSchemaCompatLayer } from './provider-compats/deepseek.js'; export { GoogleSchemaCompatLayer } from './provider-compats/google.js'; export { MetaSchemaCompatLayer } from './provider-compats/meta.js'; export { OpenAISchemaCompatLayer } from './provider-compats/openai.js'; export { OpenAIReasoningSchemaCompatLayer } from './provider-compats/openai-reasoning.js'; export { type ModelInformation } from './types.js'; export { type JSONSchema7, type Schema, jsonSchema } from './json-schema/index.js'; export type { PublicSchema, InferPublicSchema } from './schema.types.js'; export type { StandardSchemaWithJSON, StandardSchemaWithJSONProps, InferInput, InferOutput, StandardSchemaIssue, } from './standard-schema/standard-schema.types.js'; export { toStandardSchema, isStandardSchema, isStandardJSONSchema, isStandardSchemaWithJSON, standardSchemaToJSONSchema, JSON_SCHEMA_LIBRARY_OPTIONS, } from './standard-schema/standard-schema.js'; //# sourceMappingURL=index.d.ts.map