@composio/core 0.13.1 → 0.14.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/README.md +62 -247
- package/dist/BaseProvider-lCxnjFKQ.d.mts +29395 -0
- package/dist/{CustomTool-D9qwyMrv.mjs → CustomTool-C_5NvBsX.mjs} +17 -15
- package/dist/{CustomTool-DLf7JeKt.d.mts → CustomTool-CmokRT9q.d.mts} +1 -1
- package/dist/{FileModifierErrors-3fSwIWoa.mjs → SsrfErrors-BQRozkeU.mjs} +33 -1
- package/dist/{Telemetry-DhGI_J4G.mjs → Telemetry-llfvticE.mjs} +40 -8
- package/dist/{jsonSchema-CFKdONpP.mjs → cancellation-W65QRyj2.mjs} +64 -19
- package/dist/{composio-BHSQwOUz.d.mts → composio-6C8kHtqc.d.mts} +827 -808
- package/dist/{customTool.types-9yFqPjdw.d.mts → customTool.types-kFhNYuzh.d.mts} +502 -502
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -22
- package/dist/{errors-DSIlYfl5.mjs → errors-B165yJUQ.mjs} +74 -74
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/{fileUtils.node-BiO1JQsJ.mjs → fileUtils.node-iPFi2o4i.mjs} +182 -68
- package/dist/index.d.mts +1451 -1400
- package/dist/index.mjs +1408 -1378
- package/dist/models/Files.node.mjs +2 -2
- package/dist/platform/node.d.mts +1 -1
- package/dist/platform/node.mjs +3 -0
- package/dist/platform/workerd.d.mts +1 -1
- package/dist/platform/workerd.mjs +3 -0
- package/dist/sensitiveFileUploadPaths-B1OLsd8F.mjs +114 -0
- package/dist/{types-DdoCRzLj.d.mts → types-DY1r-kN9.d.mts} +9 -0
- package/dist/{types-BJLCRj9q.d.mts → types-yCrveqAj.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -5
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +10 -10
- package/src/errors/SsrfErrors.ts +47 -0
- package/src/errors/index.ts +3 -0
- package/src/index.ts +10 -0
- package/src/models/CustomTool.ts +1 -3
- package/src/models/ToolRouterSession.ts +38 -16
- package/src/models/Tools.ts +32 -2
- package/src/models/Triggers.ts +16 -76
- package/src/platform/node.ts +4 -0
- package/src/platform/types.ts +10 -0
- package/src/platform/workerd.ts +6 -0
- package/src/provider/OpenAIProvider.ts +19 -14
- package/src/telemetry/Telemetry.ts +9 -6
- package/src/telemetry/redact.ts +40 -0
- package/src/types/tool.types.ts +36 -32
- package/src/utils/fileUtils.node.ts +27 -4
- package/src/utils/jsonSchema.ts +58 -0
- package/src/utils/modifiers/FileToolModifier.node.ts +2 -1
- package/src/utils/sdk.ts +5 -4
- package/src/utils/{sensitiveFileUploadPaths.node.ts → sensitiveFileUploadPaths.ts} +29 -13
- package/src/utils/ssrfGuard.node.ts +202 -0
- package/src/utils/toolkitVersion.ts +21 -2
- package/dist/BaseProvider-Brb3o86-.d.mts +0 -29425
- package/dist/CustomTool-NpHpqdnU.d.mts +0 -74
- package/dist/buffer-PcbMMsgm.mjs +0 -33
- package/dist/composio-DfPD7BAi.d.mts +0 -5666
- package/dist/customTool.types-D-6YqFdW.d.mts +0 -2826
- package/dist/types-CCh8qvui.d.mts +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-
|
|
1
|
+
import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-lCxnjFKQ.mjs";
|
|
2
2
|
import { Composio } from "@composio/client";
|
|
3
|
-
import z
|
|
3
|
+
import z, { z as z$1 } from "zod/v3";
|
|
4
4
|
import { z as z$2 } from "zod/v4";
|
|
5
5
|
import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
|
|
6
6
|
import { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
@@ -18,9 +18,9 @@ declare const ConnectedAccountStatuses: {
|
|
|
18
18
|
readonly INACTIVE: "INACTIVE";
|
|
19
19
|
readonly REVOKED: "REVOKED";
|
|
20
20
|
};
|
|
21
|
-
declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
21
|
+
declare const ConnectedAccountStatusSchema: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
22
22
|
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
23
|
-
type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
|
|
23
|
+
type ConnectedAccountStatusEnum = z$1.infer<typeof ConnectedAccountStatusSchema>;
|
|
24
24
|
/**
|
|
25
25
|
* Sharing model for a connected account.
|
|
26
26
|
*
|
|
@@ -34,13 +34,13 @@ declare const ConnectedAccountTypes: {
|
|
|
34
34
|
readonly PRIVATE: "PRIVATE";
|
|
35
35
|
readonly SHARED: "SHARED";
|
|
36
36
|
};
|
|
37
|
-
declare const ConnectedAccountTypeSchema: z.ZodEnum<["PRIVATE", "SHARED"]>;
|
|
37
|
+
declare const ConnectedAccountTypeSchema: z$1.ZodEnum<["PRIVATE", "SHARED"]>;
|
|
38
38
|
type ConnectedAccountType = (typeof ConnectedAccountTypes)[keyof typeof ConnectedAccountTypes];
|
|
39
|
-
declare const ConnectedAccountAclConfigSchema: z.ZodObject<{
|
|
40
|
-
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
-
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
declare const ConnectedAccountAclConfigSchema: z$1.ZodObject<{
|
|
40
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
41
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
42
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
43
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
44
44
|
allowAllUsers?: boolean | undefined;
|
|
45
45
|
allowedUserIds?: string[] | undefined;
|
|
46
46
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -49,17 +49,17 @@ declare const ConnectedAccountAclConfigSchema: z.ZodObject<{
|
|
|
49
49
|
allowedUserIds?: string[] | undefined;
|
|
50
50
|
notAllowedUserIds?: string[] | undefined;
|
|
51
51
|
}>;
|
|
52
|
-
type ConnectedAccountAclConfig = z.infer<typeof ConnectedAccountAclConfigSchema>;
|
|
52
|
+
type ConnectedAccountAclConfig = z$1.infer<typeof ConnectedAccountAclConfigSchema>;
|
|
53
53
|
/**
|
|
54
54
|
* Resolved ACL as it appears on responses. All three fields are populated
|
|
55
55
|
* when the field is visible; the field itself is `undefined` for callers
|
|
56
56
|
* not authorised to see it.
|
|
57
57
|
*/
|
|
58
|
-
declare const ConnectedAccountAclConfigResponseSchema: z.ZodObject<{
|
|
59
|
-
allowAllUsers: z.ZodBoolean;
|
|
60
|
-
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
61
|
-
notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
declare const ConnectedAccountAclConfigResponseSchema: z$1.ZodObject<{
|
|
59
|
+
allowAllUsers: z$1.ZodBoolean;
|
|
60
|
+
allowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
61
|
+
notAllowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
62
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
63
63
|
allowAllUsers: boolean;
|
|
64
64
|
allowedUserIds: string[];
|
|
65
65
|
notAllowedUserIds: string[];
|
|
@@ -68,7 +68,7 @@ declare const ConnectedAccountAclConfigResponseSchema: z.ZodObject<{
|
|
|
68
68
|
allowedUserIds: string[];
|
|
69
69
|
notAllowedUserIds: string[];
|
|
70
70
|
}>;
|
|
71
|
-
type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfigResponseSchema>;
|
|
71
|
+
type ConnectedAccountAclConfigResponse = z$1.infer<typeof ConnectedAccountAclConfigResponseSchema>;
|
|
72
72
|
/**
|
|
73
73
|
* Experimental options for SHARED connections, passed at create / link time.
|
|
74
74
|
*
|
|
@@ -76,13 +76,13 @@ type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfi
|
|
|
76
76
|
* dedicated `experimental` block on every input and response so the
|
|
77
77
|
* experimental status is visible at every call site.
|
|
78
78
|
*/
|
|
79
|
-
declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
80
|
-
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
81
|
-
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
-
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
declare const ConnectedAccountExperimentalSchema: z$1.ZodObject<{
|
|
80
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
81
|
+
aclConfigForShared: z$1.ZodOptional<z$1.ZodObject<{
|
|
82
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
83
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
84
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
85
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
86
86
|
allowAllUsers?: boolean | undefined;
|
|
87
87
|
allowedUserIds?: string[] | undefined;
|
|
88
88
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -91,7 +91,7 @@ declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
|
91
91
|
allowedUserIds?: string[] | undefined;
|
|
92
92
|
notAllowedUserIds?: string[] | undefined;
|
|
93
93
|
}>>;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
95
95
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
96
96
|
aclConfigForShared?: {
|
|
97
97
|
allowAllUsers?: boolean | undefined;
|
|
@@ -106,19 +106,19 @@ declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
|
106
106
|
notAllowedUserIds?: string[] | undefined;
|
|
107
107
|
} | undefined;
|
|
108
108
|
}>;
|
|
109
|
-
type ConnectedAccountExperimental = z.infer<typeof ConnectedAccountExperimentalSchema>;
|
|
109
|
+
type ConnectedAccountExperimental = z$1.infer<typeof ConnectedAccountExperimentalSchema>;
|
|
110
110
|
/**
|
|
111
111
|
* Resolved experimental block on retrieve / list responses. `accountType`
|
|
112
112
|
* is always present when the block is; `aclConfigForShared` is only
|
|
113
113
|
* present when the caller is authorised to see the ACL.
|
|
114
114
|
*/
|
|
115
|
-
declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
116
|
-
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
117
|
-
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
118
|
-
allowAllUsers: z.ZodBoolean;
|
|
119
|
-
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
120
|
-
notAllowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
121
|
-
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
declare const ConnectedAccountExperimentalResponseSchema: z$1.ZodObject<{
|
|
116
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
117
|
+
aclConfigForShared: z$1.ZodOptional<z$1.ZodObject<{
|
|
118
|
+
allowAllUsers: z$1.ZodBoolean;
|
|
119
|
+
allowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
120
|
+
notAllowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
121
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
122
122
|
allowAllUsers: boolean;
|
|
123
123
|
allowedUserIds: string[];
|
|
124
124
|
notAllowedUserIds: string[];
|
|
@@ -127,7 +127,7 @@ declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
|
127
127
|
allowedUserIds: string[];
|
|
128
128
|
notAllowedUserIds: string[];
|
|
129
129
|
}>>;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
131
131
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
132
132
|
aclConfigForShared?: {
|
|
133
133
|
allowAllUsers: boolean;
|
|
@@ -142,20 +142,20 @@ declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
|
142
142
|
notAllowedUserIds: string[];
|
|
143
143
|
} | undefined;
|
|
144
144
|
}>;
|
|
145
|
-
type ConnectedAccountExperimentalResponse = z.infer<typeof ConnectedAccountExperimentalResponseSchema>;
|
|
146
|
-
declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
147
|
-
authConfig: z.ZodObject<{
|
|
148
|
-
id: z.ZodString;
|
|
149
|
-
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
type ConnectedAccountExperimentalResponse = z$1.infer<typeof ConnectedAccountExperimentalResponseSchema>;
|
|
146
|
+
declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
147
|
+
authConfig: z$1.ZodObject<{
|
|
148
|
+
id: z$1.ZodString;
|
|
149
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
150
150
|
id: string;
|
|
151
151
|
}, {
|
|
152
152
|
id: string;
|
|
153
153
|
}>;
|
|
154
|
-
connection: z.ZodObject<{
|
|
155
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
156
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
157
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
connection: z$1.ZodObject<{
|
|
155
|
+
data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
156
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
157
|
+
userId: z$1.ZodOptional<z$1.ZodString>;
|
|
158
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
159
159
|
userId?: string | undefined;
|
|
160
160
|
data?: Record<string, unknown> | undefined;
|
|
161
161
|
callbackUrl?: string | undefined;
|
|
@@ -164,7 +164,7 @@ declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
164
164
|
data?: Record<string, unknown> | undefined;
|
|
165
165
|
callbackUrl?: string | undefined;
|
|
166
166
|
}>;
|
|
167
|
-
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
168
168
|
authConfig: {
|
|
169
169
|
id: string;
|
|
170
170
|
};
|
|
@@ -183,34 +183,34 @@ declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
183
183
|
callbackUrl?: string | undefined;
|
|
184
184
|
};
|
|
185
185
|
}>;
|
|
186
|
-
declare const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
|
|
186
|
+
declare const DefaultCreateConnectedAccountParamsSchema: z$1.ZodType<{
|
|
187
187
|
auth_config: {
|
|
188
188
|
id: string;
|
|
189
189
|
};
|
|
190
190
|
connection: {
|
|
191
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
191
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
192
192
|
data?: Record<string, unknown>;
|
|
193
193
|
callback_url?: string;
|
|
194
194
|
user_id?: string;
|
|
195
195
|
alias?: string;
|
|
196
196
|
};
|
|
197
197
|
}>;
|
|
198
|
-
declare const CreateConnectedAccountOptionsSchema: z.ZodType<{
|
|
198
|
+
declare const CreateConnectedAccountOptionsSchema: z$1.ZodType<{
|
|
199
199
|
allowMultiple?: boolean;
|
|
200
200
|
callbackUrl?: string;
|
|
201
|
-
config?: z.infer<typeof ConnectionDataSchema>;
|
|
201
|
+
config?: z$1.infer<typeof ConnectionDataSchema>;
|
|
202
202
|
alias?: string;
|
|
203
203
|
}>;
|
|
204
|
-
type CreateConnectedAccountOptions = z.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
205
|
-
type CreateConnectedAccountParams = z.infer<typeof CreateConnectedAccountParamsSchema>;
|
|
204
|
+
type CreateConnectedAccountOptions = z$1.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
205
|
+
type CreateConnectedAccountParams = z$1.infer<typeof CreateConnectedAccountParamsSchema>;
|
|
206
206
|
/**
|
|
207
207
|
* Connected Account create response
|
|
208
208
|
*/
|
|
209
|
-
declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
|
|
210
|
-
id: z.ZodString;
|
|
211
|
-
status: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
212
|
-
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
|
|
210
|
+
id: z$1.ZodString;
|
|
211
|
+
status: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
212
|
+
redirectUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
213
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
214
214
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
215
215
|
redirectUrl: string | null;
|
|
216
216
|
id: string;
|
|
@@ -219,13 +219,13 @@ declare const CreateConnectedAccountResponseSchema: z.ZodObject<{
|
|
|
219
219
|
redirectUrl: string | null;
|
|
220
220
|
id: string;
|
|
221
221
|
}>;
|
|
222
|
-
type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
223
|
-
declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
224
|
-
id: z.ZodString; /** @deprecated Use `connectedAccount.state.authScheme` instead. */
|
|
225
|
-
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
|
|
226
|
-
isComposioManaged: z.ZodBoolean;
|
|
227
|
-
isDisabled: z.ZodBoolean;
|
|
228
|
-
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
type CreateConnectedAccountResponse = z$1.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
223
|
+
declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
|
|
224
|
+
id: z$1.ZodString; /** @deprecated Use `connectedAccount.state.authScheme` instead. */
|
|
225
|
+
authScheme: z$1.ZodOptional<z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
|
|
226
|
+
isComposioManaged: z$1.ZodBoolean;
|
|
227
|
+
isDisabled: z$1.ZodBoolean;
|
|
228
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
229
229
|
id: string;
|
|
230
230
|
isComposioManaged: boolean;
|
|
231
231
|
isDisabled: boolean;
|
|
@@ -236,10 +236,10 @@ declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
|
236
236
|
isDisabled: boolean;
|
|
237
237
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
238
238
|
}>;
|
|
239
|
-
type ConnectedAccountAuthConfig = z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
240
|
-
declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
|
|
239
|
+
type ConnectedAccountAuthConfig = z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
240
|
+
declare const ConnectedAccountRetrieveResponseSchema: z$1.ZodType<{
|
|
241
241
|
id: string;
|
|
242
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
242
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
243
243
|
wordId?: string | null;
|
|
244
244
|
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
245
245
|
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
@@ -249,34 +249,34 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodType<{
|
|
|
249
249
|
toolkit: {
|
|
250
250
|
slug: string;
|
|
251
251
|
};
|
|
252
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
252
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
253
253
|
testRequestEndpoint?: string;
|
|
254
254
|
isDisabled: boolean;
|
|
255
255
|
createdAt: string;
|
|
256
256
|
updatedAt: string;
|
|
257
257
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
258
258
|
}>;
|
|
259
|
-
type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
259
|
+
type ConnectedAccountRetrieveResponse = z$1.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
260
260
|
/**
|
|
261
261
|
* Type for list response item that doesn't include params
|
|
262
262
|
*/
|
|
263
263
|
type ConnectedAccountListResponseItem = Omit<ConnectedAccountRetrieveResponse, 'params'>;
|
|
264
|
-
declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
265
|
-
authConfigIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
266
|
-
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
-
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
268
|
-
orderBy: z.ZodOptional<z.ZodEnum<["created_at", "updated_at"]>>;
|
|
269
|
-
statuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
|
|
270
|
-
toolkitSlugs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
271
|
-
userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
264
|
+
declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
265
|
+
authConfigIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
266
|
+
cursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
267
|
+
limit: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
268
|
+
orderBy: z$1.ZodOptional<z$1.ZodEnum<["created_at", "updated_at"]>>;
|
|
269
|
+
statuses: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
|
|
270
|
+
toolkitSlugs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
271
|
+
userIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
272
272
|
/**
|
|
273
273
|
* Experimental — shape may change in future releases. Filter by sharing
|
|
274
274
|
* model. Default (omitted) returns PRIVATE only. Pass `'SHARED'` for only
|
|
275
275
|
* shared accounts, or `'ALL'` for `PRIVATE` + `SHARED`. Kept flat because
|
|
276
276
|
* the wire is a query string and can't carry nested objects.
|
|
277
277
|
*/
|
|
278
|
-
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
279
|
-
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
279
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
280
280
|
limit?: number | null | undefined;
|
|
281
281
|
authConfigIds?: string[] | null | undefined;
|
|
282
282
|
userIds?: string[] | null | undefined;
|
|
@@ -295,11 +295,11 @@ declare const ConnectedAccountListParamsSchema: z.ZodObject<{
|
|
|
295
295
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
296
296
|
toolkitSlugs?: string[] | null | undefined;
|
|
297
297
|
}>;
|
|
298
|
-
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
299
|
-
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
300
|
-
items: z.ZodArray<z.ZodType<{
|
|
298
|
+
type ConnectedAccountListParams = z$1.infer<typeof ConnectedAccountListParamsSchema>;
|
|
299
|
+
declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
|
|
300
|
+
items: z$1.ZodArray<z$1.ZodType<{
|
|
301
301
|
id: string;
|
|
302
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
302
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
303
303
|
wordId?: string | null;
|
|
304
304
|
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
305
305
|
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
@@ -309,15 +309,15 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
309
309
|
toolkit: {
|
|
310
310
|
slug: string;
|
|
311
311
|
};
|
|
312
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
312
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
313
313
|
testRequestEndpoint?: string;
|
|
314
314
|
isDisabled: boolean;
|
|
315
315
|
createdAt: string;
|
|
316
316
|
updatedAt: string;
|
|
317
317
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
318
|
-
}, z.ZodTypeDef, {
|
|
318
|
+
}, z$1.ZodTypeDef, {
|
|
319
319
|
id: string;
|
|
320
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
320
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
321
321
|
wordId?: string | null;
|
|
322
322
|
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
323
323
|
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
@@ -327,19 +327,19 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
327
327
|
toolkit: {
|
|
328
328
|
slug: string;
|
|
329
329
|
};
|
|
330
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
330
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
331
331
|
testRequestEndpoint?: string;
|
|
332
332
|
isDisabled: boolean;
|
|
333
333
|
createdAt: string;
|
|
334
334
|
updatedAt: string;
|
|
335
335
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
336
336
|
}>, "many">;
|
|
337
|
-
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
-
totalPages: z.ZodNumber;
|
|
339
|
-
}, "strip", z.ZodTypeAny, {
|
|
337
|
+
nextCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
338
|
+
totalPages: z$1.ZodNumber;
|
|
339
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
340
340
|
items: {
|
|
341
341
|
id: string;
|
|
342
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
342
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
343
343
|
wordId?: string | null;
|
|
344
344
|
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
345
345
|
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
@@ -349,7 +349,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
349
349
|
toolkit: {
|
|
350
350
|
slug: string;
|
|
351
351
|
};
|
|
352
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
352
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
353
353
|
testRequestEndpoint?: string;
|
|
354
354
|
isDisabled: boolean;
|
|
355
355
|
createdAt: string;
|
|
@@ -361,7 +361,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
361
361
|
}, {
|
|
362
362
|
items: {
|
|
363
363
|
id: string;
|
|
364
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
364
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
365
365
|
wordId?: string | null;
|
|
366
366
|
alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
367
367
|
data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
@@ -371,7 +371,7 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
371
371
|
toolkit: {
|
|
372
372
|
slug: string;
|
|
373
373
|
};
|
|
374
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
374
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
375
375
|
testRequestEndpoint?: string;
|
|
376
376
|
isDisabled: boolean;
|
|
377
377
|
createdAt: string;
|
|
@@ -381,8 +381,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
381
381
|
totalPages: number;
|
|
382
382
|
nextCursor?: string | null | undefined;
|
|
383
383
|
}>;
|
|
384
|
-
type ConnectedAccountListResponse = z.infer<typeof ConnectedAccountListResponseSchema>;
|
|
385
|
-
declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
384
|
+
type ConnectedAccountListResponse = z$1.infer<typeof ConnectedAccountListResponseSchema>;
|
|
385
|
+
declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
386
386
|
/**
|
|
387
387
|
* The url to redirect the user to post connecting their account.
|
|
388
388
|
*
|
|
@@ -392,11 +392,11 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
392
392
|
* @example https://your-app.com/callback
|
|
393
393
|
*
|
|
394
394
|
*/
|
|
395
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
395
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
396
396
|
/**
|
|
397
397
|
* Human-readable alias for the connected account. Must be unique per userId and toolkit within the project.
|
|
398
398
|
*/
|
|
399
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
399
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
400
400
|
/**
|
|
401
401
|
* Whether to allow multiple connected accounts for the same user and auth config.
|
|
402
402
|
* When `false` (default), `link()` throws `ComposioMultipleConnectedAccountsError`
|
|
@@ -404,7 +404,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
404
404
|
* the guard on `initiate()`. Pair with `alias` and a session-level
|
|
405
405
|
* `multiAccount` config to disambiguate at execution time.
|
|
406
406
|
*/
|
|
407
|
-
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
+
allowMultiple: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
408
408
|
/**
|
|
409
409
|
* Experimental options for SHARED connections. Pass `accountType: 'SHARED'`
|
|
410
410
|
* (and optionally `aclConfigForShared`) to create a connection that can
|
|
@@ -419,13 +419,13 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
419
419
|
* `allowAllUsers: true` or listing user IDs in `allowedUserIds`.
|
|
420
420
|
* `notAllowedUserIds` always wins over allow.
|
|
421
421
|
*/
|
|
422
|
-
experimental: z.ZodOptional<z.ZodObject<{
|
|
423
|
-
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
424
|
-
aclConfigForShared: z.ZodOptional<z.ZodObject<{
|
|
425
|
-
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
426
|
-
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
427
|
-
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
428
|
-
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
experimental: z$1.ZodOptional<z$1.ZodObject<{
|
|
423
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
424
|
+
aclConfigForShared: z$1.ZodOptional<z$1.ZodObject<{
|
|
425
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
426
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
427
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
428
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
429
429
|
allowAllUsers?: boolean | undefined;
|
|
430
430
|
allowedUserIds?: string[] | undefined;
|
|
431
431
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -434,7 +434,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
434
434
|
allowedUserIds?: string[] | undefined;
|
|
435
435
|
notAllowedUserIds?: string[] | undefined;
|
|
436
436
|
}>>;
|
|
437
|
-
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
438
438
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
439
439
|
aclConfigForShared?: {
|
|
440
440
|
allowAllUsers?: boolean | undefined;
|
|
@@ -449,7 +449,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
449
449
|
notAllowedUserIds?: string[] | undefined;
|
|
450
450
|
} | undefined;
|
|
451
451
|
}>>;
|
|
452
|
-
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
453
453
|
callbackUrl?: string | undefined;
|
|
454
454
|
experimental?: {
|
|
455
455
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
@@ -474,29 +474,29 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
474
474
|
alias?: string | undefined;
|
|
475
475
|
allowMultiple?: boolean | undefined;
|
|
476
476
|
}>;
|
|
477
|
-
type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
478
|
-
declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
479
|
-
redirectUrl: z.ZodString;
|
|
480
|
-
}, "strip", z.ZodTypeAny, {
|
|
477
|
+
type CreateConnectedAccountLinkOptions = z$1.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
478
|
+
declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
|
|
479
|
+
redirectUrl: z$1.ZodString;
|
|
480
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
481
481
|
redirectUrl: string;
|
|
482
482
|
}, {
|
|
483
483
|
redirectUrl: string;
|
|
484
484
|
}>;
|
|
485
|
-
type CreateConnectedAccountLinkResponse = z.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
486
|
-
declare const ConnectedAccountRefreshOptionsSchema: z.ZodObject<{
|
|
487
|
-
redirectUrl: z.ZodOptional<z.ZodString>;
|
|
488
|
-
validateCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
489
|
-
}, "strip", z.ZodTypeAny, {
|
|
485
|
+
type CreateConnectedAccountLinkResponse = z$1.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
486
|
+
declare const ConnectedAccountRefreshOptionsSchema: z$1.ZodObject<{
|
|
487
|
+
redirectUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
488
|
+
validateCredentials: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
489
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
490
490
|
redirectUrl?: string | undefined;
|
|
491
491
|
validateCredentials?: boolean | undefined;
|
|
492
492
|
}, {
|
|
493
493
|
redirectUrl?: string | undefined;
|
|
494
494
|
validateCredentials?: boolean | undefined;
|
|
495
495
|
}>;
|
|
496
|
-
type ConnectedAccountRefreshOptions = z.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
497
|
-
declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
|
|
498
|
-
enabled: z.ZodBoolean;
|
|
499
|
-
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
type ConnectedAccountRefreshOptions = z$1.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
497
|
+
declare const UpdateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
498
|
+
enabled: z$1.ZodBoolean;
|
|
499
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
500
500
|
enabled: boolean;
|
|
501
501
|
}, {
|
|
502
502
|
enabled: boolean;
|
|
@@ -513,11 +513,11 @@ declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
513
513
|
* Each field is optional, but at least one must be provided — passing an
|
|
514
514
|
* empty object is rejected as a no-op.
|
|
515
515
|
*/
|
|
516
|
-
declare const UpdateConnectedAccountAclParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
517
|
-
allowAllUsers: z.ZodOptional<z.ZodBoolean>;
|
|
518
|
-
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
519
|
-
notAllowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
520
|
-
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
declare const UpdateConnectedAccountAclParamsSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
517
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
518
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
519
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
520
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
521
521
|
allowAllUsers?: boolean | undefined;
|
|
522
522
|
allowedUserIds?: string[] | undefined;
|
|
523
523
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -534,7 +534,7 @@ declare const UpdateConnectedAccountAclParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
534
534
|
allowedUserIds?: string[] | undefined;
|
|
535
535
|
notAllowedUserIds?: string[] | undefined;
|
|
536
536
|
}>;
|
|
537
|
-
type UpdateConnectedAccountAclParams = z.infer<typeof UpdateConnectedAccountAclParamsSchema>;
|
|
537
|
+
type UpdateConnectedAccountAclParams = z$1.infer<typeof UpdateConnectedAccountAclParamsSchema>;
|
|
538
538
|
//#endregion
|
|
539
539
|
//#region src/types/connectionRequest.types.d.ts
|
|
540
540
|
interface ConnectionRequestState {
|
|
@@ -588,12 +588,12 @@ type ComposioRequestOptions = {
|
|
|
588
588
|
};
|
|
589
589
|
//#endregion
|
|
590
590
|
//#region src/types/ToolRouterSessionFilesMount.types.d.ts
|
|
591
|
-
declare const ToolRouterSessionFilesMountListOptionsSchema: z
|
|
592
|
-
path: z
|
|
593
|
-
mountId: z
|
|
594
|
-
cursor: z
|
|
595
|
-
limit: z
|
|
596
|
-
}, "strip", z
|
|
591
|
+
declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
|
|
592
|
+
path: z.ZodOptional<z.ZodString>;
|
|
593
|
+
mountId: z.ZodDefault<z.ZodString>; /** Pagination cursor from the previous response nextCursor field */
|
|
594
|
+
cursor: z.ZodOptional<z.ZodString>; /** Maximum number of files to return per page (1-500) */
|
|
595
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
597
|
mountId: string;
|
|
598
598
|
path?: string | undefined;
|
|
599
599
|
limit?: number | undefined;
|
|
@@ -604,14 +604,14 @@ declare const ToolRouterSessionFilesMountListOptionsSchema: z$1.ZodObject<{
|
|
|
604
604
|
cursor?: string | undefined;
|
|
605
605
|
mountId?: string | undefined;
|
|
606
606
|
}>;
|
|
607
|
-
type ToolRouterSessionFilesMountListOptions = z
|
|
608
|
-
declare const FileListResponseSchema: z
|
|
609
|
-
items: z
|
|
610
|
-
last_modified: z
|
|
611
|
-
mount_relative_path: z
|
|
612
|
-
sandbox_mount_prefix: z
|
|
613
|
-
size: z
|
|
614
|
-
}, "strip", z
|
|
607
|
+
type ToolRouterSessionFilesMountListOptions = z.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
608
|
+
declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
609
|
+
items: z.ZodArray<z.ZodObject<{
|
|
610
|
+
last_modified: z.ZodString;
|
|
611
|
+
mount_relative_path: z.ZodString;
|
|
612
|
+
sandbox_mount_prefix: z.ZodString;
|
|
613
|
+
size: z.ZodNumber;
|
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
615
|
last_modified: string;
|
|
616
616
|
mount_relative_path: string;
|
|
617
617
|
sandbox_mount_prefix: string;
|
|
@@ -622,8 +622,8 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
622
622
|
sandbox_mount_prefix: string;
|
|
623
623
|
size: number;
|
|
624
624
|
}>, "many">;
|
|
625
|
-
next_cursor: z
|
|
626
|
-
}, "strip", z
|
|
625
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
627
|
items: {
|
|
628
628
|
last_modified: string;
|
|
629
629
|
mount_relative_path: string;
|
|
@@ -656,12 +656,12 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
656
656
|
}[];
|
|
657
657
|
next_cursor?: string | undefined;
|
|
658
658
|
}>;
|
|
659
|
-
type FileListResponse = z
|
|
660
|
-
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z
|
|
661
|
-
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */remotePath: z
|
|
662
|
-
mountId: z
|
|
663
|
-
mimetype: z
|
|
664
|
-
}, "strip", z
|
|
659
|
+
type FileListResponse = z.infer<typeof FileListResponseSchema>;
|
|
660
|
+
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z.ZodObject<{
|
|
661
|
+
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */remotePath: z.ZodOptional<z.ZodString>;
|
|
662
|
+
mountId: z.ZodDefault<z.ZodString>; /** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
|
|
663
|
+
mimetype: z.ZodOptional<z.ZodString>;
|
|
664
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
665
|
mountId: string;
|
|
666
666
|
remotePath?: string | undefined;
|
|
667
667
|
mimetype?: string | undefined;
|
|
@@ -670,29 +670,29 @@ declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
|
|
|
670
670
|
remotePath?: string | undefined;
|
|
671
671
|
mimetype?: string | undefined;
|
|
672
672
|
}>;
|
|
673
|
-
type ToolRouterSessionFilesMountUploadOptions = z
|
|
674
|
-
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z
|
|
675
|
-
mountId: z
|
|
676
|
-
}, "strip", z
|
|
673
|
+
type ToolRouterSessionFilesMountUploadOptions = z.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
|
|
674
|
+
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z.ZodObject<{
|
|
675
|
+
mountId: z.ZodDefault<z.ZodString>;
|
|
676
|
+
}, "strip", z.ZodTypeAny, {
|
|
677
677
|
mountId: string;
|
|
678
678
|
}, {
|
|
679
679
|
mountId?: string | undefined;
|
|
680
680
|
}>;
|
|
681
|
-
type ToolRouterSessionFilesMountDownloadOptions = z
|
|
682
|
-
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z
|
|
683
|
-
mountId: z
|
|
684
|
-
}, "strip", z
|
|
681
|
+
type ToolRouterSessionFilesMountDownloadOptions = z.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
|
|
682
|
+
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z.ZodObject<{
|
|
683
|
+
mountId: z.ZodDefault<z.ZodString>;
|
|
684
|
+
}, "strip", z.ZodTypeAny, {
|
|
685
685
|
mountId: string;
|
|
686
686
|
}, {
|
|
687
687
|
mountId?: string | undefined;
|
|
688
688
|
}>;
|
|
689
|
-
type ToolRouterSessionFilesMountDeleteOptions = z
|
|
690
|
-
declare const RemoteFileDataSchema: z
|
|
691
|
-
expires_at: z
|
|
692
|
-
mount_relative_path: z
|
|
693
|
-
sandbox_mount_prefix: z
|
|
694
|
-
download_url: z
|
|
695
|
-
}, "strip", z
|
|
689
|
+
type ToolRouterSessionFilesMountDeleteOptions = z.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
|
|
690
|
+
declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
|
|
691
|
+
expires_at: z.ZodString;
|
|
692
|
+
mount_relative_path: z.ZodString;
|
|
693
|
+
sandbox_mount_prefix: z.ZodString;
|
|
694
|
+
download_url: z.ZodString;
|
|
695
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
696
|
mount_relative_path: string;
|
|
697
697
|
sandbox_mount_prefix: string;
|
|
698
698
|
expires_at: string;
|
|
@@ -714,11 +714,11 @@ declare const RemoteFileDataSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
714
714
|
download_url: string;
|
|
715
715
|
}>;
|
|
716
716
|
/** Parsed shape from API response. Use with `new RemoteFile(data)`. */
|
|
717
|
-
type RemoteFileData = z
|
|
718
|
-
declare const FileDeleteResponseSchema: z
|
|
719
|
-
mount_relative_path: z
|
|
720
|
-
sandbox_mount_prefix: z
|
|
721
|
-
}, "strip", z
|
|
717
|
+
type RemoteFileData = z.infer<typeof RemoteFileDataSchema>;
|
|
718
|
+
declare const FileDeleteResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
719
|
+
mount_relative_path: z.ZodString;
|
|
720
|
+
sandbox_mount_prefix: z.ZodString;
|
|
721
|
+
}, "strip", z.ZodTypeAny, {
|
|
722
722
|
mount_relative_path: string;
|
|
723
723
|
sandbox_mount_prefix: string;
|
|
724
724
|
}, {
|
|
@@ -731,7 +731,7 @@ declare const FileDeleteResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
731
731
|
mount_relative_path: string;
|
|
732
732
|
sandbox_mount_prefix: string;
|
|
733
733
|
}>;
|
|
734
|
-
type FileDeleteResponse = z
|
|
734
|
+
type FileDeleteResponse = z.infer<typeof FileDeleteResponseSchema>;
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region src/models/RemoteFile.d.ts
|
|
737
737
|
/**
|
|
@@ -940,8 +940,8 @@ declare const SessionPreset: {
|
|
|
940
940
|
readonly DIRECT_TOOLS: "direct_tools";
|
|
941
941
|
};
|
|
942
942
|
type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
|
|
943
|
-
declare const MCPServerTypeSchema: z
|
|
944
|
-
type MCPServerType = z
|
|
943
|
+
declare const MCPServerTypeSchema: z.ZodEnum<["http", "sse"]>;
|
|
944
|
+
type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
|
|
945
945
|
/**
|
|
946
946
|
* Sandbox compute tier for the session sandbox.
|
|
947
947
|
*
|
|
@@ -954,14 +954,14 @@ type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
|
954
954
|
*
|
|
955
955
|
* Defaults to `standard` server-side when omitted.
|
|
956
956
|
*/
|
|
957
|
-
declare const SandboxSizeSchema: z
|
|
958
|
-
type SandboxSize = z
|
|
959
|
-
declare const ToolRouterSandboxConfigSchema: z
|
|
960
|
-
enable: z
|
|
961
|
-
enableProxyExecution: z
|
|
962
|
-
autoOffloadThreshold: z
|
|
963
|
-
sandboxSize: z
|
|
964
|
-
}, "strip", z
|
|
957
|
+
declare const SandboxSizeSchema: z.ZodEnum<["standard", "medium", "large", "xlarge"]>;
|
|
958
|
+
type SandboxSize = z.infer<typeof SandboxSizeSchema>;
|
|
959
|
+
declare const ToolRouterSandboxConfigSchema: z.ZodObject<{
|
|
960
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
961
|
+
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
962
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
963
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
964
|
+
}, "strip", z.ZodTypeAny, {
|
|
965
965
|
enable: boolean;
|
|
966
966
|
enableProxyExecution?: boolean | undefined;
|
|
967
967
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -972,67 +972,67 @@ declare const ToolRouterSandboxConfigSchema: z$1.ZodObject<{
|
|
|
972
972
|
autoOffloadThreshold?: number | undefined;
|
|
973
973
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
974
974
|
}>;
|
|
975
|
-
type ToolRouterSandboxConfig = z
|
|
976
|
-
declare const ToolRouterConfigManageConnectionsSchema: z
|
|
977
|
-
enable: z
|
|
978
|
-
callbackUrl: z
|
|
979
|
-
waitForConnections: z
|
|
980
|
-
}, "strict", z
|
|
981
|
-
callbackUrl?: string | undefined;
|
|
975
|
+
type ToolRouterSandboxConfig = z.infer<typeof ToolRouterSandboxConfigSchema>;
|
|
976
|
+
declare const ToolRouterConfigManageConnectionsSchema: z.ZodObject<{
|
|
977
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
978
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
979
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
980
|
+
}, "strict", z.ZodTypeAny, {
|
|
982
981
|
enable?: boolean | undefined;
|
|
982
|
+
callbackUrl?: string | undefined;
|
|
983
983
|
waitForConnections?: boolean | undefined;
|
|
984
984
|
}, {
|
|
985
|
-
callbackUrl?: string | undefined;
|
|
986
985
|
enable?: boolean | undefined;
|
|
986
|
+
callbackUrl?: string | undefined;
|
|
987
987
|
waitForConnections?: boolean | undefined;
|
|
988
988
|
}>;
|
|
989
|
-
declare const ToolRouterToolkitsParamSchema: z
|
|
990
|
-
declare const ToolRouterToolkitsDisabledConfigSchema: z
|
|
991
|
-
disable: z
|
|
992
|
-
}, "strict", z
|
|
989
|
+
declare const ToolRouterToolkitsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
990
|
+
declare const ToolRouterToolkitsDisabledConfigSchema: z.ZodObject<{
|
|
991
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
992
|
+
}, "strict", z.ZodTypeAny, {
|
|
993
993
|
disable: string[];
|
|
994
994
|
}, {
|
|
995
995
|
disable: string[];
|
|
996
996
|
}>;
|
|
997
|
-
declare const ToolRouterToolkitsEnabledConfigSchema: z
|
|
998
|
-
enable: z
|
|
999
|
-
}, "strict", z
|
|
997
|
+
declare const ToolRouterToolkitsEnabledConfigSchema: z.ZodObject<{
|
|
998
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
999
|
+
}, "strict", z.ZodTypeAny, {
|
|
1000
1000
|
enable: string[];
|
|
1001
1001
|
}, {
|
|
1002
1002
|
enable: string[];
|
|
1003
1003
|
}>;
|
|
1004
|
-
declare const ToolRouterManageConnectionsConfigSchema: z
|
|
1005
|
-
enable: z
|
|
1006
|
-
callbackUrl: z
|
|
1007
|
-
}, "strip", z
|
|
1004
|
+
declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
|
|
1005
|
+
enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1006
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
}, "strip", z.ZodTypeAny, {
|
|
1008
1008
|
enable: boolean;
|
|
1009
1009
|
callbackUrl?: string | undefined;
|
|
1010
1010
|
}, {
|
|
1011
|
-
callbackUrl?: string | undefined;
|
|
1012
1011
|
enable?: boolean | undefined;
|
|
1012
|
+
callbackUrl?: string | undefined;
|
|
1013
1013
|
}>;
|
|
1014
|
-
declare const ToolRouterTagsParamSchema: z
|
|
1015
|
-
declare const ToolRouterTagsEnableDisableSchema: z
|
|
1016
|
-
enable: z
|
|
1017
|
-
disable: z
|
|
1018
|
-
}, "strict", z
|
|
1014
|
+
declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
1015
|
+
declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
|
|
1016
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1017
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1018
|
+
}, "strict", z.ZodTypeAny, {
|
|
1019
1019
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1020
1020
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1021
1021
|
}, {
|
|
1022
1022
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1023
1023
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1024
1024
|
}>;
|
|
1025
|
-
declare const ToolRouterConfigTagsSchema: z
|
|
1026
|
-
enable: z
|
|
1027
|
-
disable: z
|
|
1028
|
-
}, "strict", z
|
|
1025
|
+
declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1026
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1027
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1028
|
+
}, "strict", z.ZodTypeAny, {
|
|
1029
1029
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1030
1030
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1031
1031
|
}, {
|
|
1032
1032
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1033
1033
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1034
1034
|
}>]>;
|
|
1035
|
-
type ToolRouterConfigTags = z
|
|
1035
|
+
type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
1038
1038
|
* @example
|
|
@@ -1055,32 +1055,32 @@ type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
|
1055
1055
|
* }
|
|
1056
1056
|
* ```
|
|
1057
1057
|
*/
|
|
1058
|
-
declare const ToolRouterToolsParamSchema: z
|
|
1059
|
-
type ToolRouterToolsParam = z
|
|
1060
|
-
declare const ToolRouterConfigToolsSchema: z
|
|
1061
|
-
enable: z
|
|
1062
|
-
}, "strict", z
|
|
1058
|
+
declare const ToolRouterToolsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
1059
|
+
type ToolRouterToolsParam = z.infer<typeof ToolRouterToolsParamSchema>;
|
|
1060
|
+
declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1061
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1062
|
+
}, "strict", z.ZodTypeAny, {
|
|
1063
1063
|
enable: string[];
|
|
1064
1064
|
}, {
|
|
1065
1065
|
enable: string[];
|
|
1066
|
-
}>, z
|
|
1067
|
-
disable: z
|
|
1068
|
-
}, "strict", z
|
|
1066
|
+
}>, z.ZodObject<{
|
|
1067
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1068
|
+
}, "strict", z.ZodTypeAny, {
|
|
1069
1069
|
disable: string[];
|
|
1070
1070
|
}, {
|
|
1071
1071
|
disable: string[];
|
|
1072
|
-
}>, z
|
|
1073
|
-
tags: z
|
|
1074
|
-
enable: z
|
|
1075
|
-
disable: z
|
|
1076
|
-
}, "strict", z
|
|
1072
|
+
}>, z.ZodObject<{
|
|
1073
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1074
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1075
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1076
|
+
}, "strict", z.ZodTypeAny, {
|
|
1077
1077
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1078
1078
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1079
1079
|
}, {
|
|
1080
1080
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1081
1081
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1082
1082
|
}>]>;
|
|
1083
|
-
}, "strict", z
|
|
1083
|
+
}, "strict", z.ZodTypeAny, {
|
|
1084
1084
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1085
1085
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1086
1086
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1109,34 +1109,34 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1109
1109
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1110
1110
|
};
|
|
1111
1111
|
}>;
|
|
1112
|
-
type ToolRouterConfigTools = z
|
|
1113
|
-
declare const ToolRouterCreateSessionConfigSchema: z
|
|
1114
|
-
sessionPreset: z
|
|
1115
|
-
mcp: z
|
|
1116
|
-
tools: z
|
|
1117
|
-
enable: z
|
|
1118
|
-
}, "strict", z
|
|
1112
|
+
type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
|
|
1113
|
+
declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1114
|
+
sessionPreset: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"direct_tools">>>;
|
|
1115
|
+
mcp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1116
|
+
tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1117
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1118
|
+
}, "strict", z.ZodTypeAny, {
|
|
1119
1119
|
enable: string[];
|
|
1120
1120
|
}, {
|
|
1121
1121
|
enable: string[];
|
|
1122
|
-
}>, z
|
|
1123
|
-
disable: z
|
|
1124
|
-
}, "strict", z
|
|
1122
|
+
}>, z.ZodObject<{
|
|
1123
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1124
|
+
}, "strict", z.ZodTypeAny, {
|
|
1125
1125
|
disable: string[];
|
|
1126
1126
|
}, {
|
|
1127
1127
|
disable: string[];
|
|
1128
|
-
}>, z
|
|
1129
|
-
tags: z
|
|
1130
|
-
enable: z
|
|
1131
|
-
disable: z
|
|
1132
|
-
}, "strict", z
|
|
1128
|
+
}>, z.ZodObject<{
|
|
1129
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1130
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1131
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1132
|
+
}, "strict", z.ZodTypeAny, {
|
|
1133
1133
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1134
1134
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1135
1135
|
}, {
|
|
1136
1136
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1137
1137
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1138
1138
|
}>]>;
|
|
1139
|
-
}, "strict", z
|
|
1139
|
+
}, "strict", z.ZodTypeAny, {
|
|
1140
1140
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1141
1141
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1142
1142
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1165,50 +1165,50 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1165
1165
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1166
1166
|
};
|
|
1167
1167
|
}>]>>>>;
|
|
1168
|
-
tags: z
|
|
1169
|
-
enable: z
|
|
1170
|
-
disable: z
|
|
1171
|
-
}, "strict", z
|
|
1168
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1169
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1170
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1171
|
+
}, "strict", z.ZodTypeAny, {
|
|
1172
1172
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1173
1173
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1174
1174
|
}, {
|
|
1175
1175
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1176
1176
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1177
1177
|
}>]>>>;
|
|
1178
|
-
toolkits: z
|
|
1179
|
-
disable: z
|
|
1180
|
-
}, "strict", z
|
|
1178
|
+
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1179
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1180
|
+
}, "strict", z.ZodTypeAny, {
|
|
1181
1181
|
disable: string[];
|
|
1182
1182
|
}, {
|
|
1183
1183
|
disable: string[];
|
|
1184
|
-
}>, z
|
|
1185
|
-
enable: z
|
|
1186
|
-
}, "strict", z
|
|
1184
|
+
}>, z.ZodObject<{
|
|
1185
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1186
|
+
}, "strict", z.ZodTypeAny, {
|
|
1187
1187
|
enable: string[];
|
|
1188
1188
|
}, {
|
|
1189
1189
|
enable: string[];
|
|
1190
1190
|
}>]>>>;
|
|
1191
|
-
authConfigs: z
|
|
1192
|
-
connectedAccounts: z
|
|
1193
|
-
manageConnections: z
|
|
1194
|
-
enable: z
|
|
1195
|
-
callbackUrl: z
|
|
1196
|
-
waitForConnections: z
|
|
1197
|
-
}, "strict", z
|
|
1198
|
-
callbackUrl?: string | undefined;
|
|
1191
|
+
authConfigs: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1192
|
+
connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
1193
|
+
manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
1194
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1195
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
1197
|
+
}, "strict", z.ZodTypeAny, {
|
|
1199
1198
|
enable?: boolean | undefined;
|
|
1199
|
+
callbackUrl?: string | undefined;
|
|
1200
1200
|
waitForConnections?: boolean | undefined;
|
|
1201
1201
|
}, {
|
|
1202
|
-
callbackUrl?: string | undefined;
|
|
1203
1202
|
enable?: boolean | undefined;
|
|
1203
|
+
callbackUrl?: string | undefined;
|
|
1204
1204
|
waitForConnections?: boolean | undefined;
|
|
1205
1205
|
}>]>>>>;
|
|
1206
|
-
sandbox: z
|
|
1207
|
-
enable: z
|
|
1208
|
-
enableProxyExecution: z
|
|
1209
|
-
autoOffloadThreshold: z
|
|
1210
|
-
sandboxSize: z
|
|
1211
|
-
}, "strip", z
|
|
1206
|
+
sandbox: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1207
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1208
|
+
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1209
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1210
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1211
|
+
}, "strip", z.ZodTypeAny, {
|
|
1212
1212
|
enable: boolean;
|
|
1213
1213
|
enableProxyExecution?: boolean | undefined;
|
|
1214
1214
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1219,12 +1219,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1219
1219
|
autoOffloadThreshold?: number | undefined;
|
|
1220
1220
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1221
1221
|
}>>>;
|
|
1222
|
-
workbench: z
|
|
1223
|
-
enable: z
|
|
1224
|
-
enableProxyExecution: z
|
|
1225
|
-
autoOffloadThreshold: z
|
|
1226
|
-
sandboxSize: z
|
|
1227
|
-
}, "strip", z
|
|
1222
|
+
workbench: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1223
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1224
|
+
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1225
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1226
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1227
|
+
}, "strip", z.ZodTypeAny, {
|
|
1228
1228
|
enable: boolean;
|
|
1229
1229
|
enableProxyExecution?: boolean | undefined;
|
|
1230
1230
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1235,11 +1235,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1235
1235
|
autoOffloadThreshold?: number | undefined;
|
|
1236
1236
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1237
1237
|
}>>>;
|
|
1238
|
-
multiAccount: z
|
|
1239
|
-
enable: z
|
|
1240
|
-
maxAccountsPerToolkit: z
|
|
1241
|
-
requireExplicitSelection: z
|
|
1242
|
-
}, "strip", z
|
|
1238
|
+
multiAccount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1239
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1240
|
+
maxAccountsPerToolkit: z.ZodOptional<z.ZodNumber>;
|
|
1241
|
+
requireExplicitSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1242
|
+
}, "strip", z.ZodTypeAny, {
|
|
1243
1243
|
enable: boolean;
|
|
1244
1244
|
maxAccountsPerToolkit?: number | undefined;
|
|
1245
1245
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -1248,24 +1248,24 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1248
1248
|
maxAccountsPerToolkit?: number | undefined;
|
|
1249
1249
|
requireExplicitSelection?: boolean | undefined;
|
|
1250
1250
|
}>>>;
|
|
1251
|
-
preload: z
|
|
1252
|
-
tools: z
|
|
1253
|
-
}, "strict", z
|
|
1251
|
+
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1252
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
1253
|
+
}, "strict", z.ZodTypeAny, {
|
|
1254
1254
|
tools?: string[] | "all" | undefined;
|
|
1255
1255
|
}, {
|
|
1256
1256
|
tools?: string[] | "all" | undefined;
|
|
1257
1257
|
}>>>;
|
|
1258
|
-
experimental: z
|
|
1259
|
-
assistivePrompt: z
|
|
1260
|
-
userTimezone: z
|
|
1261
|
-
}, "strip", z
|
|
1258
|
+
experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1259
|
+
assistivePrompt: z.ZodOptional<z.ZodObject<{
|
|
1260
|
+
userTimezone: z.ZodOptional<z.ZodString>;
|
|
1261
|
+
}, "strip", z.ZodTypeAny, {
|
|
1262
1262
|
userTimezone?: string | undefined;
|
|
1263
1263
|
}, {
|
|
1264
1264
|
userTimezone?: string | undefined;
|
|
1265
1265
|
}>>;
|
|
1266
|
-
customTools: z
|
|
1267
|
-
customToolkits: z
|
|
1268
|
-
}, "strip", z
|
|
1266
|
+
customTools: z.ZodOptional<z.ZodArray<z.ZodType<CustomTool, z.ZodTypeDef, CustomTool>, "many">>;
|
|
1267
|
+
customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<CustomToolkit, z.ZodTypeDef, CustomToolkit>, "many">>;
|
|
1268
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
1269
|
assistivePrompt?: {
|
|
1270
1270
|
userTimezone?: string | undefined;
|
|
1271
1271
|
} | undefined;
|
|
@@ -1278,7 +1278,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1278
1278
|
customTools?: CustomTool[] | undefined;
|
|
1279
1279
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1280
1280
|
}>>>;
|
|
1281
|
-
}, "strip", z
|
|
1281
|
+
}, "strip", z.ZodTypeAny, {
|
|
1282
1282
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1283
1283
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1284
1284
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1306,8 +1306,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1306
1306
|
mcp?: boolean | undefined;
|
|
1307
1307
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1308
1308
|
manageConnections?: boolean | {
|
|
1309
|
-
callbackUrl?: string | undefined;
|
|
1310
1309
|
enable?: boolean | undefined;
|
|
1310
|
+
callbackUrl?: string | undefined;
|
|
1311
1311
|
waitForConnections?: boolean | undefined;
|
|
1312
1312
|
} | undefined;
|
|
1313
1313
|
sandbox?: {
|
|
@@ -1362,8 +1362,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1362
1362
|
mcp?: boolean | undefined;
|
|
1363
1363
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1364
1364
|
manageConnections?: boolean | {
|
|
1365
|
-
callbackUrl?: string | undefined;
|
|
1366
1365
|
enable?: boolean | undefined;
|
|
1366
|
+
callbackUrl?: string | undefined;
|
|
1367
1367
|
waitForConnections?: boolean | undefined;
|
|
1368
1368
|
} | undefined;
|
|
1369
1369
|
sandbox?: {
|
|
@@ -1418,8 +1418,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1418
1418
|
mcp?: boolean | undefined;
|
|
1419
1419
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1420
1420
|
manageConnections?: boolean | {
|
|
1421
|
-
callbackUrl?: string | undefined;
|
|
1422
1421
|
enable?: boolean | undefined;
|
|
1422
|
+
callbackUrl?: string | undefined;
|
|
1423
1423
|
waitForConnections?: boolean | undefined;
|
|
1424
1424
|
} | undefined;
|
|
1425
1425
|
sandbox?: {
|
|
@@ -1474,8 +1474,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1474
1474
|
mcp?: boolean | undefined;
|
|
1475
1475
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1476
1476
|
manageConnections?: boolean | {
|
|
1477
|
-
callbackUrl?: string | undefined;
|
|
1478
1477
|
enable?: boolean | undefined;
|
|
1478
|
+
callbackUrl?: string | undefined;
|
|
1479
1479
|
waitForConnections?: boolean | undefined;
|
|
1480
1480
|
} | undefined;
|
|
1481
1481
|
sandbox?: {
|
|
@@ -1530,8 +1530,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1530
1530
|
mcp?: boolean | undefined;
|
|
1531
1531
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1532
1532
|
manageConnections?: boolean | {
|
|
1533
|
-
callbackUrl?: string | undefined;
|
|
1534
1533
|
enable?: boolean | undefined;
|
|
1534
|
+
callbackUrl?: string | undefined;
|
|
1535
1535
|
waitForConnections?: boolean | undefined;
|
|
1536
1536
|
} | undefined;
|
|
1537
1537
|
sandbox?: {
|
|
@@ -1584,19 +1584,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1584
1584
|
* @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
|
|
1585
1585
|
* @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
|
|
1586
1586
|
*/
|
|
1587
|
-
type ToolRouterCreateSessionConfig = z
|
|
1588
|
-
declare const ToolkitConnectionStateSchema: z
|
|
1589
|
-
slug: z
|
|
1590
|
-
name: z
|
|
1591
|
-
logo: z
|
|
1592
|
-
isNoAuth: z
|
|
1593
|
-
connection: z
|
|
1594
|
-
isActive: z
|
|
1595
|
-
authConfig: z
|
|
1596
|
-
id: z
|
|
1597
|
-
mode: z
|
|
1598
|
-
isComposioManaged: z
|
|
1599
|
-
}, "strip", z
|
|
1587
|
+
type ToolRouterCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
1588
|
+
declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
1589
|
+
slug: z.ZodString;
|
|
1590
|
+
name: z.ZodString;
|
|
1591
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
isNoAuth: z.ZodDefault<z.ZodBoolean>;
|
|
1593
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
1594
|
+
isActive: z.ZodBoolean;
|
|
1595
|
+
authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1596
|
+
id: z.ZodString;
|
|
1597
|
+
mode: z.ZodString;
|
|
1598
|
+
isComposioManaged: z.ZodBoolean;
|
|
1599
|
+
}, "strip", z.ZodTypeAny, {
|
|
1600
1600
|
id: string;
|
|
1601
1601
|
mode: string;
|
|
1602
1602
|
isComposioManaged: boolean;
|
|
@@ -1605,17 +1605,17 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1605
1605
|
mode: string;
|
|
1606
1606
|
isComposioManaged: boolean;
|
|
1607
1607
|
}>>>;
|
|
1608
|
-
connectedAccount: z
|
|
1609
|
-
id: z
|
|
1610
|
-
status: z
|
|
1611
|
-
}, "strip", z
|
|
1608
|
+
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1609
|
+
id: z.ZodString;
|
|
1610
|
+
status: z.ZodString;
|
|
1611
|
+
}, "strip", z.ZodTypeAny, {
|
|
1612
1612
|
status: string;
|
|
1613
1613
|
id: string;
|
|
1614
1614
|
}, {
|
|
1615
1615
|
status: string;
|
|
1616
1616
|
id: string;
|
|
1617
1617
|
}>>;
|
|
1618
|
-
}, "strip", z
|
|
1618
|
+
}, "strip", z.ZodTypeAny, {
|
|
1619
1619
|
isActive: boolean;
|
|
1620
1620
|
authConfig?: {
|
|
1621
1621
|
id: string;
|
|
@@ -1638,7 +1638,7 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1638
1638
|
id: string;
|
|
1639
1639
|
} | undefined;
|
|
1640
1640
|
}>>;
|
|
1641
|
-
}, "strip", z
|
|
1641
|
+
}, "strip", z.ZodTypeAny, {
|
|
1642
1642
|
slug: string;
|
|
1643
1643
|
name: string;
|
|
1644
1644
|
isNoAuth: boolean;
|
|
@@ -1673,19 +1673,19 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1673
1673
|
} | undefined;
|
|
1674
1674
|
} | undefined;
|
|
1675
1675
|
}>;
|
|
1676
|
-
declare const ToolkitConnectionsDetailsSchema: z
|
|
1677
|
-
items: z
|
|
1678
|
-
slug: z
|
|
1679
|
-
name: z
|
|
1680
|
-
logo: z
|
|
1681
|
-
isNoAuth: z
|
|
1682
|
-
connection: z
|
|
1683
|
-
isActive: z
|
|
1684
|
-
authConfig: z
|
|
1685
|
-
id: z
|
|
1686
|
-
mode: z
|
|
1687
|
-
isComposioManaged: z
|
|
1688
|
-
}, "strip", z
|
|
1676
|
+
declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
1677
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1678
|
+
slug: z.ZodString;
|
|
1679
|
+
name: z.ZodString;
|
|
1680
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
1681
|
+
isNoAuth: z.ZodDefault<z.ZodBoolean>;
|
|
1682
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
1683
|
+
isActive: z.ZodBoolean;
|
|
1684
|
+
authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1685
|
+
id: z.ZodString;
|
|
1686
|
+
mode: z.ZodString;
|
|
1687
|
+
isComposioManaged: z.ZodBoolean;
|
|
1688
|
+
}, "strip", z.ZodTypeAny, {
|
|
1689
1689
|
id: string;
|
|
1690
1690
|
mode: string;
|
|
1691
1691
|
isComposioManaged: boolean;
|
|
@@ -1694,17 +1694,17 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1694
1694
|
mode: string;
|
|
1695
1695
|
isComposioManaged: boolean;
|
|
1696
1696
|
}>>>;
|
|
1697
|
-
connectedAccount: z
|
|
1698
|
-
id: z
|
|
1699
|
-
status: z
|
|
1700
|
-
}, "strip", z
|
|
1697
|
+
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1698
|
+
id: z.ZodString;
|
|
1699
|
+
status: z.ZodString;
|
|
1700
|
+
}, "strip", z.ZodTypeAny, {
|
|
1701
1701
|
status: string;
|
|
1702
1702
|
id: string;
|
|
1703
1703
|
}, {
|
|
1704
1704
|
status: string;
|
|
1705
1705
|
id: string;
|
|
1706
1706
|
}>>;
|
|
1707
|
-
}, "strip", z
|
|
1707
|
+
}, "strip", z.ZodTypeAny, {
|
|
1708
1708
|
isActive: boolean;
|
|
1709
1709
|
authConfig?: {
|
|
1710
1710
|
id: string;
|
|
@@ -1727,7 +1727,7 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1727
1727
|
id: string;
|
|
1728
1728
|
} | undefined;
|
|
1729
1729
|
}>>;
|
|
1730
|
-
}, "strip", z
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1731
1731
|
slug: string;
|
|
1732
1732
|
name: string;
|
|
1733
1733
|
isNoAuth: boolean;
|
|
@@ -1762,9 +1762,9 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1762
1762
|
} | undefined;
|
|
1763
1763
|
} | undefined;
|
|
1764
1764
|
}>, "many">;
|
|
1765
|
-
cursor: z
|
|
1766
|
-
totalPages: z
|
|
1767
|
-
}, "strip", z
|
|
1765
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1766
|
+
totalPages: z.ZodNumber;
|
|
1767
|
+
}, "strip", z.ZodTypeAny, {
|
|
1768
1768
|
items: {
|
|
1769
1769
|
slug: string;
|
|
1770
1770
|
name: string;
|
|
@@ -1807,13 +1807,13 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1807
1807
|
totalPages: number;
|
|
1808
1808
|
cursor?: string | undefined;
|
|
1809
1809
|
}>;
|
|
1810
|
-
type ToolkitConnectionsDetails = z
|
|
1811
|
-
type ToolkitConnectionState = z
|
|
1812
|
-
declare const ToolRouterMCPServerConfigSchema: z
|
|
1813
|
-
type: z
|
|
1814
|
-
url: z
|
|
1815
|
-
headers: z
|
|
1816
|
-
}, "strip", z
|
|
1810
|
+
type ToolkitConnectionsDetails = z.infer<typeof ToolkitConnectionsDetailsSchema>;
|
|
1811
|
+
type ToolkitConnectionState = z.infer<typeof ToolkitConnectionStateSchema>;
|
|
1812
|
+
declare const ToolRouterMCPServerConfigSchema: z.ZodObject<{
|
|
1813
|
+
type: z.ZodEnum<["http", "sse"]>;
|
|
1814
|
+
url: z.ZodString;
|
|
1815
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1816
|
+
}, "strip", z.ZodTypeAny, {
|
|
1817
1817
|
type: "http" | "sse";
|
|
1818
1818
|
url: string;
|
|
1819
1819
|
headers?: Record<string, string> | undefined;
|
|
@@ -1822,19 +1822,19 @@ declare const ToolRouterMCPServerConfigSchema: z$1.ZodObject<{
|
|
|
1822
1822
|
url: string;
|
|
1823
1823
|
headers?: Record<string, string> | undefined;
|
|
1824
1824
|
}>;
|
|
1825
|
-
type ToolRouterMCPServerConfig = z
|
|
1825
|
+
type ToolRouterMCPServerConfig = z.infer<typeof ToolRouterMCPServerConfigSchema>;
|
|
1826
1826
|
type ToolRouterToolsFn<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = (modifiers?: SessionMetaToolOptions) => Promise<ReturnType<TProvider['wrapTools']>>;
|
|
1827
1827
|
type ToolRouterAuthorizeFn = (toolkit: string, options?: {
|
|
1828
1828
|
callbackUrl?: string;
|
|
1829
1829
|
alias?: string;
|
|
1830
1830
|
}) => Promise<ConnectionRequest>;
|
|
1831
|
-
declare const ToolRouterToolkitsOptionsSchema: z
|
|
1832
|
-
toolkits: z
|
|
1833
|
-
cursor: z
|
|
1834
|
-
limit: z
|
|
1835
|
-
isConnected: z
|
|
1836
|
-
search: z
|
|
1837
|
-
}, "strip", z
|
|
1831
|
+
declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
1832
|
+
toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1833
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1835
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
1836
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1837
|
+
}, "strip", z.ZodTypeAny, {
|
|
1838
1838
|
toolkits?: string[] | undefined;
|
|
1839
1839
|
limit?: number | undefined;
|
|
1840
1840
|
search?: string | undefined;
|
|
@@ -1847,35 +1847,35 @@ declare const ToolRouterToolkitsOptionsSchema: z$1.ZodObject<{
|
|
|
1847
1847
|
cursor?: string | undefined;
|
|
1848
1848
|
isConnected?: boolean | undefined;
|
|
1849
1849
|
}>;
|
|
1850
|
-
type ToolRouterToolkitsOptions = z
|
|
1850
|
+
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
1851
1851
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
1852
|
-
declare const ToolRouterSessionSearchResponseSchema: z
|
|
1853
|
-
success: z
|
|
1854
|
-
error: z
|
|
1855
|
-
results: z
|
|
1856
|
-
index: z
|
|
1857
|
-
useCase: z
|
|
1858
|
-
primaryToolSlugs: z
|
|
1859
|
-
relatedToolSlugs: z
|
|
1860
|
-
toolkits: z
|
|
1861
|
-
difficulty: z
|
|
1862
|
-
error: z
|
|
1863
|
-
executionGuidance: z
|
|
1864
|
-
knownPitfalls: z
|
|
1865
|
-
memory: z
|
|
1866
|
-
planId: z
|
|
1867
|
-
recommendedPlanSteps: z
|
|
1868
|
-
referenceWorkbenchSnippets: z
|
|
1869
|
-
code: z
|
|
1870
|
-
description: z
|
|
1871
|
-
}, "strip", z
|
|
1852
|
+
declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
1853
|
+
success: z.ZodBoolean;
|
|
1854
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1855
|
+
results: z.ZodArray<z.ZodObject<{
|
|
1856
|
+
index: z.ZodNumber;
|
|
1857
|
+
useCase: z.ZodString;
|
|
1858
|
+
primaryToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1859
|
+
relatedToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1860
|
+
toolkits: z.ZodArray<z.ZodString, "many">;
|
|
1861
|
+
difficulty: z.ZodOptional<z.ZodString>;
|
|
1862
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1863
|
+
executionGuidance: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
knownPitfalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1865
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1866
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
recommendedPlanSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1868
|
+
referenceWorkbenchSnippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1869
|
+
code: z.ZodString;
|
|
1870
|
+
description: z.ZodString;
|
|
1871
|
+
}, "strip", z.ZodTypeAny, {
|
|
1872
1872
|
code: string;
|
|
1873
1873
|
description: string;
|
|
1874
1874
|
}, {
|
|
1875
1875
|
code: string;
|
|
1876
1876
|
description: string;
|
|
1877
1877
|
}>, "many">>;
|
|
1878
|
-
}, "strip", z
|
|
1878
|
+
}, "strip", z.ZodTypeAny, {
|
|
1879
1879
|
toolkits: string[];
|
|
1880
1880
|
index: number;
|
|
1881
1881
|
useCase: string;
|
|
@@ -1910,24 +1910,24 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1910
1910
|
description: string;
|
|
1911
1911
|
}[] | undefined;
|
|
1912
1912
|
}>, "many">;
|
|
1913
|
-
toolSchemas: z
|
|
1914
|
-
toolSlug: z
|
|
1915
|
-
toolkit: z
|
|
1916
|
-
description: z
|
|
1917
|
-
hasFullSchema: z
|
|
1918
|
-
inputSchema: z
|
|
1919
|
-
outputSchema: z
|
|
1920
|
-
schemaRef: z
|
|
1921
|
-
args: z
|
|
1922
|
-
toolSlugs: z
|
|
1923
|
-
}, "strip", z
|
|
1913
|
+
toolSchemas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1914
|
+
toolSlug: z.ZodString;
|
|
1915
|
+
toolkit: z.ZodString;
|
|
1916
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
hasFullSchema: z.ZodOptional<z.ZodBoolean>;
|
|
1918
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1919
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1920
|
+
schemaRef: z.ZodOptional<z.ZodObject<{
|
|
1921
|
+
args: z.ZodObject<{
|
|
1922
|
+
toolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1923
|
+
}, "strip", z.ZodTypeAny, {
|
|
1924
1924
|
toolSlugs: string[];
|
|
1925
1925
|
}, {
|
|
1926
1926
|
toolSlugs: string[];
|
|
1927
1927
|
}>;
|
|
1928
|
-
message: z
|
|
1929
|
-
tool: z
|
|
1930
|
-
}, "strip", z
|
|
1928
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1929
|
+
tool: z.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
|
|
1930
|
+
}, "strip", z.ZodTypeAny, {
|
|
1931
1931
|
args: {
|
|
1932
1932
|
toolSlugs: string[];
|
|
1933
1933
|
};
|
|
@@ -1940,7 +1940,7 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1940
1940
|
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
1941
1941
|
message?: string | undefined;
|
|
1942
1942
|
}>>;
|
|
1943
|
-
}, "strip", z
|
|
1943
|
+
}, "strip", z.ZodTypeAny, {
|
|
1944
1944
|
toolkit: string;
|
|
1945
1945
|
toolSlug: string;
|
|
1946
1946
|
description?: string | undefined;
|
|
@@ -1969,14 +1969,14 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1969
1969
|
message?: string | undefined;
|
|
1970
1970
|
} | undefined;
|
|
1971
1971
|
}>>;
|
|
1972
|
-
toolkitConnectionStatuses: z
|
|
1973
|
-
toolkit: z
|
|
1974
|
-
description: z
|
|
1975
|
-
hasActiveConnection: z
|
|
1976
|
-
statusMessage: z
|
|
1977
|
-
connectionDetails: z
|
|
1978
|
-
currentUserInfo: z
|
|
1979
|
-
}, "strip", z
|
|
1972
|
+
toolkitConnectionStatuses: z.ZodArray<z.ZodObject<{
|
|
1973
|
+
toolkit: z.ZodString;
|
|
1974
|
+
description: z.ZodString;
|
|
1975
|
+
hasActiveConnection: z.ZodBoolean;
|
|
1976
|
+
statusMessage: z.ZodString;
|
|
1977
|
+
connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1978
|
+
currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1979
|
+
}, "strip", z.ZodTypeAny, {
|
|
1980
1980
|
description: string;
|
|
1981
1981
|
toolkit: string;
|
|
1982
1982
|
hasActiveConnection: boolean;
|
|
@@ -1991,12 +1991,12 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1991
1991
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1992
1992
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1993
1993
|
}>, "many">;
|
|
1994
|
-
nextStepsGuidance: z
|
|
1995
|
-
session: z
|
|
1996
|
-
id: z
|
|
1997
|
-
generateId: z
|
|
1998
|
-
instructions: z
|
|
1999
|
-
}, "strip", z
|
|
1994
|
+
nextStepsGuidance: z.ZodArray<z.ZodString, "many">;
|
|
1995
|
+
session: z.ZodObject<{
|
|
1996
|
+
id: z.ZodString;
|
|
1997
|
+
generateId: z.ZodBoolean;
|
|
1998
|
+
instructions: z.ZodString;
|
|
1999
|
+
}, "strip", z.ZodTypeAny, {
|
|
2000
2000
|
id: string;
|
|
2001
2001
|
generateId: boolean;
|
|
2002
2002
|
instructions: string;
|
|
@@ -2005,11 +2005,11 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2005
2005
|
generateId: boolean;
|
|
2006
2006
|
instructions: string;
|
|
2007
2007
|
}>;
|
|
2008
|
-
timeInfo: z
|
|
2009
|
-
currentTimeUtc: z
|
|
2010
|
-
currentTimeUtcEpochSeconds: z
|
|
2011
|
-
message: z
|
|
2012
|
-
}, "strip", z
|
|
2008
|
+
timeInfo: z.ZodObject<{
|
|
2009
|
+
currentTimeUtc: z.ZodString;
|
|
2010
|
+
currentTimeUtcEpochSeconds: z.ZodNumber;
|
|
2011
|
+
message: z.ZodString;
|
|
2012
|
+
}, "strip", z.ZodTypeAny, {
|
|
2013
2013
|
message: string;
|
|
2014
2014
|
currentTimeUtc: string;
|
|
2015
2015
|
currentTimeUtcEpochSeconds: number;
|
|
@@ -2018,7 +2018,7 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2018
2018
|
currentTimeUtc: string;
|
|
2019
2019
|
currentTimeUtcEpochSeconds: number;
|
|
2020
2020
|
}>;
|
|
2021
|
-
}, "strip", z
|
|
2021
|
+
}, "strip", z.ZodTypeAny, {
|
|
2022
2022
|
error: string | null;
|
|
2023
2023
|
success: boolean;
|
|
2024
2024
|
results: {
|
|
@@ -2129,12 +2129,12 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2129
2129
|
currentTimeUtcEpochSeconds: number;
|
|
2130
2130
|
};
|
|
2131
2131
|
}>;
|
|
2132
|
-
type ToolRouterSessionSearchResponse = z
|
|
2133
|
-
declare const ToolRouterSessionExecuteResponseSchema: z
|
|
2134
|
-
data: z
|
|
2135
|
-
error: z
|
|
2136
|
-
logId: z
|
|
2137
|
-
}, "strip", z
|
|
2132
|
+
type ToolRouterSessionSearchResponse = z.infer<typeof ToolRouterSessionSearchResponseSchema>;
|
|
2133
|
+
declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
|
|
2134
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2135
|
+
error: z.ZodNullable<z.ZodString>;
|
|
2136
|
+
logId: z.ZodString;
|
|
2137
|
+
}, "strip", z.ZodTypeAny, {
|
|
2138
2138
|
data: Record<string, unknown>;
|
|
2139
2139
|
error: string | null;
|
|
2140
2140
|
logId: string;
|
|
@@ -2143,7 +2143,7 @@ declare const ToolRouterSessionExecuteResponseSchema: z$1.ZodObject<{
|
|
|
2143
2143
|
error: string | null;
|
|
2144
2144
|
logId: string;
|
|
2145
2145
|
}>;
|
|
2146
|
-
type ToolRouterSessionExecuteResponse = z
|
|
2146
|
+
type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
2147
2147
|
interface ToolRouterSessionProxyExecuteResponse {
|
|
2148
2148
|
/** The HTTP status code returned from the proxied API */
|
|
2149
2149
|
status: number;
|
|
@@ -2199,16 +2199,16 @@ interface ToolRouterSessionMetadata {
|
|
|
2199
2199
|
preloadedCustomToolSlugs?: string[];
|
|
2200
2200
|
inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
|
|
2201
2201
|
}
|
|
2202
|
-
declare const SessionProxyExecuteParamsSchema: z
|
|
2203
|
-
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */toolkit: z
|
|
2204
|
-
endpoint: z
|
|
2205
|
-
method: z
|
|
2206
|
-
body: z
|
|
2207
|
-
parameters: z
|
|
2208
|
-
in: z
|
|
2209
|
-
name: z
|
|
2210
|
-
value: z
|
|
2211
|
-
}, "strip", z
|
|
2202
|
+
declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
2203
|
+
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */toolkit: z.ZodString; /** The API endpoint URL to call */
|
|
2204
|
+
endpoint: z.ZodString; /** HTTP method */
|
|
2205
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>; /** Request body (for POST/PUT/PATCH) */
|
|
2206
|
+
body: z.ZodOptional<z.ZodUnknown>; /** Query params or headers to include */
|
|
2207
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2208
|
+
in: z.ZodEnum<["query", "header"]>;
|
|
2209
|
+
name: z.ZodString;
|
|
2210
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2211
|
+
}, "strip", z.ZodTypeAny, {
|
|
2212
2212
|
name: string;
|
|
2213
2213
|
value: string | number;
|
|
2214
2214
|
in: "query" | "header";
|
|
@@ -2217,7 +2217,7 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2217
2217
|
value: string | number;
|
|
2218
2218
|
in: "query" | "header";
|
|
2219
2219
|
}>, "many">>;
|
|
2220
|
-
}, "strip", z
|
|
2220
|
+
}, "strip", z.ZodTypeAny, {
|
|
2221
2221
|
toolkit: string;
|
|
2222
2222
|
endpoint: string;
|
|
2223
2223
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
@@ -2238,46 +2238,46 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2238
2238
|
in: "query" | "header";
|
|
2239
2239
|
}[] | undefined;
|
|
2240
2240
|
}>;
|
|
2241
|
-
type SessionProxyExecuteParams = z
|
|
2241
|
+
type SessionProxyExecuteParams = z.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
2242
2242
|
type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2243
|
-
declare const ToolRouterUpdateSessionConfigSchema: z
|
|
2244
|
-
toolkits: z
|
|
2245
|
-
disable: z
|
|
2246
|
-
}, "strict", z
|
|
2243
|
+
declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
2244
|
+
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2245
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
2246
|
+
}, "strict", z.ZodTypeAny, {
|
|
2247
2247
|
disable: string[];
|
|
2248
2248
|
}, {
|
|
2249
2249
|
disable: string[];
|
|
2250
|
-
}>, z
|
|
2251
|
-
enable: z
|
|
2252
|
-
}, "strict", z
|
|
2250
|
+
}>, z.ZodObject<{
|
|
2251
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
2252
|
+
}, "strict", z.ZodTypeAny, {
|
|
2253
2253
|
enable: string[];
|
|
2254
2254
|
}, {
|
|
2255
2255
|
enable: string[];
|
|
2256
2256
|
}>]>>>;
|
|
2257
|
-
tools: z
|
|
2258
|
-
enable: z
|
|
2259
|
-
}, "strict", z
|
|
2257
|
+
tools: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2258
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
2259
|
+
}, "strict", z.ZodTypeAny, {
|
|
2260
2260
|
enable: string[];
|
|
2261
2261
|
}, {
|
|
2262
2262
|
enable: string[];
|
|
2263
|
-
}>, z
|
|
2264
|
-
disable: z
|
|
2265
|
-
}, "strict", z
|
|
2263
|
+
}>, z.ZodObject<{
|
|
2264
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
2265
|
+
}, "strict", z.ZodTypeAny, {
|
|
2266
2266
|
disable: string[];
|
|
2267
2267
|
}, {
|
|
2268
2268
|
disable: string[];
|
|
2269
|
-
}>, z
|
|
2270
|
-
tags: z
|
|
2271
|
-
enable: z
|
|
2272
|
-
disable: z
|
|
2273
|
-
}, "strict", z
|
|
2269
|
+
}>, z.ZodObject<{
|
|
2270
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
2271
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2272
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2273
|
+
}, "strict", z.ZodTypeAny, {
|
|
2274
2274
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2275
2275
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2276
2276
|
}, {
|
|
2277
2277
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2278
2278
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2279
2279
|
}>]>;
|
|
2280
|
-
}, "strict", z
|
|
2280
|
+
}, "strict", z.ZodTypeAny, {
|
|
2281
2281
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2282
2282
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2283
2283
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -2306,37 +2306,37 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2306
2306
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2307
2307
|
};
|
|
2308
2308
|
}>]>>>>;
|
|
2309
|
-
tags: z
|
|
2310
|
-
enable: z
|
|
2311
|
-
disable: z
|
|
2312
|
-
}, "strict", z
|
|
2309
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
2310
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2311
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2312
|
+
}, "strict", z.ZodTypeAny, {
|
|
2313
2313
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2314
2314
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2315
2315
|
}, {
|
|
2316
2316
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2317
2317
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2318
2318
|
}>]>>>;
|
|
2319
|
-
authConfigs: z
|
|
2320
|
-
connectedAccounts: z
|
|
2321
|
-
manageConnections: z
|
|
2322
|
-
enable: z
|
|
2323
|
-
callbackUrl: z
|
|
2324
|
-
waitForConnections: z
|
|
2325
|
-
}, "strict", z
|
|
2326
|
-
callbackUrl?: string | undefined;
|
|
2319
|
+
authConfigs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2320
|
+
connectedAccounts: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>, Record<string, string[]>, Record<string, string | string[]>>>>;
|
|
2321
|
+
manageConnections: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
2322
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2323
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
2324
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
2325
|
+
}, "strict", z.ZodTypeAny, {
|
|
2327
2326
|
enable?: boolean | undefined;
|
|
2327
|
+
callbackUrl?: string | undefined;
|
|
2328
2328
|
waitForConnections?: boolean | undefined;
|
|
2329
2329
|
}, {
|
|
2330
|
-
callbackUrl?: string | undefined;
|
|
2331
2330
|
enable?: boolean | undefined;
|
|
2331
|
+
callbackUrl?: string | undefined;
|
|
2332
2332
|
waitForConnections?: boolean | undefined;
|
|
2333
2333
|
}>]>>>>;
|
|
2334
|
-
sandbox: z
|
|
2335
|
-
enable: z
|
|
2336
|
-
enableProxyExecution: z
|
|
2337
|
-
autoOffloadThreshold: z
|
|
2338
|
-
sandboxSize: z
|
|
2339
|
-
}, "strip", z
|
|
2334
|
+
sandbox: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2335
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2336
|
+
enableProxyExecution: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2337
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2338
|
+
sandboxSize: z.ZodOptional<z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
|
|
2339
|
+
}, "strip", z.ZodTypeAny, {
|
|
2340
2340
|
enable?: boolean | undefined;
|
|
2341
2341
|
enableProxyExecution?: boolean | undefined;
|
|
2342
2342
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2347,12 +2347,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2347
2347
|
autoOffloadThreshold?: number | undefined;
|
|
2348
2348
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2349
2349
|
}>>>>;
|
|
2350
|
-
workbench: z
|
|
2351
|
-
enable: z
|
|
2352
|
-
enableProxyExecution: z
|
|
2353
|
-
autoOffloadThreshold: z
|
|
2354
|
-
sandboxSize: z
|
|
2355
|
-
}, "strip", z
|
|
2350
|
+
workbench: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2351
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2352
|
+
enableProxyExecution: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2353
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2354
|
+
sandboxSize: z.ZodOptional<z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
|
|
2355
|
+
}, "strip", z.ZodTypeAny, {
|
|
2356
2356
|
enable?: boolean | undefined;
|
|
2357
2357
|
enableProxyExecution?: boolean | undefined;
|
|
2358
2358
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2363,11 +2363,11 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2363
2363
|
autoOffloadThreshold?: number | undefined;
|
|
2364
2364
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2365
2365
|
}>>>>;
|
|
2366
|
-
multiAccount: z
|
|
2367
|
-
enable: z
|
|
2368
|
-
maxAccountsPerToolkit: z
|
|
2369
|
-
requireExplicitSelection: z
|
|
2370
|
-
}, "strip", z
|
|
2366
|
+
multiAccount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2367
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
2368
|
+
maxAccountsPerToolkit: z.ZodOptional<z.ZodNumber>;
|
|
2369
|
+
requireExplicitSelection: z.ZodOptional<z.ZodBoolean>;
|
|
2370
|
+
}, "strip", z.ZodTypeAny, {
|
|
2371
2371
|
enable?: boolean | undefined;
|
|
2372
2372
|
maxAccountsPerToolkit?: number | undefined;
|
|
2373
2373
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -2376,14 +2376,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2376
2376
|
maxAccountsPerToolkit?: number | undefined;
|
|
2377
2377
|
requireExplicitSelection?: boolean | undefined;
|
|
2378
2378
|
}>>>>;
|
|
2379
|
-
preload: z
|
|
2380
|
-
tools: z
|
|
2381
|
-
}, "strict", z
|
|
2379
|
+
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2380
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
2381
|
+
}, "strict", z.ZodTypeAny, {
|
|
2382
2382
|
tools?: string[] | "all" | undefined;
|
|
2383
2383
|
}, {
|
|
2384
2384
|
tools?: string[] | "all" | undefined;
|
|
2385
2385
|
}>>>;
|
|
2386
|
-
}, "strip", z
|
|
2386
|
+
}, "strip", z.ZodTypeAny, {
|
|
2387
2387
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2388
2388
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2389
2389
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -2409,8 +2409,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2409
2409
|
authConfigs?: Record<string, string> | undefined;
|
|
2410
2410
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2411
2411
|
manageConnections?: boolean | {
|
|
2412
|
-
callbackUrl?: string | undefined;
|
|
2413
2412
|
enable?: boolean | undefined;
|
|
2413
|
+
callbackUrl?: string | undefined;
|
|
2414
2414
|
waitForConnections?: boolean | undefined;
|
|
2415
2415
|
} | null | undefined;
|
|
2416
2416
|
sandbox?: {
|
|
@@ -2456,8 +2456,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2456
2456
|
authConfigs?: Record<string, string> | undefined;
|
|
2457
2457
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2458
2458
|
manageConnections?: boolean | {
|
|
2459
|
-
callbackUrl?: string | undefined;
|
|
2460
2459
|
enable?: boolean | undefined;
|
|
2460
|
+
callbackUrl?: string | undefined;
|
|
2461
2461
|
waitForConnections?: boolean | undefined;
|
|
2462
2462
|
} | null | undefined;
|
|
2463
2463
|
sandbox?: {
|
|
@@ -2503,8 +2503,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2503
2503
|
authConfigs?: Record<string, string> | undefined;
|
|
2504
2504
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2505
2505
|
manageConnections?: boolean | {
|
|
2506
|
-
callbackUrl?: string | undefined;
|
|
2507
2506
|
enable?: boolean | undefined;
|
|
2507
|
+
callbackUrl?: string | undefined;
|
|
2508
2508
|
waitForConnections?: boolean | undefined;
|
|
2509
2509
|
} | null | undefined;
|
|
2510
2510
|
sandbox?: {
|
|
@@ -2550,8 +2550,8 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2550
2550
|
authConfigs?: Record<string, string> | undefined;
|
|
2551
2551
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2552
2552
|
manageConnections?: boolean | {
|
|
2553
|
-
callbackUrl?: string | undefined;
|
|
2554
2553
|
enable?: boolean | undefined;
|
|
2554
|
+
callbackUrl?: string | undefined;
|
|
2555
2555
|
waitForConnections?: boolean | undefined;
|
|
2556
2556
|
} | null | undefined;
|
|
2557
2557
|
sandbox?: {
|
|
@@ -2572,19 +2572,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2572
2572
|
requireExplicitSelection?: boolean | undefined;
|
|
2573
2573
|
} | null | undefined;
|
|
2574
2574
|
}>;
|
|
2575
|
-
type ToolRouterUpdateSessionConfig = z
|
|
2575
|
+
type ToolRouterUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
2576
2576
|
type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
|
|
2577
|
-
declare const ToolRouterSessionDeleteResponseSchema: z
|
|
2578
|
-
sessionId: z
|
|
2579
|
-
deleted: z
|
|
2580
|
-
}, "strip", z
|
|
2577
|
+
declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
|
|
2578
|
+
sessionId: z.ZodString;
|
|
2579
|
+
deleted: z.ZodLiteral<true>;
|
|
2580
|
+
}, "strip", z.ZodTypeAny, {
|
|
2581
2581
|
sessionId: string;
|
|
2582
2582
|
deleted: true;
|
|
2583
2583
|
}, {
|
|
2584
2584
|
sessionId: string;
|
|
2585
2585
|
deleted: true;
|
|
2586
2586
|
}>;
|
|
2587
|
-
type ToolRouterSessionDeleteResponse = z
|
|
2587
|
+
type ToolRouterSessionDeleteResponse = z.infer<typeof ToolRouterSessionDeleteResponseSchema>;
|
|
2588
2588
|
type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
|
|
2589
2589
|
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
2590
2590
|
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
@@ -2642,8 +2642,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2642
2642
|
type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
|
|
2643
2643
|
//#endregion
|
|
2644
2644
|
//#region src/types/customTool.types.d.ts
|
|
2645
|
-
type AnyZodSchema = z.ZodType | z$2.ZodType;
|
|
2646
|
-
type InferZodSchema<T extends AnyZodSchema> = T extends z.ZodType ? z.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
|
|
2645
|
+
type AnyZodSchema = z$1.ZodType | z$2.ZodType;
|
|
2646
|
+
type InferZodSchema<T extends AnyZodSchema> = T extends z$1.ZodType ? z$1.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
|
|
2647
2647
|
/**
|
|
2648
2648
|
* Session context injected into custom tool execute functions at runtime.
|
|
2649
2649
|
* Provides identity context and methods to call other tools or proxy API requests.
|
|
@@ -2678,24 +2678,24 @@ type CustomToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ct
|
|
|
2678
2678
|
* Alphanumeric, underscores, and hyphens only. No `LOCAL_` or `COMPOSIO_` prefix.
|
|
2679
2679
|
* Length is validated contextually (standalone vs extension vs toolkit) at creation time.
|
|
2680
2680
|
*/
|
|
2681
|
-
declare const CustomToolSlugSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2681
|
+
declare const CustomToolSlugSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
|
|
2682
2682
|
/**
|
|
2683
2683
|
* Zod schema for validating the string/scalar fields of createCustomTool() options.
|
|
2684
2684
|
* Slug is validated separately as the first argument.
|
|
2685
2685
|
* Used internally for validation — inputParams, outputParams, and execute are checked manually.
|
|
2686
2686
|
*/
|
|
2687
|
-
declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
2688
|
-
name: z.ZodString;
|
|
2689
|
-
description: z.ZodString;
|
|
2687
|
+
declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
|
|
2688
|
+
name: z$1.ZodString;
|
|
2689
|
+
description: z$1.ZodString;
|
|
2690
2690
|
/**
|
|
2691
2691
|
* Composio toolkit slug that this tool extends (inherits auth from).
|
|
2692
2692
|
* Must be a valid Composio toolkit slug (e.g. `'gmail'`, `'github'`, `'meta_ads'`).
|
|
2693
2693
|
* The backend validates this against the toolkit catalog.
|
|
2694
2694
|
* Leave empty for tools that don't need any Composio-managed authentication.
|
|
2695
2695
|
*/
|
|
2696
|
-
extendsToolkit: z.ZodOptional<z.ZodString>;
|
|
2697
|
-
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2698
|
-
}, "strip", z.ZodTypeAny, {
|
|
2696
|
+
extendsToolkit: z$1.ZodOptional<z$1.ZodString>;
|
|
2697
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2698
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2699
2699
|
name: string;
|
|
2700
2700
|
description: string;
|
|
2701
2701
|
extendsToolkit?: string | undefined;
|
|
@@ -2707,7 +2707,7 @@ declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
|
2707
2707
|
preload?: boolean | undefined;
|
|
2708
2708
|
}>;
|
|
2709
2709
|
/** Options for creating a custom tool via `createCustomTool()`. */
|
|
2710
|
-
type CreateCustomToolParams<T extends AnyZodSchema> = z.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2710
|
+
type CreateCustomToolParams<T extends AnyZodSchema> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2711
2711
|
/** Zod schema for input parameters */inputParams: T; /** Optional Zod schema for output parameters (sent to backend for documentation) */
|
|
2712
2712
|
outputParams?: AnyZodSchema; /** The function that executes the tool */
|
|
2713
2713
|
execute: CustomToolExecuteFn<T>;
|
|
@@ -2746,11 +2746,11 @@ type CustomToolWireDefinition = CustomToolDefinition;
|
|
|
2746
2746
|
* Zod schema for validating the string/scalar fields of createCustomToolkit() options.
|
|
2747
2747
|
* Slug is validated separately as the first argument.
|
|
2748
2748
|
*/
|
|
2749
|
-
declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
2750
|
-
name: z.ZodString;
|
|
2751
|
-
description: z.ZodString;
|
|
2752
|
-
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2753
|
-
}, "strip", z.ZodTypeAny, {
|
|
2749
|
+
declare const CreateCustomToolkitBaseSchema: z$1.ZodObject<{
|
|
2750
|
+
name: z$1.ZodString;
|
|
2751
|
+
description: z$1.ZodString;
|
|
2752
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2753
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2754
2754
|
name: string;
|
|
2755
2755
|
description: string;
|
|
2756
2756
|
preload?: boolean | undefined;
|
|
@@ -2760,7 +2760,7 @@ declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
|
2760
2760
|
preload?: boolean | undefined;
|
|
2761
2761
|
}>;
|
|
2762
2762
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
2763
|
-
type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2763
|
+
type CreateCustomToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2764
2764
|
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */tools: CustomTool[];
|
|
2765
2765
|
};
|
|
2766
2766
|
/**
|