@composio/core 0.14.1 → 0.16.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.
Files changed (42) hide show
  1. package/dist/{BaseProvider-Dc5yKZhk.d.mts → BaseProvider-D7p2OPEx.d.mts} +267 -200
  2. package/dist/{CustomTool-4nVuwLzO.d.mts → CustomTool-Bk38kFp0.d.mts} +1 -1
  3. package/dist/{Telemetry-CF0rNHu2.mjs → Telemetry-DuGJSwUt.mjs} +2 -2
  4. package/dist/{cancellation-BbJ-UQ__.mjs → cancellation-NVtGf3St.mjs} +69 -1
  5. package/dist/{composio-ChU3eD9F.d.mts → composio-DSs-1AhC.d.mts} +8 -3
  6. package/dist/{customTool.types-CX2-LbfI.d.mts → customTool.types-cGHcIBX-.d.mts} +1 -1
  7. package/dist/experimental/index.d.mts +2 -2
  8. package/dist/{fileUtils.node-DOkW4PBg.mjs → fileUtils.node-BQ0fWge3.mjs} +5 -2
  9. package/dist/index.d.mts +20 -7
  10. package/dist/index.mjs +85 -43
  11. package/dist/models/Files.node.mjs +2 -2
  12. package/dist/platform/node.d.mts +1 -1
  13. package/dist/platform/node.mjs +24 -0
  14. package/dist/platform/workerd.d.mts +1 -1
  15. package/dist/platform/workerd.mjs +3 -0
  16. package/dist/{sensitiveFileUploadPaths-C43dHP7S.mjs → sensitiveFileUploadPaths-BVEt0peg.mjs} +12 -7
  17. package/dist/{types-D5N60gUD.d.mts → types-B4k-qoOf.d.mts} +2 -2
  18. package/dist/{types-DY1r-kN9.d.mts → types-D5A2wzBl.d.mts} +8 -0
  19. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  20. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  21. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  22. package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
  23. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  24. package/dist/utils/ssrfGuard.node.d.mts +2 -2
  25. package/dist/utils/ssrfGuard.node.mjs +3 -2
  26. package/package.json +6 -5
  27. package/src/index.ts +1 -0
  28. package/src/models/ToolRouterSessionFileMount.ts +3 -0
  29. package/src/models/Tools.ts +108 -77
  30. package/src/platform/node.ts +40 -0
  31. package/src/platform/types.ts +9 -0
  32. package/src/platform/workerd.ts +5 -0
  33. package/src/telemetry/redact.ts +6 -1
  34. package/src/types/tool.types.ts +60 -10
  35. package/src/utils/fileUtils.node.ts +3 -0
  36. package/src/utils/jsonSchema.ts +86 -1
  37. package/src/utils/modifiers/FileToolModifier.node.ts +3 -3
  38. package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +6 -4
  39. package/src/utils/sdk.ts +2 -2
  40. package/src/utils/sensitiveFileUploadPaths.ts +12 -9
  41. package/src/utils/ssrfGuard.node.ts +6 -2
  42. package/src/utils/version.ts +21 -20
@@ -21,8 +21,53 @@ declare const ToolkitSchema: z$1.ZodObject<{
21
21
  logo?: string | undefined;
22
22
  }>;
23
23
  type Toolkit = z$1.infer<typeof ToolkitSchema>;
