@mastra/schema-compat 1.3.4-alpha.2 → 1.3.5-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/CHANGELOG.md +34 -0
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +4 -4
- package/dist/_types/@internal_ai-v6/dist/index.d.ts +10 -6
- package/dist/index.cjs +5455 -5998
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5467 -5988
- package/dist/index.js.map +1 -1
- package/dist/json-schema-BstKYbJi.js +6797 -0
- package/dist/json-schema-BstKYbJi.js.map +1 -0
- package/dist/json-schema-pcL1TeZs.cjs +6809 -0
- package/dist/json-schema-pcL1TeZs.cjs.map +1 -0
- package/dist/json-schema-traverse-B35mHRM8.js +101 -0
- package/dist/json-schema-traverse-B35mHRM8.js.map +1 -0
- package/dist/json-schema-traverse-CSNSaf0y.cjs +83 -0
- package/dist/json-schema-traverse-CSNSaf0y.cjs.map +1 -0
- package/dist/json-to-zod.cjs +185 -245
- package/dist/json-to-zod.cjs.map +1 -1
- package/dist/json-to-zod.js +176 -235
- package/dist/json-to-zod.js.map +1 -1
- package/dist/provider-compats/anthropic.d.ts +1 -0
- package/dist/provider-compats/anthropic.d.ts.map +1 -1
- package/dist/rolldown-runtime-emK7D4bc.cjs +35 -0
- package/dist/schema-Bv9OdW1f.js +258 -0
- package/dist/schema-Bv9OdW1f.js.map +1 -0
- package/dist/schema-Cjk6OMG9.cjs +295 -0
- package/dist/schema-Cjk6OMG9.cjs.map +1 -0
- package/dist/schema.cjs +8 -32
- package/dist/schema.js +2 -3
- package/dist/standard-schema/adapters/ai-sdk.cjs +156 -14
- package/dist/standard-schema/adapters/ai-sdk.cjs.map +1 -1
- package/dist/standard-schema/adapters/ai-sdk.js +155 -2
- package/dist/standard-schema/adapters/ai-sdk.js.map +1 -1
- package/dist/standard-schema/adapters/json-schema.cjs +4 -16
- package/dist/standard-schema/adapters/json-schema.js +2 -3
- package/dist/standard-schema/adapters/zod-v3.cjs +101 -10
- package/dist/standard-schema/adapters/zod-v3.cjs.map +1 -1
- package/dist/standard-schema/adapters/zod-v3.js +99 -2
- package/dist/standard-schema/adapters/zod-v3.js.map +1 -1
- package/dist/zod-to-json.cjs +165 -22
- package/dist/zod-to-json.cjs.map +1 -1
- package/dist/zod-to-json.js +160 -2
- package/dist/zod-to-json.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-23HDOZLF.js +0 -105
- package/dist/chunk-23HDOZLF.js.map +0 -1
- package/dist/chunk-5WRI5ZAA.js +0 -29
- package/dist/chunk-5WRI5ZAA.js.map +0 -1
- package/dist/chunk-77T2HV4Q.cjs +0 -7352
- package/dist/chunk-77T2HV4Q.cjs.map +0 -1
- package/dist/chunk-BQ3VTMIR.cjs +0 -76
- package/dist/chunk-BQ3VTMIR.cjs.map +0 -1
- package/dist/chunk-DZUJEN5N.cjs +0 -32
- package/dist/chunk-DZUJEN5N.cjs.map +0 -1
- package/dist/chunk-FJGZKUBH.cjs +0 -208
- package/dist/chunk-FJGZKUBH.cjs.map +0 -1
- package/dist/chunk-FS3P4V5M.cjs +0 -108
- package/dist/chunk-FS3P4V5M.cjs.map +0 -1
- package/dist/chunk-QEM5W7OR.js +0 -199
- package/dist/chunk-QEM5W7OR.js.map +0 -1
- package/dist/chunk-QFEMCRFS.js +0 -70
- package/dist/chunk-QFEMCRFS.js.map +0 -1
- package/dist/chunk-RMMKMUYK.js +0 -7349
- package/dist/chunk-RMMKMUYK.js.map +0 -1
- package/dist/chunk-SKPYVQBT.cjs +0 -94
- package/dist/chunk-SKPYVQBT.cjs.map +0 -1
- package/dist/chunk-VNIPWNNH.js +0 -170
- package/dist/chunk-VNIPWNNH.js.map +0 -1
- package/dist/chunk-Y4VRRNL5.js +0 -92
- package/dist/chunk-Y4VRRNL5.js.map +0 -1
- package/dist/chunk-ZTO66ALH.cjs +0 -181
- package/dist/chunk-ZTO66ALH.cjs.map +0 -1
- package/dist/schema.cjs.map +0 -1
- package/dist/schema.js.map +0 -1
- package/dist/standard-schema/adapters/json-schema.cjs.map +0 -1
- package/dist/standard-schema/adapters/json-schema.js.map +0 -1
package/dist/chunk-23HDOZLF.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
// src/standard-schema/adapters/ai-sdk.ts
|
|
2
|
-
var VENDOR = "ai-sdk";
|
|
3
|
-
var AiSdkSchemaWrapper = class {
|
|
4
|
-
#schema;
|
|
5
|
-
"~standard";
|
|
6
|
-
constructor(schema) {
|
|
7
|
-
this.#schema = schema;
|
|
8
|
-
this["~standard"] = {
|
|
9
|
-
version: 1,
|
|
10
|
-
vendor: VENDOR,
|
|
11
|
-
validate: this.#validate.bind(this),
|
|
12
|
-
jsonSchema: {
|
|
13
|
-
input: this.#toJsonSchema.bind(this),
|
|
14
|
-
output: this.#toJsonSchema.bind(this)
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Validates a value against the AI SDK Schema.
|
|
20
|
-
*
|
|
21
|
-
* @param value - The value to validate
|
|
22
|
-
* @returns A result object with either the validated value or validation issues
|
|
23
|
-
*/
|
|
24
|
-
#validate(value) {
|
|
25
|
-
if (!this.#schema.validate) {
|
|
26
|
-
return { value };
|
|
27
|
-
}
|
|
28
|
-
try {
|
|
29
|
-
const result = this.#schema.validate(value);
|
|
30
|
-
if (result && typeof result === "object" && "then" in result && typeof result.then === "function") {
|
|
31
|
-
return Promise.resolve(
|
|
32
|
-
result
|
|
33
|
-
).then((res) => this.#convertValidationResult(res)).catch((error) => {
|
|
34
|
-
const message = error instanceof Error ? error.message : "Unknown validation error";
|
|
35
|
-
return {
|
|
36
|
-
issues: [{ message: `Schema validation error: ${message}` }]
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return this.#convertValidationResult(
|
|
41
|
-
result
|
|
42
|
-
);
|
|
43
|
-
} catch (error) {
|
|
44
|
-
const message = error instanceof Error ? error.message : "Unknown validation error";
|
|
45
|
-
return {
|
|
46
|
-
issues: [{ message: `Schema validation error: ${message}` }]
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Converts an AI SDK ValidationResult to a StandardSchemaV1.Result.
|
|
52
|
-
*
|
|
53
|
-
* @param result - The AI SDK validation result
|
|
54
|
-
* @returns A StandardSchemaV1.Result
|
|
55
|
-
*/
|
|
56
|
-
#convertValidationResult(result) {
|
|
57
|
-
if (result.success) {
|
|
58
|
-
return { value: result.value };
|
|
59
|
-
}
|
|
60
|
-
const failureResult = result;
|
|
61
|
-
return {
|
|
62
|
-
issues: [{ message: failureResult.error.message }]
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Returns the JSON Schema in the requested target format.
|
|
67
|
-
*
|
|
68
|
-
* @param options - Options including the target format
|
|
69
|
-
* @returns The JSON Schema as a Record
|
|
70
|
-
*/
|
|
71
|
-
#toJsonSchema(options) {
|
|
72
|
-
const { target } = options;
|
|
73
|
-
const clonedSchema = JSON.parse(JSON.stringify(this.#schema.jsonSchema));
|
|
74
|
-
if (!clonedSchema.$schema) {
|
|
75
|
-
switch (target) {
|
|
76
|
-
case "draft-07":
|
|
77
|
-
clonedSchema.$schema = "http://json-schema.org/draft-07/schema#";
|
|
78
|
-
break;
|
|
79
|
-
case "draft-2020-12":
|
|
80
|
-
clonedSchema.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return clonedSchema;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Returns the original AI SDK Schema.
|
|
88
|
-
*/
|
|
89
|
-
getSchema() {
|
|
90
|
-
return this.#schema;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Returns the original JSON Schema from the AI SDK Schema.
|
|
94
|
-
*/
|
|
95
|
-
getJsonSchema() {
|
|
96
|
-
return this.#schema.jsonSchema;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
function toStandardSchema(schema) {
|
|
100
|
-
return new AiSdkSchemaWrapper(schema);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export { AiSdkSchemaWrapper, toStandardSchema };
|
|
104
|
-
//# sourceMappingURL=chunk-23HDOZLF.js.map
|
|
105
|
-
//# sourceMappingURL=chunk-23HDOZLF.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/standard-schema/adapters/ai-sdk.ts"],"names":[],"mappings":"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","file":"chunk-23HDOZLF.js","sourcesContent":["import type { Schema } from '@internal/ai-v6';\nimport type { StandardSchemaV1, StandardJSONSchemaV1 } from '@standard-schema/spec';\nimport type { JSONSchema7 } from 'json-schema';\nimport type { StandardSchemaWithJSON, StandardSchemaWithJSONProps } from '../standard-schema.types';\n\n/**\n * Vendor name for AI SDK wrapped schemas.\n */\nconst VENDOR = 'ai-sdk';\n\n/**\n * A wrapper class that makes AI SDK Schema compatible with @standard-schema/spec.\n *\n * This class implements both `StandardSchemaV1` (validation) and `StandardJSONSchemaV1`\n * (JSON Schema conversion) interfaces. It wraps an AI SDK Schema and adapts its\n * validation method and jsonSchema property to the standard-schema interface.\n *\n * @typeParam T - The TypeScript type that the AI SDK Schema represents\n *\n * @example\n * ```typescript\n * import { jsonSchema } from '@internal/ai-v6';\n * import { toStandardSchema } from '@mastra/schema-compat/adapters/ai-sdk';\n *\n * // Create an AI SDK schema\n * const aiSdkSchema = jsonSchema<{ name: string; age: number }>({\n * type: 'object',\n * properties: {\n * name: { type: 'string' },\n * age: { type: 'number' },\n * },\n * required: ['name', 'age'],\n * });\n *\n * // Convert to standard-schema\n * const standardSchema = toStandardSchema(aiSdkSchema);\n *\n * // Use validation (from StandardSchemaV1)\n * const result = standardSchema['~standard'].validate({ name: 'John', age: 30 });\n *\n * // Get JSON Schema (from StandardJSONSchemaV1)\n * const jsonSchema = standardSchema['~standard'].jsonSchema.output({ target: 'draft-07' });\n * ```\n */\nexport class AiSdkSchemaWrapper<Input = unknown, Output = Input> implements StandardSchemaWithJSON<Input, Output> {\n readonly #schema: Schema<Output>;\n readonly '~standard': StandardSchemaWithJSONProps<Input, Output>;\n\n constructor(schema: Schema<Output>) {\n this.#schema = schema;\n\n // Create the ~standard property\n this['~standard'] = {\n version: 1,\n vendor: VENDOR,\n validate: this.#validate.bind(this),\n jsonSchema: {\n input: this.#toJsonSchema.bind(this),\n output: this.#toJsonSchema.bind(this),\n },\n };\n }\n\n /**\n * Validates a value against the AI SDK Schema.\n *\n * @param value - The value to validate\n * @returns A result object with either the validated value or validation issues\n */\n #validate(value: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>> {\n // Check if the schema has a validate method (it's optional on AI SDK Schema)\n if (!this.#schema.validate) {\n // If no validate method, we can't validate - just pass through\n return { value: value as Output };\n }\n\n try {\n const result = this.#schema.validate(value);\n\n // Handle both sync and async validation results\n // The AI SDK Schema.validate returns ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>\n // We need to check if it's a thenable (promise-like)\n if (result && typeof result === 'object' && 'then' in result && typeof result.then === 'function') {\n // Wrap PromiseLike in a proper Promise to satisfy the StandardSchemaV1 interface\n return Promise.resolve(\n result as PromiseLike<{ success: true; value: Output } | { success: false; error: Error }>,\n )\n .then(res => this.#convertValidationResult(res))\n .catch((error: unknown) => {\n // Convert rejected promises to the expected { issues: [...] } shape\n const message = error instanceof Error ? error.message : 'Unknown validation error';\n return {\n issues: [{ message: `Schema validation error: ${message}` }],\n } as StandardSchemaV1.Result<Output>;\n });\n }\n\n // It's a sync result\n return this.#convertValidationResult(\n result as { success: true; value: Output } | { success: false; error: Error },\n );\n } catch (error) {\n // If validation fails unexpectedly, return a validation error\n const message = error instanceof Error ? error.message : 'Unknown validation error';\n return {\n issues: [{ message: `Schema validation error: ${message}` }],\n };\n }\n }\n\n /**\n * Converts an AI SDK ValidationResult to a StandardSchemaV1.Result.\n *\n * @param result - The AI SDK validation result\n * @returns A StandardSchemaV1.Result\n */\n #convertValidationResult(\n result: { success: true; value: Output } | { success: false; error: Error },\n ): StandardSchemaV1.Result<Output> {\n if (result.success) {\n return { value: result.value };\n }\n\n // Convert the AI SDK error to a Standard Schema issue\n // Cast to the failure type since TypeScript can't narrow discriminated unions with private field access\n const failureResult = result as { success: false; error: Error };\n return {\n issues: [{ message: failureResult.error.message }],\n };\n }\n\n /**\n * Returns the JSON Schema in the requested target format.\n *\n * @param options - Options including the target format\n * @returns The JSON Schema as a Record\n */\n #toJsonSchema(options: StandardJSONSchemaV1.Options): Record<string, unknown> {\n const { target } = options;\n\n // Clone the schema to avoid mutations\n const clonedSchema = JSON.parse(JSON.stringify(this.#schema.jsonSchema)) as Record<string, unknown>;\n\n // Add $schema if not present, based on target\n if (!clonedSchema.$schema) {\n switch (target) {\n case 'draft-07':\n clonedSchema.$schema = 'http://json-schema.org/draft-07/schema#';\n break;\n case 'draft-2020-12':\n clonedSchema.$schema = 'https://json-schema.org/draft/2020-12/schema';\n break;\n case 'openapi-3.0':\n // OpenAPI 3.0 doesn't use $schema\n break;\n default:\n // For unknown targets, don't add $schema\n break;\n }\n }\n\n return clonedSchema;\n }\n\n /**\n * Returns the original AI SDK Schema.\n */\n getSchema(): Schema<Output> {\n return this.#schema;\n }\n\n /**\n * Returns the original JSON Schema from the AI SDK Schema.\n */\n getJsonSchema(): JSONSchema7 {\n return this.#schema.jsonSchema as JSONSchema7;\n }\n}\n\n/**\n * Wraps an AI SDK Schema to implement the full @standard-schema/spec interface.\n *\n * This function creates a wrapper that implements both `StandardSchemaV1` (validation)\n * and `StandardJSONSchemaV1` (JSON Schema conversion) interfaces.\n *\n * @typeParam T - The TypeScript type that the AI SDK Schema represents\n * @param schema - The AI SDK Schema to wrap\n * @returns A wrapper implementing StandardSchemaWithJSON\n *\n * @example\n * ```typescript\n * import { jsonSchema } from '@internal/ai-v6';\n * import { toStandardSchema } from '@mastra/schema-compat/adapters/ai-sdk';\n *\n * const aiSdkSchema = jsonSchema<{ name: string; age: number }>({\n * type: 'object',\n * properties: {\n * name: { type: 'string' },\n * age: { type: 'number' },\n * },\n * required: ['name', 'age'],\n * });\n *\n * const standardSchema = toStandardSchema(aiSdkSchema);\n *\n * // Validate data\n * const result = standardSchema['~standard'].validate({ name: 'John', age: 30 });\n *\n * // Get JSON Schema\n * const jsonSchema = standardSchema['~standard'].jsonSchema.output({ target: 'draft-07' });\n * ```\n */\nexport function toStandardSchema<T = unknown>(schema: Schema<T>): AiSdkSchemaWrapper<T, T> {\n return new AiSdkSchemaWrapper<T, T>(schema);\n}\n"]}
|
package/dist/chunk-5WRI5ZAA.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
26
|
-
|
|
27
|
-
export { __commonJS, __toESM };
|
|
28
|
-
//# sourceMappingURL=chunk-5WRI5ZAA.js.map
|
|
29
|
-
//# sourceMappingURL=chunk-5WRI5ZAA.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-5WRI5ZAA.js"}
|