@composio/core 0.14.0 → 0.15.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 (52) hide show
  1. package/dist/{BaseProvider-lCxnjFKQ.d.mts → BaseProvider-BN2-Nktx.d.mts} +224 -180
  2. package/dist/{CustomTool-C_5NvBsX.mjs → CustomTool-l-j5HtEf.mjs} +1 -1
  3. package/dist/{CustomTool-CmokRT9q.d.mts → CustomTool-zjeDpZ91.d.mts} +1 -2
  4. package/dist/FileModifierErrors-B8V8_3VE.mjs +97 -0
  5. package/dist/{SsrfErrors-BQRozkeU.mjs → SsrfErrors-DNJt57GL.mjs} +5 -98
  6. package/dist/{Telemetry-llfvticE.mjs → Telemetry-DuGJSwUt.mjs} +3 -3
  7. package/dist/{cancellation-W65QRyj2.mjs → cancellation-BbJ-UQ__.mjs} +2 -2
  8. package/dist/{composio-6C8kHtqc.d.mts → composio-Bf8hnBBq.d.mts} +24 -21
  9. package/dist/{customTool.types-kFhNYuzh.d.mts → customTool.types-Bhom9a2R.d.mts} +73 -40
  10. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +2 -0
  11. package/dist/{errors-B165yJUQ.mjs → errors-BcEUHZbq.mjs} +2 -1
  12. package/dist/experimental/index.d.mts +2 -2
  13. package/dist/experimental/index.mjs +1 -1
  14. package/dist/{fileUtils.node-iPFi2o4i.mjs → fileUtils.node-BQ0fWge3.mjs} +9 -154
  15. package/dist/index.d.mts +1585 -752
  16. package/dist/index.mjs +39 -20
  17. package/dist/models/Files.node.d.mts +2 -11
  18. package/dist/models/Files.node.mjs +2 -2
  19. package/dist/models/Files.workerd.d.mts +0 -1
  20. package/dist/platform/node.d.mts +1 -2
  21. package/dist/platform/node.mjs +24 -0
  22. package/dist/platform/workerd.d.mts +1 -2
  23. package/dist/platform/workerd.mjs +30 -3
  24. package/dist/{sensitiveFileUploadPaths-B1OLsd8F.mjs → sensitiveFileUploadPaths-BVEt0peg.mjs} +64 -9
  25. package/dist/{types-yCrveqAj.d.mts → types-CePuCfD-.d.mts} +2 -3
  26. package/dist/{types-DY1r-kN9.d.mts → types-D5A2wzBl.d.mts} +8 -0
  27. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -2
  28. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -2
  29. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -2
  30. package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -4
  31. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -2
  32. package/dist/utils/ssrfGuard.node.d.mts +22 -0
  33. package/dist/utils/ssrfGuard.node.mjs +153 -0
  34. package/dist/utils/ssrfGuard.workerd.d.mts +9 -0
  35. package/dist/utils/ssrfGuard.workerd.mjs +17 -0
  36. package/package.json +17 -11
  37. package/src/errors/SsrfErrors.ts +4 -3
  38. package/src/models/ToolRouterSessionFileMount.ts +10 -3
  39. package/src/platform/node.ts +40 -0
  40. package/src/platform/types.ts +9 -0
  41. package/src/platform/workerd.ts +35 -3
  42. package/src/telemetry/redact.ts +6 -1
  43. package/src/types/tool.types.ts +52 -8
  44. package/src/utils/fileUtils.node.ts +5 -2
  45. package/src/utils/modifiers/FileToolModifier.node.ts +3 -3
  46. package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +6 -4
  47. package/src/utils/readResponseBody.ts +63 -0
  48. package/src/utils/sdk.ts +2 -2
  49. package/src/utils/sensitiveFileUploadPaths.ts +12 -9
  50. package/src/utils/ssrfGuard.node.ts +12 -8
  51. package/src/utils/ssrfGuard.workerd.ts +19 -0
  52. package/src/utils/version.ts +21 -20
