@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.
- package/dist/{BaseProvider-lCxnjFKQ.d.mts → BaseProvider-BN2-Nktx.d.mts} +224 -180
- package/dist/{CustomTool-C_5NvBsX.mjs → CustomTool-l-j5HtEf.mjs} +1 -1
- package/dist/{CustomTool-CmokRT9q.d.mts → CustomTool-zjeDpZ91.d.mts} +1 -2
- package/dist/FileModifierErrors-B8V8_3VE.mjs +97 -0
- package/dist/{SsrfErrors-BQRozkeU.mjs → SsrfErrors-DNJt57GL.mjs} +5 -98
- package/dist/{Telemetry-llfvticE.mjs → Telemetry-DuGJSwUt.mjs} +3 -3
- package/dist/{cancellation-W65QRyj2.mjs → cancellation-BbJ-UQ__.mjs} +2 -2
- package/dist/{composio-6C8kHtqc.d.mts → composio-Bf8hnBBq.d.mts} +24 -21
- package/dist/{customTool.types-kFhNYuzh.d.mts → customTool.types-Bhom9a2R.d.mts} +73 -40
- package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +2 -0
- package/dist/{errors-B165yJUQ.mjs → errors-BcEUHZbq.mjs} +2 -1
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/{fileUtils.node-iPFi2o4i.mjs → fileUtils.node-BQ0fWge3.mjs} +9 -154
- package/dist/index.d.mts +1585 -752
- package/dist/index.mjs +39 -20
- package/dist/models/Files.node.d.mts +2 -11
- package/dist/models/Files.node.mjs +2 -2
- package/dist/models/Files.workerd.d.mts +0 -1
- package/dist/platform/node.d.mts +1 -2
- package/dist/platform/node.mjs +24 -0
- package/dist/platform/workerd.d.mts +1 -2
- package/dist/platform/workerd.mjs +30 -3
- package/dist/{sensitiveFileUploadPaths-B1OLsd8F.mjs → sensitiveFileUploadPaths-BVEt0peg.mjs} +64 -9
- package/dist/{types-yCrveqAj.d.mts → types-CePuCfD-.d.mts} +2 -3
- package/dist/{types-DY1r-kN9.d.mts → types-D5A2wzBl.d.mts} +8 -0
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -2
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -2
- package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -4
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -2
- package/dist/utils/ssrfGuard.node.d.mts +22 -0
- package/dist/utils/ssrfGuard.node.mjs +153 -0
- package/dist/utils/ssrfGuard.workerd.d.mts +9 -0
- package/dist/utils/ssrfGuard.workerd.mjs +17 -0
- package/package.json +17 -11
- package/src/errors/SsrfErrors.ts +4 -3
- package/src/models/ToolRouterSessionFileMount.ts +10 -3
- package/src/platform/node.ts +40 -0
- package/src/platform/types.ts +9 -0
- package/src/platform/workerd.ts +35 -3
- package/src/telemetry/redact.ts +6 -1
- package/src/types/tool.types.ts +52 -8
- package/src/utils/fileUtils.node.ts +5 -2
- package/src/utils/modifiers/FileToolModifier.node.ts +3 -3
- package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +6 -4
- package/src/utils/readResponseBody.ts +63 -0
- package/src/utils/sdk.ts +2 -2
- package/src/utils/sensitiveFileUploadPaths.ts +12 -9
- package/src/utils/ssrfGuard.node.ts +12 -8
- package/src/utils/ssrfGuard.workerd.ts +19 -0
- 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
|
|
26
|
-
type
|
|
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<
|
|
40
|
-
oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
41
|
-
allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
42
|
-
not: z$1.ZodOptional<z$1.ZodType<
|
|
43
|
-
properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<
|
|
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.
|
|
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<
|
|
51
|
-
definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<
|
|
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,
|
|
98
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
55
99
|
description?: string | undefined;
|
|
56
|
-
anyOf?:
|
|
57
|
-
oneOf?:
|
|
58
|
-
allOf?:
|
|
59
|
-
not?:
|
|
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?:
|
|
106
|
+
default?: unknown;
|
|
63
107
|
nullable?: boolean | undefined;
|
|
64
108
|
additionalProperties?: boolean | undefined;
|
|
65
|
-
$defs?: Record<string,
|
|
66
|
-
definitions?: Record<string,
|
|
109
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
110
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
67
111
|
}, {
|
|
68
112
|
type: "object";
|
|
69
|
-
properties: Record<string,
|
|
113
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
70
114
|
description?: string | undefined;
|
|
71
|
-
anyOf?:
|
|
72
|
-
oneOf?:
|
|
73
|
-
allOf?:
|
|
74
|
-
not?:
|
|
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?:
|
|
121
|
+
default?: unknown;
|
|
78
122
|
nullable?: boolean | undefined;
|
|
79
123
|
additionalProperties?: boolean | undefined;
|
|
80
|
-
$defs?: Record<string,
|
|
81
|
-
definitions?: Record<string,
|
|
124
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
125
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
82
126
|
}>, {
|
|
83
127
|
type: "object";
|
|
84
|
-
properties: Record<string,
|
|
128
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
85
129
|
description?: string | undefined;
|
|
86
|
-
anyOf?:
|
|
87
|
-
oneOf?:
|
|
88
|
-
allOf?:
|
|
89
|
-
not?:
|
|
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?:
|
|
136
|
+
default?: unknown;
|
|
93
137
|
nullable?: boolean | undefined;
|
|
94
138
|
additionalProperties?: boolean | undefined;
|
|
95
|
-
$defs?: Record<string,
|
|
96
|
-
definitions?: Record<string,
|
|
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<
|
|
101
|
-
oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
102
|
-
allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
103
|
-
not: z$1.ZodOptional<z$1.ZodType<
|
|
104
|
-
properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<
|
|
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.
|
|
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<
|
|
112
|
-
definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<
|
|
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,
|
|
159
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
116
160
|
description?: string | undefined;
|
|
117
|
-
anyOf?:
|
|
118
|
-
oneOf?:
|
|
119
|
-
allOf?:
|
|
120
|
-
not?:
|
|
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?:
|
|
167
|
+
default?: unknown;
|
|
124
168
|
nullable?: boolean | undefined;
|
|
125
169
|
additionalProperties?: boolean | undefined;
|
|
126
|
-
$defs?: Record<string,
|
|
127
|
-
definitions?: Record<string,
|
|
170
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
171
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
128
172
|
}, {
|
|
129
173
|
type: "object";
|
|
130
|
-
properties: Record<string,
|
|
174
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
131
175
|
description?: string | undefined;
|
|
132
|
-
anyOf?:
|
|
133
|
-
oneOf?:
|
|
134
|
-
allOf?:
|
|
135
|
-
not?:
|
|
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?:
|
|
182
|
+
default?: unknown;
|
|
139
183
|
nullable?: boolean | undefined;
|
|
140
184
|
additionalProperties?: boolean | undefined;
|
|
141
|
-
$defs?: Record<string,
|
|
142
|
-
definitions?: Record<string,
|
|
185
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
186
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
143
187
|
}>, {
|
|
144
188
|
type: "object";
|
|
145
|
-
properties: Record<string,
|
|
189
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
146
190
|
description?: string | undefined;
|
|
147
|
-
anyOf?:
|
|
148
|
-
oneOf?:
|
|
149
|
-
allOf?:
|
|
150
|
-
not?:
|
|
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?:
|
|
197
|
+
default?: unknown;
|
|
154
198
|
nullable?: boolean | undefined;
|
|
155
199
|
additionalProperties?: boolean | undefined;
|
|
156
|
-
$defs?: Record<string,
|
|
157
|
-
definitions?: Record<string,
|
|
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,
|
|
228
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
185
229
|
description?: string | undefined;
|
|
186
|
-
anyOf?:
|
|
187
|
-
oneOf?:
|
|
188
|
-
allOf?:
|
|
189
|
-
not?:
|
|
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?:
|
|
236
|
+
default?: unknown;
|
|
193
237
|
nullable?: boolean | undefined;
|
|
194
238
|
additionalProperties?: boolean | undefined;
|
|
195
|
-
$defs?: Record<string,
|
|
196
|
-
definitions?: Record<string,
|
|
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,
|
|
244
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
201
245
|
description?: string | undefined;
|
|
202
|
-
anyOf?:
|
|
203
|
-
oneOf?:
|
|
204
|
-
allOf?:
|
|
205
|
-
not?:
|
|
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?:
|
|
252
|
+
default?: unknown;
|
|
209
253
|
nullable?: boolean | undefined;
|
|
210
254
|
additionalProperties?: boolean | undefined;
|
|
211
|
-
$defs?: Record<string,
|
|
212
|
-
definitions?: Record<string,
|
|
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<
|
|
255
|
-
oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
256
|
-
allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
257
|
-
not: z$1.ZodOptional<z$1.ZodType<
|
|
258
|
-
properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<
|
|
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.
|
|
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<
|
|
266
|
-
definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<
|
|
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,
|
|
313
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
270
314
|
description?: string | undefined;
|
|
271
|
-
anyOf?:
|
|
272
|
-
oneOf?:
|
|
273
|
-
allOf?:
|
|
274
|
-
not?:
|
|
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?:
|
|
321
|
+
default?: unknown;
|
|
278
322
|
nullable?: boolean | undefined;
|
|
279
323
|
additionalProperties?: boolean | undefined;
|
|
280
|
-
$defs?: Record<string,
|
|
281
|
-
definitions?: Record<string,
|
|
324
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
325
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
282
326
|
}, {
|
|
283
327
|
type: "object";
|
|
284
|
-
properties: Record<string,
|
|
328
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
285
329
|
description?: string | undefined;
|
|
286
|
-
anyOf?:
|
|
287
|
-
oneOf?:
|
|
288
|
-
allOf?:
|
|
289
|
-
not?:
|
|
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?:
|
|
336
|
+
default?: unknown;
|
|
293
337
|
nullable?: boolean | undefined;
|
|
294
338
|
additionalProperties?: boolean | undefined;
|
|
295
|
-
$defs?: Record<string,
|
|
296
|
-
definitions?: Record<string,
|
|
339
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
340
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
297
341
|
}>, {
|
|
298
342
|
type: "object";
|
|
299
|
-
properties: Record<string,
|
|
343
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
300
344
|
description?: string | undefined;
|
|
301
|
-
anyOf?:
|
|
302
|
-
oneOf?:
|
|
303
|
-
allOf?:
|
|
304
|
-
not?:
|
|
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?:
|
|
351
|
+
default?: unknown;
|
|
308
352
|
nullable?: boolean | undefined;
|
|
309
353
|
additionalProperties?: boolean | undefined;
|
|
310
|
-
$defs?: Record<string,
|
|
311
|
-
definitions?: Record<string,
|
|
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<
|
|
316
|
-
oneOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
317
|
-
allOf: z$1.ZodOptional<z$1.ZodArray<z$1.ZodType<
|
|
318
|
-
not: z$1.ZodOptional<z$1.ZodType<
|
|
319
|
-
properties: z$1.ZodRecord<z$1.ZodString, z$1.ZodType<
|
|
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.
|
|
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<
|
|
327
|
-
definitions: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodLazy<z$1.ZodType<
|
|
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,
|
|
374
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
331
375
|
description?: string | undefined;
|
|
332
|
-
anyOf?:
|
|
333
|
-
oneOf?:
|
|
334
|
-
allOf?:
|
|
335
|
-
not?:
|
|
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?:
|
|
382
|
+
default?: unknown;
|
|
339
383
|
nullable?: boolean | undefined;
|
|
340
384
|
additionalProperties?: boolean | undefined;
|
|
341
|
-
$defs?: Record<string,
|
|
342
|
-
definitions?: Record<string,
|
|
385
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
386
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
343
387
|
}, {
|
|
344
388
|
type: "object";
|
|
345
|
-
properties: Record<string,
|
|
389
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
346
390
|
description?: string | undefined;
|
|
347
|
-
anyOf?:
|
|
348
|
-
oneOf?:
|
|
349
|
-
allOf?:
|
|
350
|
-
not?:
|
|
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?:
|
|
397
|
+
default?: unknown;
|
|
354
398
|
nullable?: boolean | undefined;
|
|
355
399
|
additionalProperties?: boolean | undefined;
|
|
356
|
-
$defs?: Record<string,
|
|
357
|
-
definitions?: Record<string,
|
|
400
|
+
$defs?: Record<string, JSONSchemaProperty> | undefined;
|
|
401
|
+
definitions?: Record<string, JSONSchemaProperty> | undefined;
|
|
358
402
|
}>, {
|
|
359
403
|
type: "object";
|
|
360
|
-
properties: Record<string,
|
|
404
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
361
405
|
description?: string | undefined;
|
|
362
|
-
anyOf?:
|
|
363
|
-
oneOf?:
|
|
364
|
-
allOf?:
|
|
365
|
-
not?:
|
|
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?:
|
|
412
|
+
default?: unknown;
|
|
369
413
|
nullable?: boolean | undefined;
|
|
370
414
|
additionalProperties?: boolean | undefined;
|
|
371
|
-
$defs?: Record<string,
|
|
372
|
-
definitions?: Record<string,
|
|
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,
|
|
443
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
400
444
|
description?: string | undefined;
|
|
401
|
-
anyOf?:
|
|
402
|
-
oneOf?:
|
|
403
|
-
allOf?:
|
|
404
|
-
not?:
|
|
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?:
|
|
451
|
+
default?: unknown;
|
|
408
452
|
nullable?: boolean | undefined;
|
|
409
453
|
additionalProperties?: boolean | undefined;
|
|
410
|
-
$defs?: Record<string,
|
|
411
|
-
definitions?: Record<string,
|
|
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,
|
|
459
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
416
460
|
description?: string | undefined;
|
|
417
|
-
anyOf?:
|
|
418
|
-
oneOf?:
|
|
419
|
-
allOf?:
|
|
420
|
-
not?:
|
|
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?:
|
|
467
|
+
default?: unknown;
|
|
424
468
|
nullable?: boolean | undefined;
|
|
425
469
|
additionalProperties?: boolean | undefined;
|
|
426
|
-
$defs?: Record<string,
|
|
427
|
-
definitions?: Record<string,
|
|
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,
|
|
511
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
468
512
|
description?: string | undefined;
|
|
469
|
-
anyOf?:
|
|
470
|
-
oneOf?:
|
|
471
|
-
allOf?:
|
|
472
|
-
not?:
|
|
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?:
|
|
519
|
+
default?: unknown;
|
|
476
520
|
nullable?: boolean | undefined;
|
|
477
521
|
additionalProperties?: boolean | undefined;
|
|
478
|
-
$defs?: Record<string,
|
|
479
|
-
definitions?: Record<string,
|
|
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,
|
|
527
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
484
528
|
description?: string | undefined;
|
|
485
|
-
anyOf?:
|
|
486
|
-
oneOf?:
|
|
487
|
-
allOf?:
|
|
488
|
-
not?:
|
|
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?:
|
|
535
|
+
default?: unknown;
|
|
492
536
|
nullable?: boolean | undefined;
|
|
493
537
|
additionalProperties?: boolean | undefined;
|
|
494
|
-
$defs?: Record<string,
|
|
495
|
-
definitions?: Record<string,
|
|
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
|
-
|
|
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,6 +1,5 @@
|
|
|
1
|
-
import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-
|
|
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.
|