@mastra/schema-compat 0.10.2-alpha.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/.turbo/turbo-build.log +23 -0
- package/CHANGELOG.md +7 -0
- package/LICENSE.md +46 -0
- package/README.md +148 -0
- package/dist/_tsup-dts-rollup.d.cts +473 -0
- package/dist/_tsup-dts-rollup.d.ts +473 -0
- package/dist/index.cjs +726 -0
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +709 -0
- package/eslint.config.js +6 -0
- package/package.json +56 -0
- package/src/index.ts +32 -0
- package/src/provider-compats/anthropic.ts +54 -0
- package/src/provider-compats/deepseek.ts +41 -0
- package/src/provider-compats/google.ts +54 -0
- package/src/provider-compats/meta.ts +43 -0
- package/src/provider-compats/openai-reasoning.ts +86 -0
- package/src/provider-compats/openai.ts +61 -0
- package/src/provider-compats.test.ts +312 -0
- package/src/schema-compatibility.test.ts +350 -0
- package/src/schema-compatibility.ts +587 -0
- package/src/utils.test.ts +328 -0
- package/src/utils.ts +218 -0
- package/tsconfig.json +5 -0
- package/vitest.config.ts +7 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { SchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
2
|
+
export { ALL_STRING_CHECKS } from './_tsup-dts-rollup.cjs';
|
|
3
|
+
export { ALL_NUMBER_CHECKS } from './_tsup-dts-rollup.cjs';
|
|
4
|
+
export { ALL_ARRAY_CHECKS } from './_tsup-dts-rollup.cjs';
|
|
5
|
+
export { UNSUPPORTED_ZOD_TYPES } from './_tsup-dts-rollup.cjs';
|
|
6
|
+
export { SUPPORTED_ZOD_TYPES } from './_tsup-dts-rollup.cjs';
|
|
7
|
+
export { ALL_ZOD_TYPES } from './_tsup-dts-rollup.cjs';
|
|
8
|
+
export { StringCheckType } from './_tsup-dts-rollup.cjs';
|
|
9
|
+
export { NumberCheckType } from './_tsup-dts-rollup.cjs';
|
|
10
|
+
export { ArrayCheckType } from './_tsup-dts-rollup.cjs';
|
|
11
|
+
export { UnsupportedZodType } from './_tsup-dts-rollup.cjs';
|
|
12
|
+
export { SupportedZodType } from './_tsup-dts-rollup.cjs';
|
|
13
|
+
export { AllZodType } from './_tsup-dts-rollup.cjs';
|
|
14
|
+
export { ZodShape } from './_tsup-dts-rollup.cjs';
|
|
15
|
+
export { ShapeKey } from './_tsup-dts-rollup.cjs';
|
|
16
|
+
export { ShapeValue } from './_tsup-dts-rollup.cjs';
|
|
17
|
+
export { convertZodSchemaToAISDKSchema } from './_tsup-dts-rollup.cjs';
|
|
18
|
+
export { applyCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
19
|
+
export { convertSchemaToZod } from './_tsup-dts-rollup.cjs';
|
|
20
|
+
export { AnthropicSchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
21
|
+
export { DeepSeekSchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
22
|
+
export { GoogleSchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
23
|
+
export { MetaSchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
24
|
+
export { OpenAISchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
|
25
|
+
export { OpenAIReasoningSchemaCompatLayer } from './_tsup-dts-rollup.cjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { SchemaCompatLayer } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { ALL_STRING_CHECKS } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { ALL_NUMBER_CHECKS } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { ALL_ARRAY_CHECKS } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { UNSUPPORTED_ZOD_TYPES } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { SUPPORTED_ZOD_TYPES } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { ALL_ZOD_TYPES } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { StringCheckType } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { NumberCheckType } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { ArrayCheckType } from './_tsup-dts-rollup.js';
|
|
11
|
+
export { UnsupportedZodType } from './_tsup-dts-rollup.js';
|
|
12
|
+
export { SupportedZodType } from './_tsup-dts-rollup.js';
|
|
13
|
+
export { AllZodType } from './_tsup-dts-rollup.js';
|
|
14
|
+
export { ZodShape } from './_tsup-dts-rollup.js';
|
|
15
|
+
export { ShapeKey } from './_tsup-dts-rollup.js';
|
|
16
|
+
export { ShapeValue } from './_tsup-dts-rollup.js';
|
|
17
|
+
export { convertZodSchemaToAISDKSchema } from './_tsup-dts-rollup.js';
|
|
18
|
+
export { applyCompatLayer } from './_tsup-dts-rollup.js';
|
|
19
|
+
export { convertSchemaToZod } from './_tsup-dts-rollup.js';
|
|
20
|
+
export { AnthropicSchemaCompatLayer } from './_tsup-dts-rollup.js';
|
|
21
|
+
export { DeepSeekSchemaCompatLayer } from './_tsup-dts-rollup.js';
|
|
22
|
+
export { GoogleSchemaCompatLayer } from './_tsup-dts-rollup.js';
|
|
23
|
+
export { MetaSchemaCompatLayer } from './_tsup-dts-rollup.js';
|
|
24
|
+
export { OpenAISchemaCompatLayer } from './_tsup-dts-rollup.js';
|
|
25
|
+
export { OpenAIReasoningSchemaCompatLayer } from './_tsup-dts-rollup.js';
|