@ai-sdk/provider-utils 4.0.0-beta.13 → 4.0.0-beta.14

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/dist/index.mjs CHANGED
@@ -194,7 +194,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
194
194
  }
195
195
 
196
196
  // src/version.ts
197
- var VERSION = true ? "4.0.0-beta.13" : "0.0.0-test";
197
+ var VERSION = true ? "4.0.0-beta.14" : "0.0.0-test";
198
198
 
199
199
  // src/get-from-api.ts
200
200
  var getOriginalFetch = () => globalThis.fetch;
@@ -1002,13 +1002,23 @@ var arktypeToJsonSchema = async (schema) => {
1002
1002
  return schema.toJsonSchema();
1003
1003
  };
1004
1004
 
1005
+ // src/to-json-schema/effect-to-json-schema.ts
1006
+ var effectToJsonSchema = async (schema) => {
1007
+ try {
1008
+ const { JSONSchema } = await import("effect");
1009
+ return JSONSchema.make(schema);
1010
+ } catch (e) {
1011
+ throw new Error(`Failed to import module 'effect'`);
1012
+ }
1013
+ };
1014
+
1005
1015
  // src/to-json-schema/valibot-to-json-schema.ts
1006
1016
  var valibotToJsonSchema = async (schema) => {
1007
1017
  try {
1008
1018
  const { toJsonSchema } = await import("@valibot/to-json-schema");
1009
1019
  return toJsonSchema(schema);
1010
1020
  } catch (e) {
1011
- throw new Error(`Failed to import @valibot/to-json-schema`);
1021
+ throw new Error(`Failed to import module '@valibot/to-json-schema'`);
1012
1022
  }
1013
1023
  };
1014
1024
 
@@ -2246,6 +2256,12 @@ function standardSchema(standardSchema2) {
2246
2256
  arktypeToJsonSchema
2247
2257
  );
2248
2258
  }
2259
+ case "effect": {
2260
+ return standardSchemaWithJsonSchemaResolver(
2261
+ standardSchema2,
2262
+ effectToJsonSchema
2263
+ );
2264
+ }
2249
2265
  case "valibot": {
2250
2266
  return standardSchemaWithJsonSchemaResolver(
2251
2267
  standardSchema2,