@alpic80/rivet-ai-sdk-provider 2.0.5 → 2.0.7

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.d.mts CHANGED
@@ -3,6 +3,9 @@ import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
5
5
  type RivetChatModelId = string;
6
+ type JSONValue = null | string | number | boolean | {
7
+ [key: string]: JSONValue;
8
+ } | JSONValue[];
6
9
  declare const rivetLanguageModelOptions: z.ZodObject<{
7
10
  runParams: z.ZodObject<{
8
11
  openaiApiKey: z.ZodOptional<z.ZodString>;
@@ -55,7 +58,7 @@ declare const rivetLanguageModelOptions: z.ZodObject<{
55
58
  }, z.core.$strip>;
56
59
  rivetInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
57
60
  type: z.ZodString;
58
- value: z.ZodUnknown;
61
+ value: z.ZodType<JSONValue, unknown, z.core.$ZodTypeInternals<JSONValue, unknown>>;
59
62
  }, z.core.$strip>>>;
60
63
  }, z.core.$strip>;
61
64
  type RivetLanguageModelOptions = z.infer<typeof rivetLanguageModelOptions>;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,9 @@ import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
5
5
  type RivetChatModelId = string;
6
+ type JSONValue = null | string | number | boolean | {
7
+ [key: string]: JSONValue;
8
+ } | JSONValue[];
6
9
  declare const rivetLanguageModelOptions: z.ZodObject<{
7
10
  runParams: z.ZodObject<{
8
11
  openaiApiKey: z.ZodOptional<z.ZodString>;
@@ -55,7 +58,7 @@ declare const rivetLanguageModelOptions: z.ZodObject<{
55
58
  }, z.core.$strip>;
56
59
  rivetInputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
57
60
  type: z.ZodString;
58
- value: z.ZodUnknown;
61
+ value: z.ZodType<JSONValue, unknown, z.core.$ZodTypeInternals<JSONValue, unknown>>;
59
62
  }, z.core.$strip>>>;
60
63
  }, z.core.$strip>;
61
64
  type RivetLanguageModelOptions = z.infer<typeof rivetLanguageModelOptions>;
package/dist/index.js CHANGED
@@ -931,6 +931,16 @@ function mapRivetFinishReason(finishReason) {
931
931
 
932
932
  // src/rivet-chat-options.ts
933
933
  var import_v4 = require("zod/v4");
934
+ var jsonValue = import_v4.z.lazy(
935
+ () => import_v4.z.union([
936
+ import_v4.z.string(),
937
+ import_v4.z.number(),
938
+ import_v4.z.boolean(),
939
+ import_v4.z.null(),
940
+ import_v4.z.array(jsonValue),
941
+ import_v4.z.record(import_v4.z.string(), jsonValue)
942
+ ])
943
+ );
934
944
  var rivetRunParamsSchema = import_v4.z.object({
935
945
  openaiApiKey: import_v4.z.string().optional(),
936
946
  openaiEndpoint: import_v4.z.string().optional(),
@@ -947,7 +957,7 @@ var graphInputSchema = import_v4.z.record(
947
957
  // key type
948
958
  import_v4.z.object({
949
959
  type: import_v4.z.string(),
950
- value: import_v4.z.unknown()
960
+ value: jsonValue
951
961
  })
952
962
  ).optional();
953
963
  var standardChatConfigSchema = import_v4.z.object({
@@ -1082,6 +1092,7 @@ prepare tools input:${printObject(tools)}`);
1082
1092
  })) != null ? _a15 : {};
1083
1093
  rivetTools.push({
1084
1094
  name: tool.name,
1095
+ namespace: "openapi",
1085
1096
  description: tool.description || "",
1086
1097
  parameters: tool.inputSchema,
1087
1098
  strict: false
@@ -1124,7 +1135,7 @@ prepare tools input:${printObject(tools)}`);
1124
1135
  }
1125
1136
 
1126
1137
  // src/version.ts
1127
- var VERSION = true ? "2.0.5" : "0.0.0-test";
1138
+ var VERSION = true ? "2.0.7" : "0.0.0-test";
1128
1139
 
1129
1140
  // src/post-to-api.ts
1130
1141
  var getOriginalFetch = () => globalThis.fetch;