@@ -1,6 +1,5 @@
1
1
  import { z as z$1 } from "zod/v3";
2
2
  import { CustomCreateResponse, GenerateURLResponse, McpCreateResponse } from "@composio/client/resources/mcp";
3
-
4
3
  //#region src/types/tool.types.d.ts
5
4
  /**
6
5
  * Toolkit is the collection of tools,
@@ -22,8 +21,53 @@ declare const ToolkitSchema: z$1.ZodObject<{
22
21
  logo?: string | undefined;
23
22
  }>;
24
23
  type Toolkit = z$1.infer<typeof ToolkitSchema>;
25
- declare const JSONSchemaPropertySchema: z$1.ZodType<any>;
26
- 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>;
27
71
  /**
28
72
  * Tool is a single action that can be performed by a toolkit.
29
73
  * Tool is simlar to an action that an app can perform.
@@ -36,125 +80,125 @@ declare const ToolSchema: z$1.ZodObject<{
36
80
  description: z$1.ZodOptional<z$1.ZodString>;
37
81
  inputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
38
82
  type: z$1.ZodLiteral<"object">;
39
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
40
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
41
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
42
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
43
- 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.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
44
88
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
45
89
  title: z$1.ZodOptional<z$1.ZodString>;
46
- default: z$1.ZodOptional<z$1.ZodAny>;
90
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
47
91
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
48
92
  description: z$1.ZodOptional<z$1.ZodString>;
49
93
  additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
50
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
51
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
94
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
95
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
52
96
  }, "strip", z$1.ZodTypeAny, {
53
97
  type: "object";
54
- properties: Record<string, any>;
98
+ properties: Record<string, JSONSchemaProperty>;
55
99
  description?: string | undefined;
56
- anyOf?: any[] | undefined;
57
- oneOf?: any[] | undefined;
58
- allOf?: any[] | undefined;
59
- not?: any;
100
+ anyOf?: JSONSchemaProperty[] | undefined;
101
+ oneOf?: JSONSchemaProperty[] | undefined;
102
+ allOf?: JSONSchemaProperty[] | undefined;
103
+ not?: JSONSchemaProperty | undefined;
60
104
  required?: string[] | undefined;
61
105
  title?: string | undefined;
62
- default?: any;
106
+ default?: unknown;
63
107
  nullable?: boolean | undefined;
64
108
  additionalProperties?: boolean | undefined;
65
- $defs?: Record<string, any> | undefined;
66
- definitions?: Record<string, any> | undefined;
109
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
110
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
67
111
  }, {
68
112
  type: "object";
69
- properties: Record<string, any>;
113
+ properties: Record<string, JSONSchemaProperty>;
70
114
  description?: string | undefined;
71
- anyOf?: any[] | undefined;
72
- oneOf?: any[] | undefined;
73
- allOf?: any[] | undefined;
74
- not?: any;
115
+ anyOf?: JSONSchemaProperty[] | undefined;
116
+ oneOf?: JSONSchemaProperty[] | undefined;
117
+ allOf?: JSONSchemaProperty[] | undefined;
118
+ not?: JSONSchemaProperty | undefined;
75
119
  required?: string[] | undefined;
76
120
  title?: string | undefined;
77
- default?: any;
121
+ default?: unknown;
78
122
  nullable?: boolean | undefined;
79
123
  additionalProperties?: boolean | undefined;
80
- $defs?: Record<string, any> | undefined;
81
- definitions?: Record<string, any> | undefined;
124
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
125
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
82
126
  }>, {
83
127
  type: "object";
84
- properties: Record<string, any>;
128
+ properties: Record<string, JSONSchemaProperty>;
85
129
  description?: string | undefined;
86
- anyOf?: any[] | undefined;
87
- oneOf?: any[] | undefined;
88
- allOf?: any[] | undefined;
89
- not?: any;
130
+ anyOf?: JSONSchemaProperty[] | undefined;
131
+ oneOf?: JSONSchemaProperty[] | undefined;
132
+ allOf?: JSONSchemaProperty[] | undefined;
133
+ not?: JSONSchemaProperty | undefined;
90
134
  required?: string[] | undefined;
91
135
  title?: string | undefined;
92
- default?: any;
136
+ default?: unknown;
93
137
  nullable?: boolean | undefined;
94
138
  additionalProperties?: boolean | undefined;
95
- $defs?: Record<string, any> | undefined;
96
- definitions?: Record<string, any> | undefined;
139
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
140
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
97
141
  }, unknown>>;
98
142
  outputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
99
143
  type: z$1.ZodLiteral<"object">;
100
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
101
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
102
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
103
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
104
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
144
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
145
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
146
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
147
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
148
+ properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
105
149
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
106
150
  title: z$1.ZodOptional<z$1.ZodString>;
107
- default: z$1.ZodOptional<z$1.ZodAny>;
151
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
108
152
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
109
153
  description: z$1.ZodOptional<z$1.ZodString>;
110
154
  additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
111
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
112
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
155
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
156
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
113
157
  }, "strip", z$1.ZodTypeAny, {
114
158
  type: "object";
115
- properties: Record<string, any>;
159
+ properties: Record<string, JSONSchemaProperty>;
116
160
  description?: string | undefined;
117
- anyOf?: any[] | undefined;
118
- oneOf?: any[] | undefined;
119
- allOf?: any[] | undefined;
120
- not?: any;
161
+ anyOf?: JSONSchemaProperty[] | undefined;
162
+ oneOf?: JSONSchemaProperty[] | undefined;
163
+ allOf?: JSONSchemaProperty[] | undefined;
164
+ not?: JSONSchemaProperty | undefined;
121
165
  required?: string[] | undefined;
122
166
  title?: string | undefined;
123
- default?: any;
167
+ default?: unknown;
124
168
  nullable?: boolean | undefined;
125
169
  additionalProperties?: boolean | undefined;
126
- $defs?: Record<string, any> | undefined;
127
- definitions?: Record<string, any> | undefined;
170
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
171
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
128
172
  }, {
129
173
  type: "object";
130
- properties: Record<string, any>;
174
+ properties: Record<string, JSONSchemaProperty>;
131
175
  description?: string | undefined;
132
- anyOf?: any[] | undefined;
133
- oneOf?: any[] | undefined;
134
- allOf?: any[] | undefined;
135
- not?: any;
176
+ anyOf?: JSONSchemaProperty[] | undefined;
177
+ oneOf?: JSONSchemaProperty[] | undefined;
178
+ allOf?: JSONSchemaProperty[] | undefined;
179
+ not?: JSONSchemaProperty | undefined;
136
180
  required?: string[] | undefined;
137
181
  title?: string | undefined;
138
- default?: any;
182
+ default?: unknown;
139
183
  nullable?: boolean | undefined;
140
184
  additionalProperties?: boolean | undefined;
141
- $defs?: Record<string, any> | undefined;
142
- definitions?: Record<string, any> | undefined;
185
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
186
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
143
187
  }>, {
144
188
  type: "object";
145
- properties: Record<string, any>;
189
+ properties: Record<string, JSONSchemaProperty>;
146
190
  description?: string | undefined;
147
- anyOf?: any[] | undefined;
148
- oneOf?: any[] | undefined;
149
- allOf?: any[] | undefined;
150
- not?: any;
191
+ anyOf?: JSONSchemaProperty[] | undefined;
192
+ oneOf?: JSONSchemaProperty[] | undefined;
193
+ allOf?: JSONSchemaProperty[] | undefined;
194
+ not?: JSONSchemaProperty | undefined;
151
195
  required?: string[] | undefined;
152
196
  title?: string | undefined;
153
- default?: any;
197
+ default?: unknown;
154
198
  nullable?: boolean | undefined;
155
199
  additionalProperties?: boolean | undefined;
156
- $defs?: Record<string, any> | undefined;
157
- definitions?: Record<string, any> | undefined;
200
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
201
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
158
202
  }, unknown>>;
159
203
  tags: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString, "many">>>;
160
204
  toolkit: z$1.ZodOptional<z$1.ZodObject<{
@@ -181,35 +225,35 @@ declare const ToolSchema: z$1.ZodObject<{
181
225
  description?: string | undefined;
182
226
  inputParameters?: {
183
227
  type: "object";
184
- properties: Record<string, any>;
228
+ properties: Record<string, JSONSchemaProperty>;
185
229
  description?: string | undefined;
186
- anyOf?: any[] | undefined;
187
- oneOf?: any[] | undefined;
188
- allOf?: any[] | undefined;
189
- not?: any;
230
+ anyOf?: JSONSchemaProperty[] | undefined;
231
+ oneOf?: JSONSchemaProperty[] | undefined;
232
+ allOf?: JSONSchemaProperty[] | undefined;
233
+ not?: JSONSchemaProperty | undefined;
190
234
  required?: string[] | undefined;
191
235
  title?: string | undefined;
192
- default?: any;
236
+ default?: unknown;
193
237
  nullable?: boolean | undefined;
194
238
  additionalProperties?: boolean | undefined;
195
- $defs?: Record<string, any> | undefined;
196
- definitions?: Record<string, any> | undefined;
239
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
240
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
197
241
  } | undefined;
198
242
  outputParameters?: {
199
243
  type: "object";
200
- properties: Record<string, any>;
244
+ properties: Record<string, JSONSchemaProperty>;
201
245
  description?: string | undefined;
202
- anyOf?: any[] | undefined;
203
- oneOf?: any[] | undefined;
204
- allOf?: any[] | undefined;
205
- not?: any;
246
+ anyOf?: JSONSchemaProperty[] | undefined;
247
+ oneOf?: JSONSchemaProperty[] | undefined;
248
+ allOf?: JSONSchemaProperty[] | undefined;
249
+ not?: JSONSchemaProperty | undefined;
206
250
  required?: string[] | undefined;
207
251
  title?: string | undefined;
208
- default?: any;
252
+ default?: unknown;
209
253
  nullable?: boolean | undefined;
210
254
  additionalProperties?: boolean | undefined;
211
- $defs?: Record<string, any> | undefined;
212
- definitions?: Record<string, any> | undefined;
255
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
256
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
213
257
  } | undefined;
214
258
  tags?: string[] | undefined;
215
259
  toolkit?: {
@@ -251,125 +295,125 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
251
295
  description: z$1.ZodOptional<z$1.ZodString>;
252
296
  inputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
253
297
  type: z$1.ZodLiteral<"object">;
254
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
255
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
256
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
257
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
258
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
298
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
299
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
300
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
301
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
302
+ properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
259
303
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
260
304
  title: z$1.ZodOptional<z$1.ZodString>;
261
- default: z$1.ZodOptional<z$1.ZodAny>;
305
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
262
306
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
263
307
  description: z$1.ZodOptional<z$1.ZodString>;
264
308
  additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
265
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
266
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
309
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
310
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
267
311
  }, "strip", z$1.ZodTypeAny, {
268
312
  type: "object";
269
- properties: Record<string, any>;
313
+ properties: Record<string, JSONSchemaProperty>;
270
314
  description?: string | undefined;
271
- anyOf?: any[] | undefined;
272
- oneOf?: any[] | undefined;
273
- allOf?: any[] | undefined;
274
- not?: any;
315
+ anyOf?: JSONSchemaProperty[] | undefined;
316
+ oneOf?: JSONSchemaProperty[] | undefined;
317
+ allOf?: JSONSchemaProperty[] | undefined;
318
+ not?: JSONSchemaProperty | undefined;
275
319
  required?: string[] | undefined;
276
320
  title?: string | undefined;
277
- default?: any;
321
+ default?: unknown;
278
322
  nullable?: boolean | undefined;
279
323
  additionalProperties?: boolean | undefined;
280
- $defs?: Record<string, any> | undefined;
281
- definitions?: Record<string, any> | undefined;
324
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
325
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
282
326
  }, {
283
327
  type: "object";
284
- properties: Record<string, any>;
328
+ properties: Record<string, JSONSchemaProperty>;
285
329
  description?: string | undefined;
286
- anyOf?: any[] | undefined;
287
- oneOf?: any[] | undefined;
288
- allOf?: any[] | undefined;
289
- not?: any;
330
+ anyOf?: JSONSchemaProperty[] | undefined;
331
+ oneOf?: JSONSchemaProperty[] | undefined;
332
+ allOf?: JSONSchemaProperty[] | undefined;
333
+ not?: JSONSchemaProperty | undefined;
290
334
  required?: string[] | undefined;
291
335
  title?: string | undefined;
292
- default?: any;
336
+ default?: unknown;
293
337
  nullable?: boolean | undefined;
294
338
  additionalProperties?: boolean | undefined;
295
- $defs?: Record<string, any> | undefined;
296
- definitions?: Record<string, any> | undefined;
339
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
340
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
297
341
  }>, {
298
342
  type: "object";
299
- properties: Record<string, any>;
343
+ properties: Record<string, JSONSchemaProperty>;
300
344
  description?: string | undefined;
301
- anyOf?: any[] | undefined;
302
- oneOf?: any[] | undefined;
303
- allOf?: any[] | undefined;
304
- not?: any;
345
+ anyOf?: JSONSchemaProperty[] | undefined;
346
+ oneOf?: JSONSchemaProperty[] | undefined;
347
+ allOf?: JSONSchemaProperty[] | undefined;
348
+ not?: JSONSchemaProperty | undefined;
305
349
  required?: string[] | undefined;
306
350
  title?: string | undefined;
307
- default?: any;
351
+ default?: unknown;
308
352
  nullable?: boolean | undefined;
309
353
  additionalProperties?: boolean | undefined;
310
- $defs?: Record<string, any> | undefined;
311
- definitions?: Record<string, any> | undefined;
354
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
355
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
312
356
  }, unknown>>;
313
357
  outputParameters: z$1.ZodOptional<z$1.ZodEffects<z$1.ZodObject<{
314
358
  type: z$1.ZodLiteral<"object">;
315
- anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
316
- oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
317
- allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<any, z$1.ZodTypeDef, any>, "many">>;
318
- not: z$1.ZodOptional<z$1.ZodType<any, z$1.ZodTypeDef, any>>;
319
- properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<any, z$1.ZodTypeDef, any>>;
359
+ anyOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
360
+ oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
361
+ allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>, "many">>;
362
+ not: z$1.ZodOptional<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
363
+ properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>;
320
364
  required: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
321
365
  title: z$1.ZodOptional<z$1.ZodString>;
322
- default: z$1.ZodOptional<z$1.ZodAny>;
366
+ default: z$1.ZodOptional<z$1.ZodUnknown>;
323
367
  nullable: z$1.ZodOptional<z$1.ZodBoolean>;
324
368
  description: z$1.ZodOptional<z$1.ZodString>;
325
369
  additionalProperties: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodBoolean>>;
326
- $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
327
- definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>>>;
370
+ $defs: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
371
+ definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<JSONSchemaProperty, z$1.ZodTypeDef, JSONSchemaProperty>>>>;
328
372
  }, "strip", z$1.ZodTypeAny, {
329
373
  type: "object";
330
- properties: Record<string, any>;
374
+ properties: Record<string, JSONSchemaProperty>;
331
375
  description?: string | undefined;
332
- anyOf?: any[] | undefined;
333
- oneOf?: any[] | undefined;
334
- allOf?: any[] | undefined;
335
- not?: any;
376
+ anyOf?: JSONSchemaProperty[] | undefined;
377
+ oneOf?: JSONSchemaProperty[] | undefined;
378
+ allOf?: JSONSchemaProperty[] | undefined;
379
+ not?: JSONSchemaProperty | undefined;
336
380
  required?: string[] | undefined;
337
381
  title?: string | undefined;
338
- default?: any;
382
+ default?: unknown;
339
383
  nullable?: boolean | undefined;
340
384
  additionalProperties?: boolean | undefined;
341
- $defs?: Record<string, any> | undefined;
342
- definitions?: Record<string, any> | undefined;
385
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
386
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
343
387
  }, {
344
388
  type: "object";
345
- properties: Record<string, any>;
389
+ properties: Record<string, JSONSchemaProperty>;
346
390
  description?: string | undefined;
347
- anyOf?: any[] | undefined;
348
- oneOf?: any[] | undefined;
349
- allOf?: any[] | undefined;
350
- not?: any;
391
+ anyOf?: JSONSchemaProperty[] | undefined;
392
+ oneOf?: JSONSchemaProperty[] | undefined;
393
+ allOf?: JSONSchemaProperty[] | undefined;
394
+ not?: JSONSchemaProperty | undefined;
351
395
  required?: string[] | undefined;
352
396
  title?: string | undefined;
353
- default?: any;
397
+ default?: unknown;
354
398
  nullable?: boolean | undefined;
355
399
  additionalProperties?: boolean | undefined;
356
- $defs?: Record<string, any> | undefined;
357
- definitions?: Record<string, any> | undefined;
400
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
401
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
358
402
  }>, {
359
403
  type: "object";
360
- properties: Record<string, any>;
404
+ properties: Record<string, JSONSchemaProperty>;
361
405
  description?: string | undefined;
362
- anyOf?: any[] | undefined;
363
- oneOf?: any[] | undefined;
364
- allOf?: any[] | undefined;
365
- not?: any;
406
+ anyOf?: JSONSchemaProperty[] | undefined;
407
+ oneOf?: JSONSchemaProperty[] | undefined;
408
+ allOf?: JSONSchemaProperty[] | undefined;
409
+ not?: JSONSchemaProperty | undefined;
366
410
  required?: string[] | undefined;
367
411
  title?: string | undefined;
368
- default?: any;
412
+ default?: unknown;
369
413
  nullable?: boolean | undefined;
370
414
  additionalProperties?: boolean | undefined;
371
- $defs?: Record<string, any> | undefined;
372
- definitions?: Record<string, any> | undefined;
415
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
416
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
373
417
  }, unknown>>;
374
418
  tags: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString, "many">>>;
375
419
  toolkit: z$1.ZodOptional<z$1.ZodObject<{
@@ -396,35 +440,35 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
396
440
  description?: string | undefined;
397
441
  inputParameters?: {
398
442
  type: "object";
399
- properties: Record<string, any>;
443
+ properties: Record<string, JSONSchemaProperty>;
400
444
  description?: string | undefined;
401
- anyOf?: any[] | undefined;
402
- oneOf?: any[] | undefined;
403
- allOf?: any[] | undefined;
404
- not?: any;
445
+ anyOf?: JSONSchemaProperty[] | undefined;
446
+ oneOf?: JSONSchemaProperty[] | undefined;
447
+ allOf?: JSONSchemaProperty[] | undefined;
448
+ not?: JSONSchemaProperty | undefined;
405
449
  required?: string[] | undefined;
406
450
  title?: string | undefined;
407
- default?: any;
451
+ default?: unknown;
408
452
  nullable?: boolean | undefined;
409
453
  additionalProperties?: boolean | undefined;
410
- $defs?: Record<string, any> | undefined;
411
- definitions?: Record<string, any> | undefined;
454
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
455
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
412
456
  } | undefined;
413
457
  outputParameters?: {
414
458
  type: "object";
415
- properties: Record<string, any>;
459
+ properties: Record<string, JSONSchemaProperty>;
416
460
  description?: string | undefined;
417
- anyOf?: any[] | undefined;
418
- oneOf?: any[] | undefined;
419
- allOf?: any[] | undefined;
420
- not?: any;
461
+ anyOf?: JSONSchemaProperty[] | undefined;
462
+ oneOf?: JSONSchemaProperty[] | undefined;
463
+ allOf?: JSONSchemaProperty[] | undefined;
464
+ not?: JSONSchemaProperty | undefined;
421
465
  required?: string[] | undefined;
422
466
  title?: string | undefined;
423
- default?: any;
467
+ default?: unknown;
424
468
  nullable?: boolean | undefined;
425
469
  additionalProperties?: boolean | undefined;
426
- $defs?: Record<string, any> | undefined;
427
- definitions?: Record<string, any> | undefined;
470
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
471
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
428
472
  } | undefined;
429
473
  tags?: string[] | undefined;
430
474
  toolkit?: {
@@ -464,35 +508,35 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
464
508
  description?: string | undefined;
465
509
  inputParameters?: {
466
510
  type: "object";
467
- properties: Record<string, any>;
511
+ properties: Record<string, JSONSchemaProperty>;
468
512
  description?: string | undefined;
469
- anyOf?: any[] | undefined;
470
- oneOf?: any[] | undefined;
471
- allOf?: any[] | undefined;
472
- not?: any;
513
+ anyOf?: JSONSchemaProperty[] | undefined;
514
+ oneOf?: JSONSchemaProperty[] | undefined;
515
+ allOf?: JSONSchemaProperty[] | undefined;
516
+ not?: JSONSchemaProperty | undefined;
473
517
  required?: string[] | undefined;
474
518
  title?: string | undefined;
475
- default?: any;
519
+ default?: unknown;
476
520
  nullable?: boolean | undefined;
477
521
  additionalProperties?: boolean | undefined;
478
- $defs?: Record<string, any> | undefined;
479
- definitions?: Record<string, any> | undefined;
522
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
523
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
480
524
  } | undefined;
481
525
  outputParameters?: {
482
526
  type: "object";
483
- properties: Record<string, any>;
527
+ properties: Record<string, JSONSchemaProperty>;
484
528
  description?: string | undefined;
485
- anyOf?: any[] | undefined;
486
- oneOf?: any[] | undefined;
487
- allOf?: any[] | undefined;
488
- not?: any;
529
+ anyOf?: JSONSchemaProperty[] | undefined;
530
+ oneOf?: JSONSchemaProperty[] | undefined;
531
+ allOf?: JSONSchemaProperty[] | undefined;
532
+ not?: JSONSchemaProperty | undefined;
489
533
  required?: string[] | undefined;
490
534
  title?: string | undefined;
491
- default?: any;
535
+ default?: unknown;
492
536
  nullable?: boolean | undefined;
493
537
  additionalProperties?: boolean | undefined;
494
- $defs?: Record<string, any> | undefined;
495
- definitions?: Record<string, any> | undefined;
538
+ $defs?: Record<string, JSONSchemaProperty> | undefined;
539
+ definitions?: Record<string, JSONSchemaProperty> | undefined;
496
540
  } | undefined;
497
541
  tags?: string[] | undefined;
498
542
  toolkit?: {
@@ -29339,7 +29383,7 @@ declare abstract class BaseProvider<TMcpResponse> {
29339
29383
  * for MCP server responses.
29340
29384
  *
29341
29385
  * @param data - The MCP URL response data
29342
- * @returns Transformed response in provider-specific format, or undefined to use default transformation
29386
+ * @returns Transformed response in provider-specific format, or undefined to use default transformation
29343
29387
  */
29344
29388
  wrapMcpServerResponse?(data: McpUrlResponse): TMcpResponse;
29345
29389
  }
@@ -1,4 +1,4 @@
1
- import { _ as ValidationError } from "./errors-B165yJUQ.mjs";
1
+ import { _ as ValidationError } from "./errors-BcEUHZbq.mjs";
2
2
  import { z as z$1 } from "zod/v3";
3
3
  import * as z4 from "zod/v4";
4
4
  import * as zodToJsonSchema from "zod-to-json-schema";
@@ -1,6 +1,5 @@
1
- import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-kFhNYuzh.mjs";
1
+ import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-Bhom9a2R.mjs";
2
2
  import { SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
3
-
4
3
  //#region src/models/CustomTool.d.ts
5
4
  /**
6
5
  * Create a custom tool for use in tool router sessions.