24
- declare const JSONSchemaPropertySchema: z$1.ZodType<any>;
25
- type JSONSchemaProperty = z$1.infer<typeof JSONSchemaPropertySchema>;
24
+ declare const JSONSchemaType: z$1.ZodEnum<["string", "number", "integer", "boolean", "object", "array", "null"]>;
25
+ type JSONSchemaTypeName = z$1.infer<typeof JSONSchemaType>;
26
+ interface JSONSchemaProperty {
27
+ [key: string]: unknown;
28
+ type?: JSONSchemaTypeName | JSONSchemaTypeName[];
29
+ description?: string;
30
+ anyOf?: JSONSchemaProperty[];
31
+ oneOf?: JSONSchemaProperty[];
32
+ allOf?: JSONSchemaProperty[];
33
+ not?: JSONSchemaProperty;
34
+ title?: string;
35
+ default?: unknown;
36
+ nullable?: boolean;
37
+ properties?: Record<string, JSONSchemaProperty>;
38
+ required?: string[];
39
+ file_uploadable?: boolean;
40
+ file_downloadable?: boolean;
41
+ items?: JSONSchemaProperty | JSONSchemaProperty[];
42
+ enum?: unknown[];
43
+ const?: unknown;
44
+ minimum?: number;
45
+ maximum?: number;
46
+ exclusiveMinimum?: number;
47
+ exclusiveMaximum?: number;
48
+ multipleOf?: number;
49
+ minLength?: number;
50
+ maxLength?: number;
51
+ pattern?: string;
52
+ format?: string;
53
+ minItems?: number;
54
+ maxItems?: number;
55
+ uniqueItems?: boolean;
56
+ minProperties?: number;
57
+ maxProperties?: number;
58
+ patternProperties?: Record<string, JSONSchemaProperty>;
59
+ additionalProperties?: boolean | JSONSchemaProperty;
60
+ examples?: unknown[];
61
+ readOnly?: boolean;
62
+ writeOnly?: boolean;
63
+ if?: JSONSchemaProperty;
64
+ then?: JSONSchemaProperty;
65
+ else?: JSONSchemaProperty;
66
+ $ref?: string;
67
+ definitions?: Record<string, JSONSchemaProperty>;
68
+ $defs?: Record<string, JSONSchemaProperty>;
69
+ }
70
+ declare const JSONSchemaPropertySchema: z$1.ZodType<JSONSchemaProperty>;
26
71
  /**
27
72
  * Tool is a single action that can be performed by a toolkit.
28
73
  * Tool is simlar to an action that an app can perform.
@@ -35,125 +80,133 @@ declare const ToolSchema: z$1.ZodObject<{
35
80
  description: z$1.ZodOptional<z$1.ZodString>;
36
81
  inputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
37
82
  type: z$1.ZodLiteral<"object">;
38
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
39
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
40
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
41
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
42
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
83
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
84
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
85
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
86
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
87
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
43
88
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
44
89
  title: z$1.ZodOptional<z$1.ZodString>;
45
- default: z$1.ZodOptional<z$1.ZodAny>;
90
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
46
91
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
47
92
  description: z$1.ZodOptional<z$1.ZodString>;
48
- additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
49
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
50
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
93
+ patternProperties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
94
+ additionalProperties: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>]>>;
95
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
96
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
51
97
  }, "strip", z$1.ZodTypeAny, {
52
98
  type: "object";
53
- properties: Record<string, any>;
54
99
  description?: string | undefined;
55
- anyOf?: any[] | undefined;
56
- oneOf?: any[] | undefined;
57
- allOf?: any[] | undefined;
58
- not?: any;
100
+ anyOf?: JSONSchemaProperty[] | undefined;
101
+ oneOf?: JSONSchemaProperty[] | undefined;
102
+ allOf?: JSONSchemaProperty[] | undefined;
103
+ not?: JSONSchemaProperty | undefined;
104
+ properties?: Record<string, JSONSchemaProperty> | undefined;
59
105
  required?: string[] | undefined;
60
106
  title?: string | undefined;
61
- default?: any;
107
+ default?: unknown;
62
108
  nullable?: boolean | undefined;
63
- additionalProperties?: boolean | undefined;
64
- $defs?: Record<string, any> | undefined;
65
- definitions?: Record<string, any> | undefined;
109
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
110
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
111
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
112
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
66
113
  }, {
67
114
  type: "object";
68
- properties: Record<string, any>;
69
115
  description?: string | undefined;
70
- anyOf?: any[] | undefined;
71
- oneOf?: any[] | undefined;
72
- allOf?: any[] | undefined;
73
- not?: any;
116
+ anyOf?: JSONSchemaProperty[] | undefined;
117
+ oneOf?: JSONSchemaProperty[] | undefined;
118
+ allOf?: JSONSchemaProperty[] | undefined;
119
+ not?: JSONSchemaProperty | undefined;
120
+ properties?: Record<string, JSONSchemaProperty> | undefined;
74
121
  required?: string[] | undefined;
75
122
  title?: string | undefined;
76
- default?: any;
123
+ default?: unknown;
77
124
  nullable?: boolean | undefined;
78
- additionalProperties?: boolean | undefined;
79
- $defs?: Record<string, any> | undefined;
80
- definitions?: Record<string, any> | undefined;
125
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
126
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
127
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
128
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
81
129
  }>, {
82
130
  type: "object";
83
- properties: Record<string, any>;
84
131
  description?: string | undefined;
85
- anyOf?: any[] | undefined;
86
- oneOf?: any[] | undefined;
87
- allOf?: any[] | undefined;
88
- not?: any;
132
+ anyOf?: JSONSchemaProperty[] | undefined;
133
+ oneOf?: JSONSchemaProperty[] | undefined;
134
+ allOf?: JSONSchemaProperty[] | undefined;
135
+ not?: JSONSchemaProperty | undefined;
136
+ properties?: Record<string, JSONSchemaProperty> | undefined;
89
137
  required?: string[] | undefined;
90
138
  title?: string | undefined;
91
- default?: any;
139
+ default?: unknown;
92
140
  nullable?: boolean | undefined;
93
- additionalProperties?: boolean | undefined;
94
- $defs?: Record<string, any> | undefined;
95
- definitions?: Record<string, any> | undefined;
141
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
142
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
143
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
144
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
96
145
  }, unknown>>;
97
146
  outputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
98
147
  type: z$1.ZodLiteral<"object">;
99
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
100
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
101
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
102
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
103
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
148
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
149
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
150
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
151
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
152
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
104
153
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
105
154
  title: z$1.ZodOptional<z$1.ZodString>;
106
- default: z$1.ZodOptional<z$1.ZodAny>;
155
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
107
156
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
108
157
  description: z$1.ZodOptional<z$1.ZodString>;
109
- additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
110
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
111
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
158
+ patternProperties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
159
+ additionalProperties: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>]>>;
160
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
161
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
112
162
  }, "strip", z$1.ZodTypeAny, {
113
163
  type: "object";
114
- properties: Record<string, any>;
115
164
  description?: string | undefined;
116
- anyOf?: any[] | undefined;
117
- oneOf?: any[] | undefined;
118
- allOf?: any[] | undefined;
119
- not?: any;
165
+ anyOf?: JSONSchemaProperty[] | undefined;
166
+ oneOf?: JSONSchemaProperty[] | undefined;
167
+ allOf?: JSONSchemaProperty[] | undefined;
168
+ not?: JSONSchemaProperty | undefined;
169
+ properties?: Record<string, JSONSchemaProperty> | undefined;
120
170
  required?: string[] | undefined;
121
171
  title?: string | undefined;
122
- default?: any;
172
+ default?: unknown;
123
173
  nullable?: boolean | undefined;
124
- additionalProperties?: boolean | undefined;
125
- $defs?: Record<string, any> | undefined;
126
- definitions?: Record<string, any> | undefined;
174
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
175
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
176
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
177
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
127
178
  }, {
128
179
  type: "object";
129
- properties: Record<string, any>;
130
180
  description?: string | undefined;
131
- anyOf?: any[] | undefined;
132
- oneOf?: any[] | undefined;
133
- allOf?: any[] | undefined;
134
- not?: any;
181
+ anyOf?: JSONSchemaProperty[] | undefined;
182
+ oneOf?: JSONSchemaProperty[] | undefined;
183
+ allOf?: JSONSchemaProperty[] | undefined;
184
+ not?: JSONSchemaProperty | undefined;
185
+ properties?: Record<string, JSONSchemaProperty> | undefined;
135
186
  required?: string[] | undefined;
136
187
  title?: string | undefined;
137
- default?: any;
188
+ default?: unknown;
138
189
  nullable?: boolean | undefined;
139
- additionalProperties?: boolean | undefined;
140
- $defs?: Record<string, any> | undefined;
141
- definitions?: Record<string, any> | undefined;
190
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
191
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
192
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
193
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
142
194
  }>, {
143
195
  type: "object";
144
- properties: Record<string, any>;
145
196
  description?: string | undefined;
146
- anyOf?: any[] | undefined;
147
- oneOf?: any[] | undefined;
148
- allOf?: any[] | undefined;
149
- not?: any;
197
+ anyOf?: JSONSchemaProperty[] | undefined;
198
+ oneOf?: JSONSchemaProperty[] | undefined;
199
+ allOf?: JSONSchemaProperty[] | undefined;
200
+ not?: JSONSchemaProperty | undefined;
201
+ properties?: Record<string, JSONSchemaProperty> | undefined;
150
202
  required?: string[] | undefined;
151
203
  title?: string | undefined;
152
- default?: any;
204
+ default?: unknown;
153
205
  nullable?: boolean | undefined;
154
- additionalProperties?: boolean | undefined;
155
- $defs?: Record<string, any> | undefined;
156
- definitions?: Record<string, any> | undefined;
206
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
207
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
208
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
209
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
157
210
  }, unknown>>;
158
211
  tags: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString, "many">>>;
159
212
  toolkit: z$1.ZodOptional<z$1.ZodObject<{
@@ -185,35 +238,37 @@ declare const ToolSchema: z$1.ZodObject<{
185
238
  description?: string | undefined;
186
239
  inputParameters?: {
187
240
  type: "object";
188
- properties: Record<string, any>;
189
241
  description?: string | undefined;
190
- anyOf?: any[] | undefined;
191
- oneOf?: any[] | undefined;
192
- allOf?: any[] | undefined;
193
- not?: any;
242
+ anyOf?: JSONSchemaProperty[] | undefined;
243
+ oneOf?: JSONSchemaProperty[] | undefined;
244
+ allOf?: JSONSchemaProperty[] | undefined;
245
+ not?: JSONSchemaProperty | undefined;
246
+ properties?: Record<string, JSONSchemaProperty> | undefined;
194
247
  required?: string[] | undefined;
195
248
  title?: string | undefined;
196
- default?: any;
249
+ default?: unknown;
197
250
  nullable?: boolean | undefined;
198
- additionalProperties?: boolean | undefined;
199
- $defs?: Record<string, any> | undefined;
200
- definitions?: Record<string, any> | undefined;
251
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
252
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
253
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
254
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
201
255
  } | undefined;
202
256
  outputParameters?: {
203
257
  type: "object";
204
- properties: Record<string, any>;
205
258
  description?: string | undefined;
206
- anyOf?: any[] | undefined;
207
- oneOf?: any[] | undefined;
208
- allOf?: any[] | undefined;
209
- not?: any;
259
+ anyOf?: JSONSchemaProperty[] | undefined;
260
+ oneOf?: JSONSchemaProperty[] | undefined;
261
+ allOf?: JSONSchemaProperty[] | undefined;
262
+ not?: JSONSchemaProperty | undefined;
263
+ properties?: Record<string, JSONSchemaProperty> | undefined;
210
264
  required?: string[] | undefined;
211
265
  title?: string | undefined;
212
- default?: any;
266
+ default?: unknown;
213
267
  nullable?: boolean | undefined;
214
- additionalProperties?: boolean | undefined;
215
- $defs?: Record<string, any> | undefined;
216
- definitions?: Record<string, any> | undefined;
268
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
269
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
270
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
271
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
217
272
  } | undefined;
218
273
  tags?: string[] | undefined;
219
274
  version?: string | undefined;
@@ -250,125 +305,133 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
250
305
  description: z$1.ZodOptional<z$1.ZodString>;
251
306
  inputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
252
307
  type: z$1.ZodLiteral<"object">;
253
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
254
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
255
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
256
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
257
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
308
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
309
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
310
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
311
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
312
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
258
313
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
259
314
  title: z$1.ZodOptional<z$1.ZodString>;
260
- default: z$1.ZodOptional<z$1.ZodAny>;
315
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
261
316
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
262
317
  description: z$1.ZodOptional<z$1.ZodString>;
263
- additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
264
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
265
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
318
+ patternProperties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
319
+ additionalProperties: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>]>>;
320
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
321
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
266
322
  }, "strip", z$1.ZodTypeAny, {
267
323
  type: "object";
268
- properties: Record<string, any>;
269
324
  description?: string | undefined;
270
- anyOf?: any[] | undefined;
271
- oneOf?: any[] | undefined;
272
- allOf?: any[] | undefined;
273
- not?: any;
325
+ anyOf?: JSONSchemaProperty[] | undefined;
326
+ oneOf?: JSONSchemaProperty[] | undefined;
327
+ allOf?: JSONSchemaProperty[] | undefined;
328
+ not?: JSONSchemaProperty | undefined;
329
+ properties?: Record<string, JSONSchemaProperty> | undefined;
274
330
  required?: string[] | undefined;
275
331
  title?: string | undefined;
276
- default?: any;
332
+ default?: unknown;
277
333
  nullable?: boolean | undefined;
278
- additionalProperties?: boolean | undefined;
279
- $defs?: Record<string, any> | undefined;
280
- definitions?: Record<string, any> | undefined;
334
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
335
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
336
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
337
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
281
338
  }, {
282
339
  type: "object";
283
- properties: Record<string, any>;
284
340
  description?: string | undefined;
285
- anyOf?: any[] | undefined;
286
- oneOf?: any[] | undefined;
287
- allOf?: any[] | undefined;
288
- not?: any;
341
+ anyOf?: JSONSchemaProperty[] | undefined;
342
+ oneOf?: JSONSchemaProperty[] | undefined;
343
+ allOf?: JSONSchemaProperty[] | undefined;
344
+ not?: JSONSchemaProperty | undefined;
345
+ properties?: Record<string, JSONSchemaProperty> | undefined;
289
346
  required?: string[] | undefined;
290
347
  title?: string | undefined;
291
- default?: any;
348
+ default?: unknown;
292
349
  nullable?: boolean | undefined;
293
- additionalProperties?: boolean | undefined;
294
- $defs?: Record<string, any> | undefined;
295
- definitions?: Record<string, any> | undefined;
350
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
351
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
352
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
353
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
296
354
  }>, {
297
355
  type: "object";
298
- properties: Record<string, any>;
299
356
  description?: string | undefined;
300
- anyOf?: any[] | undefined;
301
- oneOf?: any[] | undefined;
302
- allOf?: any[] | undefined;
303
- not?: any;
357
+ anyOf?: JSONSchemaProperty[] | undefined;
358
+ oneOf?: JSONSchemaProperty[] | undefined;
359
+ allOf?: JSONSchemaProperty[] | undefined;
360
+ not?: JSONSchemaProperty | undefined;
361
+ properties?: Record<string, JSONSchemaProperty> | undefined;
304
362
  required?: string[] | undefined;
305
363
  title?: string | undefined;
306
- default?: any;
364
+ default?: unknown;
307
365
  nullable?: boolean | undefined;
308
- additionalProperties?: boolean | undefined;
309
- $defs?: Record<string, any> | undefined;
310
- definitions?: Record<string, any> | undefined;
366
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
367
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
368
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
369
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
311
370
  }, unknown>>;
312
371
  outputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
313
372
  type: z$1.ZodLiteral<"object">;
314
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
315
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
316
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
317
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
318
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
373
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
374
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
375
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
376
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
377
+ properties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
319
378
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
320
379
  title: z$1.ZodOptional<z$1.ZodString>;
321
- default: z$1.ZodOptional<z$1.ZodAny>;
380
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
322
381
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
323
382
  description: z$1.ZodOptional<z$1.ZodString>;
324
- additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
325
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
326
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
383
+ patternProperties: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>;
384
+ additionalProperties: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodBoolean, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>]>>;
385
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
386
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
327
387
  }, "strip", z$1.ZodTypeAny, {
328
388
  type: "object";
329
- properties: Record<string, any>;
330
389
  description?: string | undefined;
331
- anyOf?: any[] | undefined;
332
- oneOf?: any[] | undefined;
333
- allOf?: any[] | undefined;
334
- not?: any;
390
+ anyOf?: JSONSchemaProperty[] | undefined;
391
+ oneOf?: JSONSchemaProperty[] | undefined;
392
+ allOf?: JSONSchemaProperty[] | undefined;
393
+ not?: JSONSchemaProperty | undefined;
394
+ properties?: Record<string, JSONSchemaProperty> | undefined;
335
395
  required?: string[] | undefined;
336
396
  title?: string | undefined;
337
- default?: any;
397
+ default?: unknown;
338
398
  nullable?: boolean | undefined;
339
- additionalProperties?: boolean | undefined;
340
- $defs?: Record<string, any> | undefined;
341
- definitions?: Record<string, any> | undefined;
399
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
400
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
401
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
402
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
342
403
  }, {
343
404
  type: "object";
344
- properties: Record<string, any>;
345
405
  description?: string | undefined;
346
- anyOf?: any[] | undefined;
347
- oneOf?: any[] | undefined;
348
- allOf?: any[] | undefined;
349
- not?: any;
406
+ anyOf?: JSONSchemaProperty[] | undefined;
407
+ oneOf?: JSONSchemaProperty[] | undefined;
408
+ allOf?: JSONSchemaProperty[] | undefined;
409
+ not?: JSONSchemaProperty | undefined;
410
+ properties?: Record<string, JSONSchemaProperty> | undefined;
350
411
  required?: string[] | undefined;
351
412
  title?: string | undefined;
352
- default?: any;
413
+ default?: unknown;
353
414
  nullable?: boolean | undefined;
354
- additionalProperties?: boolean | undefined;
355
- $defs?: Record<string, any> | undefined;
356
- definitions?: Record<string, any> | undefined;
415
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
416
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
417
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
418
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
357
419
  }>, {
358
420
  type: "object";
359
- properties: Record<string, any>;
360
421
  description?: string | undefined;
361
- anyOf?: any[] | undefined;
362
- oneOf?: any[] | undefined;
363
- allOf?: any[] | undefined;
364
- not?: any;
422
+ anyOf?: JSONSchemaProperty[] | undefined;
423
+ oneOf?: JSONSchemaProperty[] | undefined;
424
+ allOf?: JSONSchemaProperty[] | undefined;
425
+ not?: JSONSchemaProperty | undefined;
426
+ properties?: Record<string, JSONSchemaProperty> | undefined;
365
427
  required?: string[] | undefined;
366
428
  title?: string | undefined;
367
- default?: any;
429
+ default?: unknown;
368
430
  nullable?: boolean | undefined;
369
- additionalProperties?: boolean | undefined;
370
- $defs?: Record<string, any> | undefined;
371
- definitions?: Record<string, any> | undefined;
431
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
432
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
433
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
434
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
372
435
  }, unknown>>;
373
436
  tags: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString, "many">>>;
374
437
  toolkit: z$1.ZodOptional<z$1.ZodObject<{
@@ -400,35 +463,37 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
400
463
  description?: string | undefined;
401
464
  inputParameters?: {
402
465
  type: "object";
403
- properties: Record<string, any>;
404
466
  description?: string | undefined;
405
- anyOf?: any[] | undefined;
406
- oneOf?: any[] | undefined;
407
- allOf?: any[] | undefined;
408
- not?: any;
467
+ anyOf?: JSONSchemaProperty[] | undefined;
468
+ oneOf?: JSONSchemaProperty[] | undefined;
469
+ allOf?: JSONSchemaProperty[] | undefined;
470
+ not?: JSONSchemaProperty | undefined;
471
+ properties?: Record<string, JSONSchemaProperty> | undefined;
409
472
  required?: string[] | undefined;
410
473
  title?: string | undefined;
411
- default?: any;
474
+ default?: unknown;
412
475
  nullable?: boolean | undefined;
413
- additionalProperties?: boolean | undefined;
414
- $defs?: Record<string, any> | undefined;
415
- definitions?: Record<string, any> | undefined;
476
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
477
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
478
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
479
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
416
480
  } | undefined;
417
481
  outputParameters?: {
418
482
  type: "object";
419
- properties: Record<string, any>;
420
483
  description?: string | undefined;
421
- anyOf?: any[] | undefined;
422
- oneOf?: any[] | undefined;
423
- allOf?: any[] | undefined;
424
- not?: any;
484
+ anyOf?: JSONSchemaProperty[] | undefined;
485
+ oneOf?: JSONSchemaProperty[] | undefined;
486
+ allOf?: JSONSchemaProperty[] | undefined;
487
+ not?: JSONSchemaProperty | undefined;
488
+ properties?: Record<string, JSONSchemaProperty> | undefined;
425
489
  required?: string[] | undefined;
426
490
  title?: string | undefined;
427
- default?: any;
491
+ default?: unknown;
428
492
  nullable?: boolean | undefined;
429
- additionalProperties?: boolean | undefined;
430
- $defs?: Record<string, any> | undefined;
431
- definitions?: Record<string, any> | undefined;
493
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
494
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
495
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
496
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
432
497
  } | undefined;
433
498
  tags?: string[] | undefined;
434
499
  version?: string | undefined;
@@ -468,35 +533,37 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
468
533
  description?: string | undefined;
469
534
  inputParameters?: {
470
535
  type: "object";
471
- properties: Record<string, any>;
472
536
  description?: string | undefined;
473
- anyOf?: any[] | undefined;
474
- oneOf?: any[] | undefined;
475
- allOf?: any[] | undefined;
476
- not?: any;
537
+ anyOf?: JSONSchemaProperty[] | undefined;
538
+ oneOf?: JSONSchemaProperty[] | undefined;
539
+ allOf?: JSONSchemaProperty[] | undefined;
540
+ not?: JSONSchemaProperty | undefined;
541
+ properties?: Record<string, JSONSchemaProperty> | undefined;
477
542
  required?: string[] | undefined;
478
543
  title?: string | undefined;
479
- default?: any;
544
+ default?: unknown;
480
545
  nullable?: boolean | undefined;
481
- additionalProperties?: boolean | undefined;
482
- $defs?: Record<string, any> | undefined;
483
- definitions?: Record<string, any> | undefined;
546
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
547
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
548
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
549
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
484
550
  } | undefined;
485
551
  outputParameters?: {
486
552
  type: "object";
487
- properties: Record<string, any>;
488
553
  description?: string | undefined;
489
- anyOf?: any[] | undefined;
490
- oneOf?: any[] | undefined;
491
- allOf?: any[] | undefined;
492
- not?: any;
554
+ anyOf?: JSONSchemaProperty[] | undefined;
555
+ oneOf?: JSONSchemaProperty[] | undefined;
556
+ allOf?: JSONSchemaProperty[] | undefined;
557
+ not?: JSONSchemaProperty | undefined;
558
+ properties?: Record<string, JSONSchemaProperty> | undefined;
493
559
  required?: string[] | undefined;
494
560
  title?: string | undefined;
495
- default?: any;
561
+ default?: unknown;
496
562
  nullable?: boolean | undefined;
497
- additionalProperties?: boolean | undefined;
498
- $defs?: Record<string, any> | undefined;
499
- definitions?: Record<string, any> | undefined;
563
+ patternProperties?: Record<string, JSONSchemaProperty> | undefined;
564
+ additionalProperties?: boolean | JSONSchemaProperty | undefined;
565
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
566
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
500
567
  } | undefined;
501
568
  tags?: string[] | undefined;
502
569
  version?: string | undefined;