@composio/core 0.13.0 → 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-DrJpOhY2.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-DHIKRdeG.d.mts → composio-6C8kHtqc.d.mts} +1079 -1092
- package/dist/{customTool.types-CKH2R2ia.d.mts → customTool.types-kFhNYuzh.d.mts} +602 -549
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -22
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +23 -0
- package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +24 -0
- 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 +1459 -1401
- package/dist/index.mjs +1437 -1375
- 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-D4Id3wXA.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/lib/toolRouterSessionDelete.ts +30 -0
- package/src/models/CustomTool.ts +1 -3
- package/src/models/ToolRouter.ts +15 -0
- package/src/models/ToolRouterSession.ts +50 -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/types/toolRouter.types.ts +13 -0
- 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-BBnsv9kS.d.mts +0 -29425
- package/dist/BaseProvider-Brb3o86-.d.mts +0 -29425
- package/dist/CustomTool-Dmi6ti3I.d.mts +0 -74
- package/dist/buffer-PcbMMsgm.mjs +0 -33
- package/dist/composio-vMwhASRc.d.mts +0 -5698
- package/dist/customTool.types-DXin7Cfc.d.mts +0 -2773
- package/dist/types-qTbYYBJw.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,49 +183,49 @@ 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
|
-
id: string;
|
|
216
215
|
redirectUrl: string | null;
|
|
216
|
+
id: string;
|
|
217
217
|
}, {
|
|
218
218
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
219
|
-
id: string;
|
|
220
219
|
redirectUrl: string | null;
|
|
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,57 +249,57 @@ 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, {
|
|
280
|
-
|
|
278
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
279
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
280
|
+
limit?: number | null | undefined;
|
|
281
281
|
authConfigIds?: string[] | null | undefined;
|
|
282
|
+
userIds?: string[] | null | undefined;
|
|
282
283
|
cursor?: string | null | undefined;
|
|
283
|
-
limit?: number | null | undefined;
|
|
284
284
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
285
285
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
286
286
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
287
287
|
toolkitSlugs?: string[] | null | undefined;
|
|
288
288
|
}, {
|
|
289
|
-
|
|
289
|
+
limit?: number | null | undefined;
|
|
290
290
|
authConfigIds?: string[] | null | undefined;
|
|
291
|
+
userIds?: string[] | null | undefined;
|
|
291
292
|
cursor?: string | null | undefined;
|
|
292
|
-
limit?: number | null | undefined;
|
|
293
293
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
294
294
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
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 {
|
|
@@ -548,31 +548,70 @@ interface ConnectionRequest extends ConnectionRequestState {
|
|
|
548
548
|
toString: () => string;
|
|
549
549
|
}
|
|
550
550
|
//#endregion
|
|
551
|
+
//#region src/types/requestOptions.types.d.ts
|
|
552
|
+
/**
|
|
553
|
+
* Per-request transport options for cancelling an SDK call.
|
|
554
|
+
*
|
|
555
|
+
* For `tools.get` and `tools.execute`, pass `signal` directly in the
|
|
556
|
+
* options bag (3rd argument) alongside any modifiers or provider options.
|
|
557
|
+
* For other methods (e.g. `toolkits.get`, `authConfigs.list`), pass as a
|
|
558
|
+
* trailing argument. Forwarded to the underlying `@composio/client` request.
|
|
559
|
+
*
|
|
560
|
+
* If the underlying request is aborted via this signal, the SDK throws a
|
|
561
|
+
* {@link ComposioRequestCancelledError} so callers can `instanceof`-detect
|
|
562
|
+
* cancellation without unwrapping nested causes.
|
|
563
|
+
*
|
|
564
|
+
* @example Timeout after 5 seconds
|
|
565
|
+
* ```typescript
|
|
566
|
+
* await composio.tools.execute(
|
|
567
|
+
* 'HACKERNEWS_GET_FRONTPAGE',
|
|
568
|
+
* { userId: 'default', arguments: {} },
|
|
569
|
+
* { signal: AbortSignal.timeout(5_000) }
|
|
570
|
+
* );
|
|
571
|
+
* ```
|
|
572
|
+
*
|
|
573
|
+
* @example Combine signal with modifiers
|
|
574
|
+
* ```typescript
|
|
575
|
+
* await composio.tools.execute('TOOL', body, {
|
|
576
|
+
* signal: AbortSignal.timeout(10_000),
|
|
577
|
+
* beforeExecute: ({ params }) => params,
|
|
578
|
+
* });
|
|
579
|
+
* ```
|
|
580
|
+
*/
|
|
581
|
+
type ComposioRequestOptions = {
|
|
582
|
+
/**
|
|
583
|
+
* An `AbortSignal` used to cancel the in-flight HTTP request. When the
|
|
584
|
+
* signal aborts, the underlying fetch is aborted and the SDK throws a
|
|
585
|
+
* {@link ComposioRequestCancelledError} (subclass of {@link ComposioError}).
|
|
586
|
+
*/
|
|
587
|
+
signal?: AbortSignal;
|
|
588
|
+
};
|
|
589
|
+
//#endregion
|
|
551
590
|
//#region src/types/ToolRouterSessionFilesMount.types.d.ts
|
|
552
|
-
declare const ToolRouterSessionFilesMountListOptionsSchema: z
|
|
553
|
-
path: z
|
|
554
|
-
mountId: z
|
|
555
|
-
cursor: z
|
|
556
|
-
limit: z
|
|
557
|
-
}, "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, {
|
|
558
597
|
mountId: string;
|
|
559
598
|
path?: string | undefined;
|
|
560
|
-
cursor?: string | undefined;
|
|
561
599
|
limit?: number | undefined;
|
|
600
|
+
cursor?: string | undefined;
|
|
562
601
|
}, {
|
|
563
602
|
path?: string | undefined;
|
|
564
|
-
cursor?: string | undefined;
|
|
565
603
|
limit?: number | undefined;
|
|
604
|
+
cursor?: string | undefined;
|
|
566
605
|
mountId?: string | undefined;
|
|
567
606
|
}>;
|
|
568
|
-
type ToolRouterSessionFilesMountListOptions = z
|
|
569
|
-
declare const FileListResponseSchema: z
|
|
570
|
-
items: z
|
|
571
|
-
last_modified: z
|
|
572
|
-
mount_relative_path: z
|
|
573
|
-
sandbox_mount_prefix: z
|
|
574
|
-
size: z
|
|
575
|
-
}, "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, {
|
|
576
615
|
last_modified: string;
|
|
577
616
|
mount_relative_path: string;
|
|
578
617
|
sandbox_mount_prefix: string;
|
|
@@ -583,8 +622,8 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
583
622
|
sandbox_mount_prefix: string;
|
|
584
623
|
size: number;
|
|
585
624
|
}>, "many">;
|
|
586
|
-
next_cursor: z
|
|
587
|
-
}, "strip", z
|
|
625
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
588
627
|
items: {
|
|
589
628
|
last_modified: string;
|
|
590
629
|
mount_relative_path: string;
|
|
@@ -617,12 +656,12 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
617
656
|
}[];
|
|
618
657
|
next_cursor?: string | undefined;
|
|
619
658
|
}>;
|
|
620
|
-
type FileListResponse = z
|
|
621
|
-
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z
|
|
622
|
-
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */remotePath: z
|
|
623
|
-
mountId: z
|
|
624
|
-
mimetype: z
|
|
625
|
-
}, "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, {
|
|
626
665
|
mountId: string;
|
|
627
666
|
remotePath?: string | undefined;
|
|
628
667
|
mimetype?: string | undefined;
|
|
@@ -631,29 +670,29 @@ declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
|
|
|
631
670
|
remotePath?: string | undefined;
|
|
632
671
|
mimetype?: string | undefined;
|
|
633
672
|
}>;
|
|
634
|
-
type ToolRouterSessionFilesMountUploadOptions = z
|
|
635
|
-
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z
|
|
636
|
-
mountId: z
|
|
637
|
-
}, "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, {
|
|
638
677
|
mountId: string;
|
|
639
678
|
}, {
|
|
640
679
|
mountId?: string | undefined;
|
|
641
680
|
}>;
|
|
642
|
-
type ToolRouterSessionFilesMountDownloadOptions = z
|
|
643
|
-
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z
|
|
644
|
-
mountId: z
|
|
645
|
-
}, "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, {
|
|
646
685
|
mountId: string;
|
|
647
686
|
}, {
|
|
648
687
|
mountId?: string | undefined;
|
|
649
688
|
}>;
|
|
650
|
-
type ToolRouterSessionFilesMountDeleteOptions = z
|
|
651
|
-
declare const RemoteFileDataSchema: z
|
|
652
|
-
expires_at: z
|
|
653
|
-
mount_relative_path: z
|
|
654
|
-
sandbox_mount_prefix: z
|
|
655
|
-
download_url: z
|
|
656
|
-
}, "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, {
|
|
657
696
|
mount_relative_path: string;
|
|
658
697
|
sandbox_mount_prefix: string;
|
|
659
698
|
expires_at: string;
|
|
@@ -675,11 +714,11 @@ declare const RemoteFileDataSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
675
714
|
download_url: string;
|
|
676
715
|
}>;
|
|
677
716
|
/** Parsed shape from API response. Use with `new RemoteFile(data)`. */
|
|
678
|
-
type RemoteFileData = z
|
|
679
|
-
declare const FileDeleteResponseSchema: z
|
|
680
|
-
mount_relative_path: z
|
|
681
|
-
sandbox_mount_prefix: z
|
|
682
|
-
}, "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, {
|
|
683
722
|
mount_relative_path: string;
|
|
684
723
|
sandbox_mount_prefix: string;
|
|
685
724
|
}, {
|
|
@@ -692,7 +731,7 @@ declare const FileDeleteResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
692
731
|
mount_relative_path: string;
|
|
693
732
|
sandbox_mount_prefix: string;
|
|
694
733
|
}>;
|
|
695
|
-
type FileDeleteResponse = z
|
|
734
|
+
type FileDeleteResponse = z.infer<typeof FileDeleteResponseSchema>;
|
|
696
735
|
//#endregion
|
|
697
736
|
//#region src/models/RemoteFile.d.ts
|
|
698
737
|
/**
|
|
@@ -901,8 +940,8 @@ declare const SessionPreset: {
|
|
|
901
940
|
readonly DIRECT_TOOLS: "direct_tools";
|
|
902
941
|
};
|
|
903
942
|
type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
|
|
904
|
-
declare const MCPServerTypeSchema: z
|
|
905
|
-
type MCPServerType = z
|
|
943
|
+
declare const MCPServerTypeSchema: z.ZodEnum<["http", "sse"]>;
|
|
944
|
+
type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
|
|
906
945
|
/**
|
|
907
946
|
* Sandbox compute tier for the session sandbox.
|
|
908
947
|
*
|
|
@@ -915,14 +954,14 @@ type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
|
915
954
|
*
|
|
916
955
|
* Defaults to `standard` server-side when omitted.
|
|
917
956
|
*/
|
|
918
|
-
declare const SandboxSizeSchema: z
|
|
919
|
-
type SandboxSize = z
|
|
920
|
-
declare const ToolRouterSandboxConfigSchema: z
|
|
921
|
-
enable: z
|
|
922
|
-
enableProxyExecution: z
|
|
923
|
-
autoOffloadThreshold: z
|
|
924
|
-
sandboxSize: z
|
|
925
|
-
}, "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, {
|
|
926
965
|
enable: boolean;
|
|
927
966
|
enableProxyExecution?: boolean | undefined;
|
|
928
967
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -933,12 +972,12 @@ declare const ToolRouterSandboxConfigSchema: z$1.ZodObject<{
|
|
|
933
972
|
autoOffloadThreshold?: number | undefined;
|
|
934
973
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
935
974
|
}>;
|
|
936
|
-
type ToolRouterSandboxConfig = z
|
|
937
|
-
declare const ToolRouterConfigManageConnectionsSchema: z
|
|
938
|
-
enable: z
|
|
939
|
-
callbackUrl: z
|
|
940
|
-
waitForConnections: z
|
|
941
|
-
}, "strict", z
|
|
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, {
|
|
942
981
|
enable?: boolean | undefined;
|
|
943
982
|
callbackUrl?: string | undefined;
|
|
944
983
|
waitForConnections?: boolean | undefined;
|
|
@@ -947,53 +986,53 @@ declare const ToolRouterConfigManageConnectionsSchema: z$1.ZodObject<{
|
|
|
947
986
|
callbackUrl?: string | undefined;
|
|
948
987
|
waitForConnections?: boolean | undefined;
|
|
949
988
|
}>;
|
|
950
|
-
declare const ToolRouterToolkitsParamSchema: z
|
|
951
|
-
declare const ToolRouterToolkitsDisabledConfigSchema: z
|
|
952
|
-
disable: z
|
|
953
|
-
}, "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, {
|
|
954
993
|
disable: string[];
|
|
955
994
|
}, {
|
|
956
995
|
disable: string[];
|
|
957
996
|
}>;
|
|
958
|
-
declare const ToolRouterToolkitsEnabledConfigSchema: z
|
|
959
|
-
enable: z
|
|
960
|
-
}, "strict", z
|
|
997
|
+
declare const ToolRouterToolkitsEnabledConfigSchema: z.ZodObject<{
|
|
998
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
999
|
+
}, "strict", z.ZodTypeAny, {
|
|
961
1000
|
enable: string[];
|
|
962
1001
|
}, {
|
|
963
1002
|
enable: string[];
|
|
964
1003
|
}>;
|
|
965
|
-
declare const ToolRouterManageConnectionsConfigSchema: z
|
|
966
|
-
enable: z
|
|
967
|
-
callbackUrl: z
|
|
968
|
-
}, "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, {
|
|
969
1008
|
enable: boolean;
|
|
970
1009
|
callbackUrl?: string | undefined;
|
|
971
1010
|
}, {
|
|
972
1011
|
enable?: boolean | undefined;
|
|
973
1012
|
callbackUrl?: string | undefined;
|
|
974
1013
|
}>;
|
|
975
|
-
declare const ToolRouterTagsParamSchema: z
|
|
976
|
-
declare const ToolRouterTagsEnableDisableSchema: z
|
|
977
|
-
enable: z
|
|
978
|
-
disable: z
|
|
979
|
-
}, "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, {
|
|
980
1019
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
981
1020
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
982
1021
|
}, {
|
|
983
1022
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
984
1023
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
985
1024
|
}>;
|
|
986
|
-
declare const ToolRouterConfigTagsSchema: z
|
|
987
|
-
enable: z
|
|
988
|
-
disable: z
|
|
989
|
-
}, "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, {
|
|
990
1029
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
991
1030
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
992
1031
|
}, {
|
|
993
1032
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
994
1033
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
995
1034
|
}>]>;
|
|
996
|
-
type ToolRouterConfigTags = z
|
|
1035
|
+
type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
997
1036
|
/**
|
|
998
1037
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
999
1038
|
* @example
|
|
@@ -1016,32 +1055,32 @@ type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
|
1016
1055
|
* }
|
|
1017
1056
|
* ```
|
|
1018
1057
|
*/
|
|
1019
|
-
declare const ToolRouterToolsParamSchema: z
|
|
1020
|
-
type ToolRouterToolsParam = z
|
|
1021
|
-
declare const ToolRouterConfigToolsSchema: z
|
|
1022
|
-
enable: z
|
|
1023
|
-
}, "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, {
|
|
1024
1063
|
enable: string[];
|
|
1025
1064
|
}, {
|
|
1026
1065
|
enable: string[];
|
|
1027
|
-
}>, z
|
|
1028
|
-
disable: z
|
|
1029
|
-
}, "strict", z
|
|
1066
|
+
}>, z.ZodObject<{
|
|
1067
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1068
|
+
}, "strict", z.ZodTypeAny, {
|
|
1030
1069
|
disable: string[];
|
|
1031
1070
|
}, {
|
|
1032
1071
|
disable: string[];
|
|
1033
|
-
}>, z
|
|
1034
|
-
tags: z
|
|
1035
|
-
enable: z
|
|
1036
|
-
disable: z
|
|
1037
|
-
}, "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, {
|
|
1038
1077
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1039
1078
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1040
1079
|
}, {
|
|
1041
1080
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1042
1081
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1043
1082
|
}>]>;
|
|
1044
|
-
}, "strict", z
|
|
1083
|
+
}, "strict", z.ZodTypeAny, {
|
|
1045
1084
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1046
1085
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1047
1086
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1070,34 +1109,34 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1070
1109
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1071
1110
|
};
|
|
1072
1111
|
}>;
|
|
1073
|
-
type ToolRouterConfigTools = z
|
|
1074
|
-
declare const ToolRouterCreateSessionConfigSchema: z
|
|
1075
|
-
sessionPreset: z
|
|
1076
|
-
mcp: z
|
|
1077
|
-
tools: z
|
|
1078
|
-
enable: z
|
|
1079
|
-
}, "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, {
|
|
1080
1119
|
enable: string[];
|
|
1081
1120
|
}, {
|
|
1082
1121
|
enable: string[];
|
|
1083
|
-
}>, z
|
|
1084
|
-
disable: z
|
|
1085
|
-
}, "strict", z
|
|
1122
|
+
}>, z.ZodObject<{
|
|
1123
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1124
|
+
}, "strict", z.ZodTypeAny, {
|
|
1086
1125
|
disable: string[];
|
|
1087
1126
|
}, {
|
|
1088
1127
|
disable: string[];
|
|
1089
|
-
}>, z
|
|
1090
|
-
tags: z
|
|
1091
|
-
enable: z
|
|
1092
|
-
disable: z
|
|
1093
|
-
}, "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, {
|
|
1094
1133
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1095
1134
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1096
1135
|
}, {
|
|
1097
1136
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1098
1137
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1099
1138
|
}>]>;
|
|
1100
|
-
}, "strict", z
|
|
1139
|
+
}, "strict", z.ZodTypeAny, {
|
|
1101
1140
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1102
1141
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1103
1142
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1126,36 +1165,36 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1126
1165
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1127
1166
|
};
|
|
1128
1167
|
}>]>>>>;
|
|
1129
|
-
tags: z
|
|
1130
|
-
enable: z
|
|
1131
|
-
disable: z
|
|
1132
|
-
}, "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, {
|
|
1133
1172
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1134
1173
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1135
1174
|
}, {
|
|
1136
1175
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1137
1176
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1138
1177
|
}>]>>>;
|
|
1139
|
-
toolkits: z
|
|
1140
|
-
disable: z
|
|
1141
|
-
}, "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, {
|
|
1142
1181
|
disable: string[];
|
|
1143
1182
|
}, {
|
|
1144
1183
|
disable: string[];
|
|
1145
|
-
}>, z
|
|
1146
|
-
enable: z
|
|
1147
|
-
}, "strict", z
|
|
1184
|
+
}>, z.ZodObject<{
|
|
1185
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1186
|
+
}, "strict", z.ZodTypeAny, {
|
|
1148
1187
|
enable: string[];
|
|
1149
1188
|
}, {
|
|
1150
1189
|
enable: string[];
|
|
1151
1190
|
}>]>>>;
|
|
1152
|
-
authConfigs: z
|
|
1153
|
-
connectedAccounts: z
|
|
1154
|
-
manageConnections: z
|
|
1155
|
-
enable: z
|
|
1156
|
-
callbackUrl: z
|
|
1157
|
-
waitForConnections: z
|
|
1158
|
-
}, "strict", z
|
|
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, {
|
|
1159
1198
|
enable?: boolean | undefined;
|
|
1160
1199
|
callbackUrl?: string | undefined;
|
|
1161
1200
|
waitForConnections?: boolean | undefined;
|
|
@@ -1164,12 +1203,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1164
1203
|
callbackUrl?: string | undefined;
|
|
1165
1204
|
waitForConnections?: boolean | undefined;
|
|
1166
1205
|
}>]>>>>;
|
|
1167
|
-
sandbox: z
|
|
1168
|
-
enable: z
|
|
1169
|
-
enableProxyExecution: z
|
|
1170
|
-
autoOffloadThreshold: z
|
|
1171
|
-
sandboxSize: z
|
|
1172
|
-
}, "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, {
|
|
1173
1212
|
enable: boolean;
|
|
1174
1213
|
enableProxyExecution?: boolean | undefined;
|
|
1175
1214
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1180,12 +1219,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1180
1219
|
autoOffloadThreshold?: number | undefined;
|
|
1181
1220
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1182
1221
|
}>>>;
|
|
1183
|
-
workbench: z
|
|
1184
|
-
enable: z
|
|
1185
|
-
enableProxyExecution: z
|
|
1186
|
-
autoOffloadThreshold: z
|
|
1187
|
-
sandboxSize: z
|
|
1188
|
-
}, "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, {
|
|
1189
1228
|
enable: boolean;
|
|
1190
1229
|
enableProxyExecution?: boolean | undefined;
|
|
1191
1230
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1196,11 +1235,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1196
1235
|
autoOffloadThreshold?: number | undefined;
|
|
1197
1236
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1198
1237
|
}>>>;
|
|
1199
|
-
multiAccount: z
|
|
1200
|
-
enable: z
|
|
1201
|
-
maxAccountsPerToolkit: z
|
|
1202
|
-
requireExplicitSelection: z
|
|
1203
|
-
}, "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, {
|
|
1204
1243
|
enable: boolean;
|
|
1205
1244
|
maxAccountsPerToolkit?: number | undefined;
|
|
1206
1245
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -1209,24 +1248,24 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1209
1248
|
maxAccountsPerToolkit?: number | undefined;
|
|
1210
1249
|
requireExplicitSelection?: boolean | undefined;
|
|
1211
1250
|
}>>>;
|
|
1212
|
-
preload: z
|
|
1213
|
-
tools: z
|
|
1214
|
-
}, "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, {
|
|
1215
1254
|
tools?: string[] | "all" | undefined;
|
|
1216
1255
|
}, {
|
|
1217
1256
|
tools?: string[] | "all" | undefined;
|
|
1218
1257
|
}>>>;
|
|
1219
|
-
experimental: z
|
|
1220
|
-
assistivePrompt: z
|
|
1221
|
-
userTimezone: z
|
|
1222
|
-
}, "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, {
|
|
1223
1262
|
userTimezone?: string | undefined;
|
|
1224
1263
|
}, {
|
|
1225
1264
|
userTimezone?: string | undefined;
|
|
1226
1265
|
}>>;
|
|
1227
|
-
customTools: z
|
|
1228
|
-
customToolkits: z
|
|
1229
|
-
}, "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, {
|
|
1230
1269
|
assistivePrompt?: {
|
|
1231
1270
|
userTimezone?: string | undefined;
|
|
1232
1271
|
} | undefined;
|
|
@@ -1239,7 +1278,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1239
1278
|
customTools?: CustomTool[] | undefined;
|
|
1240
1279
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1241
1280
|
}>>>;
|
|
1242
|
-
}, "strip", z
|
|
1281
|
+
}, "strip", z.ZodTypeAny, {
|
|
1282
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1283
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1284
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1285
|
+
} | undefined;
|
|
1243
1286
|
tools?: Record<string, string[] | {
|
|
1244
1287
|
enable: string[];
|
|
1245
1288
|
} | {
|
|
@@ -1255,16 +1298,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1255
1298
|
} | {
|
|
1256
1299
|
enable: string[];
|
|
1257
1300
|
} | undefined;
|
|
1258
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1259
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1260
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1261
|
-
} | undefined;
|
|
1262
1301
|
preload?: {
|
|
1263
1302
|
tools?: string[] | "all" | undefined;
|
|
1264
1303
|
} | undefined;
|
|
1304
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1265
1305
|
sessionPreset?: "direct_tools" | undefined;
|
|
1266
1306
|
mcp?: boolean | undefined;
|
|
1267
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1268
1307
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1269
1308
|
manageConnections?: boolean | {
|
|
1270
1309
|
enable?: boolean | undefined;
|
|
@@ -1296,6 +1335,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1296
1335
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1297
1336
|
} | undefined;
|
|
1298
1337
|
}, {
|
|
1338
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1339
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1340
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1341
|
+
} | undefined;
|
|
1299
1342
|
tools?: Record<string, string[] | {
|
|
1300
1343
|
enable: string[];
|
|
1301
1344
|
} | {
|
|
@@ -1311,16 +1354,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1311
1354
|
} | {
|
|
1312
1355
|
enable: string[];
|
|
1313
1356
|
} | undefined;
|
|
1314
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1315
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1316
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1317
|
-
} | undefined;
|
|
1318
1357
|
preload?: {
|
|
1319
1358
|
tools?: string[] | "all" | undefined;
|
|
1320
1359
|
} | undefined;
|
|
1360
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1321
1361
|
sessionPreset?: "direct_tools" | undefined;
|
|
1322
1362
|
mcp?: boolean | undefined;
|
|
1323
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1324
1363
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1325
1364
|
manageConnections?: boolean | {
|
|
1326
1365
|
enable?: boolean | undefined;
|
|
@@ -1352,6 +1391,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1352
1391
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1353
1392
|
} | undefined;
|
|
1354
1393
|
}>, {
|
|
1394
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1395
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1396
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1397
|
+
} | undefined;
|
|
1355
1398
|
tools?: Record<string, string[] | {
|
|
1356
1399
|
enable: string[];
|
|
1357
1400
|
} | {
|
|
@@ -1367,16 +1410,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1367
1410
|
} | {
|
|
1368
1411
|
enable: string[];
|
|
1369
1412
|
} | undefined;
|
|
1370
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1371
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1372
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1373
|
-
} | undefined;
|
|
1374
1413
|
preload?: {
|
|
1375
1414
|
tools?: string[] | "all" | undefined;
|
|
1376
1415
|
} | undefined;
|
|
1416
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1377
1417
|
sessionPreset?: "direct_tools" | undefined;
|
|
1378
1418
|
mcp?: boolean | undefined;
|
|
1379
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1380
1419
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1381
1420
|
manageConnections?: boolean | {
|
|
1382
1421
|
enable?: boolean | undefined;
|
|
@@ -1408,6 +1447,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1408
1447
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1409
1448
|
} | undefined;
|
|
1410
1449
|
}, {
|
|
1450
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1451
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1452
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1453
|
+
} | undefined;
|
|
1411
1454
|
tools?: Record<string, string[] | {
|
|
1412
1455
|
enable: string[];
|
|
1413
1456
|
} | {
|
|
@@ -1423,16 +1466,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1423
1466
|
} | {
|
|
1424
1467
|
enable: string[];
|
|
1425
1468
|
} | undefined;
|
|
1426
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1427
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1428
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1429
|
-
} | undefined;
|
|
1430
1469
|
preload?: {
|
|
1431
1470
|
tools?: string[] | "all" | undefined;
|
|
1432
1471
|
} | undefined;
|
|
1472
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1433
1473
|
sessionPreset?: "direct_tools" | undefined;
|
|
1434
1474
|
mcp?: boolean | undefined;
|
|
1435
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1436
1475
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1437
1476
|
manageConnections?: boolean | {
|
|
1438
1477
|
enable?: boolean | undefined;
|
|
@@ -1464,6 +1503,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1464
1503
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1465
1504
|
} | undefined;
|
|
1466
1505
|
}>, {
|
|
1506
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1507
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1508
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1509
|
+
} | undefined;
|
|
1467
1510
|
tools?: Record<string, string[] | {
|
|
1468
1511
|
enable: string[];
|
|
1469
1512
|
} | {
|
|
@@ -1479,16 +1522,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1479
1522
|
} | {
|
|
1480
1523
|
enable: string[];
|
|
1481
1524
|
} | undefined;
|
|
1482
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1483
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1484
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1485
|
-
} | undefined;
|
|
1486
1525
|
preload?: {
|
|
1487
1526
|
tools?: string[] | "all" | undefined;
|
|
1488
1527
|
} | undefined;
|
|
1528
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1489
1529
|
sessionPreset?: "direct_tools" | undefined;
|
|
1490
1530
|
mcp?: boolean | undefined;
|
|
1491
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1492
1531
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1493
1532
|
manageConnections?: boolean | {
|
|
1494
1533
|
enable?: boolean | undefined;
|
|
@@ -1545,19 +1584,19 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1545
1584
|
* @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
|
|
1546
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.
|
|
1547
1586
|
*/
|
|
1548
|
-
type ToolRouterCreateSessionConfig = z
|
|
1549
|
-
declare const ToolkitConnectionStateSchema: z
|
|
1550
|
-
slug: z
|
|
1551
|
-
name: z
|
|
1552
|
-
logo: z
|
|
1553
|
-
isNoAuth: z
|
|
1554
|
-
connection: z
|
|
1555
|
-
isActive: z
|
|
1556
|
-
authConfig: z
|
|
1557
|
-
id: z
|
|
1558
|
-
mode: z
|
|
1559
|
-
isComposioManaged: z
|
|
1560
|
-
}, "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, {
|
|
1561
1600
|
id: string;
|
|
1562
1601
|
mode: string;
|
|
1563
1602
|
isComposioManaged: boolean;
|
|
@@ -1566,17 +1605,17 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1566
1605
|
mode: string;
|
|
1567
1606
|
isComposioManaged: boolean;
|
|
1568
1607
|
}>>>;
|
|
1569
|
-
connectedAccount: z
|
|
1570
|
-
id: z
|
|
1571
|
-
status: z
|
|
1572
|
-
}, "strip", z
|
|
1608
|
+
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1609
|
+
id: z.ZodString;
|
|
1610
|
+
status: z.ZodString;
|
|
1611
|
+
}, "strip", z.ZodTypeAny, {
|
|
1573
1612
|
status: string;
|
|
1574
1613
|
id: string;
|
|
1575
1614
|
}, {
|
|
1576
1615
|
status: string;
|
|
1577
1616
|
id: string;
|
|
1578
1617
|
}>>;
|
|
1579
|
-
}, "strip", z
|
|
1618
|
+
}, "strip", z.ZodTypeAny, {
|
|
1580
1619
|
isActive: boolean;
|
|
1581
1620
|
authConfig?: {
|
|
1582
1621
|
id: string;
|
|
@@ -1599,9 +1638,9 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1599
1638
|
id: string;
|
|
1600
1639
|
} | undefined;
|
|
1601
1640
|
}>>;
|
|
1602
|
-
}, "strip", z
|
|
1603
|
-
name: string;
|
|
1641
|
+
}, "strip", z.ZodTypeAny, {
|
|
1604
1642
|
slug: string;
|
|
1643
|
+
name: string;
|
|
1605
1644
|
isNoAuth: boolean;
|
|
1606
1645
|
logo?: string | undefined;
|
|
1607
1646
|
connection?: {
|
|
@@ -1617,8 +1656,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1617
1656
|
} | undefined;
|
|
1618
1657
|
} | undefined;
|
|
1619
1658
|
}, {
|
|
1620
|
-
name: string;
|
|
1621
1659
|
slug: string;
|
|
1660
|
+
name: string;
|
|
1622
1661
|
logo?: string | undefined;
|
|
1623
1662
|
isNoAuth?: boolean | undefined;
|
|
1624
1663
|
connection?: {
|
|
@@ -1634,19 +1673,19 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1634
1673
|
} | undefined;
|
|
1635
1674
|
} | undefined;
|
|
1636
1675
|
}>;
|
|
1637
|
-
declare const ToolkitConnectionsDetailsSchema: z
|
|
1638
|
-
items: z
|
|
1639
|
-
slug: z
|
|
1640
|
-
name: z
|
|
1641
|
-
logo: z
|
|
1642
|
-
isNoAuth: z
|
|
1643
|
-
connection: z
|
|
1644
|
-
isActive: z
|
|
1645
|
-
authConfig: z
|
|
1646
|
-
id: z
|
|
1647
|
-
mode: z
|
|
1648
|
-
isComposioManaged: z
|
|
1649
|
-
}, "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, {
|
|
1650
1689
|
id: string;
|
|
1651
1690
|
mode: string;
|
|
1652
1691
|
isComposioManaged: boolean;
|
|
@@ -1655,17 +1694,17 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1655
1694
|
mode: string;
|
|
1656
1695
|
isComposioManaged: boolean;
|
|
1657
1696
|
}>>>;
|
|
1658
|
-
connectedAccount: z
|
|
1659
|
-
id: z
|
|
1660
|
-
status: z
|
|
1661
|
-
}, "strip", z
|
|
1697
|
+
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1698
|
+
id: z.ZodString;
|
|
1699
|
+
status: z.ZodString;
|
|
1700
|
+
}, "strip", z.ZodTypeAny, {
|
|
1662
1701
|
status: string;
|
|
1663
1702
|
id: string;
|
|
1664
1703
|
}, {
|
|
1665
1704
|
status: string;
|
|
1666
1705
|
id: string;
|
|
1667
1706
|
}>>;
|
|
1668
|
-
}, "strip", z
|
|
1707
|
+
}, "strip", z.ZodTypeAny, {
|
|
1669
1708
|
isActive: boolean;
|
|
1670
1709
|
authConfig?: {
|
|
1671
1710
|
id: string;
|
|
@@ -1688,9 +1727,9 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1688
1727
|
id: string;
|
|
1689
1728
|
} | undefined;
|
|
1690
1729
|
}>>;
|
|
1691
|
-
}, "strip", z
|
|
1692
|
-
name: string;
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1693
1731
|
slug: string;
|
|
1732
|
+
name: string;
|
|
1694
1733
|
isNoAuth: boolean;
|
|
1695
1734
|
logo?: string | undefined;
|
|
1696
1735
|
connection?: {
|
|
@@ -1706,8 +1745,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1706
1745
|
} | undefined;
|
|
1707
1746
|
} | undefined;
|
|
1708
1747
|
}, {
|
|
1709
|
-
name: string;
|
|
1710
1748
|
slug: string;
|
|
1749
|
+
name: string;
|
|
1711
1750
|
logo?: string | undefined;
|
|
1712
1751
|
isNoAuth?: boolean | undefined;
|
|
1713
1752
|
connection?: {
|
|
@@ -1723,12 +1762,12 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1723
1762
|
} | undefined;
|
|
1724
1763
|
} | undefined;
|
|
1725
1764
|
}>, "many">;
|
|
1726
|
-
cursor: z
|
|
1727
|
-
totalPages: z
|
|
1728
|
-
}, "strip", z
|
|
1765
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1766
|
+
totalPages: z.ZodNumber;
|
|
1767
|
+
}, "strip", z.ZodTypeAny, {
|
|
1729
1768
|
items: {
|
|
1730
|
-
name: string;
|
|
1731
1769
|
slug: string;
|
|
1770
|
+
name: string;
|
|
1732
1771
|
isNoAuth: boolean;
|
|
1733
1772
|
logo?: string | undefined;
|
|
1734
1773
|
connection?: {
|
|
@@ -1748,8 +1787,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1748
1787
|
cursor?: string | undefined;
|
|
1749
1788
|
}, {
|
|
1750
1789
|
items: {
|
|
1751
|
-
name: string;
|
|
1752
1790
|
slug: string;
|
|
1791
|
+
name: string;
|
|
1753
1792
|
logo?: string | undefined;
|
|
1754
1793
|
isNoAuth?: boolean | undefined;
|
|
1755
1794
|
connection?: {
|
|
@@ -1768,13 +1807,13 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1768
1807
|
totalPages: number;
|
|
1769
1808
|
cursor?: string | undefined;
|
|
1770
1809
|
}>;
|
|
1771
|
-
type ToolkitConnectionsDetails = z
|
|
1772
|
-
type ToolkitConnectionState = z
|
|
1773
|
-
declare const ToolRouterMCPServerConfigSchema: z
|
|
1774
|
-
type: z
|
|
1775
|
-
url: z
|
|
1776
|
-
headers: z
|
|
1777
|
-
}, "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, {
|
|
1778
1817
|
type: "http" | "sse";
|
|
1779
1818
|
url: string;
|
|
1780
1819
|
headers?: Record<string, string> | undefined;
|
|
@@ -1783,60 +1822,60 @@ declare const ToolRouterMCPServerConfigSchema: z$1.ZodObject<{
|
|
|
1783
1822
|
url: string;
|
|
1784
1823
|
headers?: Record<string, string> | undefined;
|
|
1785
1824
|
}>;
|
|
1786
|
-
type ToolRouterMCPServerConfig = z
|
|
1825
|
+
type ToolRouterMCPServerConfig = z.infer<typeof ToolRouterMCPServerConfigSchema>;
|
|
1787
1826
|
type ToolRouterToolsFn<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = (modifiers?: SessionMetaToolOptions) => Promise<ReturnType<TProvider['wrapTools']>>;
|
|
1788
1827
|
type ToolRouterAuthorizeFn = (toolkit: string, options?: {
|
|
1789
1828
|
callbackUrl?: string;
|
|
1790
1829
|
alias?: string;
|
|
1791
1830
|
}) => Promise<ConnectionRequest>;
|
|
1792
|
-
declare const ToolRouterToolkitsOptionsSchema: z
|
|
1793
|
-
toolkits: z
|
|
1794
|
-
cursor: z
|
|
1795
|
-
limit: z
|
|
1796
|
-
isConnected: z
|
|
1797
|
-
search: z
|
|
1798
|
-
}, "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, {
|
|
1799
1838
|
toolkits?: string[] | undefined;
|
|
1800
|
-
cursor?: string | undefined;
|
|
1801
1839
|
limit?: number | undefined;
|
|
1802
1840
|
search?: string | undefined;
|
|
1841
|
+
cursor?: string | undefined;
|
|
1803
1842
|
isConnected?: boolean | undefined;
|
|
1804
1843
|
}, {
|
|
1805
1844
|
toolkits?: string[] | undefined;
|
|
1806
|
-
cursor?: string | undefined;
|
|
1807
1845
|
limit?: number | undefined;
|
|
1808
1846
|
search?: string | undefined;
|
|
1847
|
+
cursor?: string | undefined;
|
|
1809
1848
|
isConnected?: boolean | undefined;
|
|
1810
1849
|
}>;
|
|
1811
|
-
type ToolRouterToolkitsOptions = z
|
|
1850
|
+
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
1812
1851
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
1813
|
-
declare const ToolRouterSessionSearchResponseSchema: z
|
|
1814
|
-
success: z
|
|
1815
|
-
error: z
|
|
1816
|
-
results: z
|
|
1817
|
-
index: z
|
|
1818
|
-
useCase: z
|
|
1819
|
-
primaryToolSlugs: z
|
|
1820
|
-
relatedToolSlugs: z
|
|
1821
|
-
toolkits: z
|
|
1822
|
-
difficulty: z
|
|
1823
|
-
error: z
|
|
1824
|
-
executionGuidance: z
|
|
1825
|
-
knownPitfalls: z
|
|
1826
|
-
memory: z
|
|
1827
|
-
planId: z
|
|
1828
|
-
recommendedPlanSteps: z
|
|
1829
|
-
referenceWorkbenchSnippets: z
|
|
1830
|
-
code: z
|
|
1831
|
-
description: z
|
|
1832
|
-
}, "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, {
|
|
1833
1872
|
code: string;
|
|
1834
1873
|
description: string;
|
|
1835
1874
|
}, {
|
|
1836
1875
|
code: string;
|
|
1837
1876
|
description: string;
|
|
1838
1877
|
}>, "many">>;
|
|
1839
|
-
}, "strip", z
|
|
1878
|
+
}, "strip", z.ZodTypeAny, {
|
|
1840
1879
|
toolkits: string[];
|
|
1841
1880
|
index: number;
|
|
1842
1881
|
useCase: string;
|
|
@@ -1871,24 +1910,24 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1871
1910
|
description: string;
|
|
1872
1911
|
}[] | undefined;
|
|
1873
1912
|
}>, "many">;
|
|
1874
|
-
toolSchemas: z
|
|
1875
|
-
toolSlug: z
|
|
1876
|
-
toolkit: z
|
|
1877
|
-
description: z
|
|
1878
|
-
hasFullSchema: z
|
|
1879
|
-
inputSchema: z
|
|
1880
|
-
outputSchema: z
|
|
1881
|
-
schemaRef: z
|
|
1882
|
-
args: z
|
|
1883
|
-
toolSlugs: z
|
|
1884
|
-
}, "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, {
|
|
1885
1924
|
toolSlugs: string[];
|
|
1886
1925
|
}, {
|
|
1887
1926
|
toolSlugs: string[];
|
|
1888
1927
|
}>;
|
|
1889
|
-
message: z
|
|
1890
|
-
tool: z
|
|
1891
|
-
}, "strip", z
|
|
1928
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1929
|
+
tool: z.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
|
|
1930
|
+
}, "strip", z.ZodTypeAny, {
|
|
1892
1931
|
args: {
|
|
1893
1932
|
toolSlugs: string[];
|
|
1894
1933
|
};
|
|
@@ -1901,7 +1940,7 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1901
1940
|
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
1902
1941
|
message?: string | undefined;
|
|
1903
1942
|
}>>;
|
|
1904
|
-
}, "strip", z
|
|
1943
|
+
}, "strip", z.ZodTypeAny, {
|
|
1905
1944
|
toolkit: string;
|
|
1906
1945
|
toolSlug: string;
|
|
1907
1946
|
description?: string | undefined;
|
|
@@ -1930,34 +1969,34 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1930
1969
|
message?: string | undefined;
|
|
1931
1970
|
} | undefined;
|
|
1932
1971
|
}>>;
|
|
1933
|
-
toolkitConnectionStatuses: z
|
|
1934
|
-
toolkit: z
|
|
1935
|
-
description: z
|
|
1936
|
-
hasActiveConnection: z
|
|
1937
|
-
statusMessage: z
|
|
1938
|
-
connectionDetails: z
|
|
1939
|
-
currentUserInfo: z
|
|
1940
|
-
}, "strip", z
|
|
1941
|
-
toolkit: string;
|
|
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, {
|
|
1942
1980
|
description: string;
|
|
1981
|
+
toolkit: string;
|
|
1943
1982
|
hasActiveConnection: boolean;
|
|
1944
1983
|
statusMessage: string;
|
|
1945
1984
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1946
1985
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1947
1986
|
}, {
|
|
1948
|
-
toolkit: string;
|
|
1949
1987
|
description: string;
|
|
1988
|
+
toolkit: string;
|
|
1950
1989
|
hasActiveConnection: boolean;
|
|
1951
1990
|
statusMessage: string;
|
|
1952
1991
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1953
1992
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1954
1993
|
}>, "many">;
|
|
1955
|
-
nextStepsGuidance: z
|
|
1956
|
-
session: z
|
|
1957
|
-
id: z
|
|
1958
|
-
generateId: z
|
|
1959
|
-
instructions: z
|
|
1960
|
-
}, "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, {
|
|
1961
2000
|
id: string;
|
|
1962
2001
|
generateId: boolean;
|
|
1963
2002
|
instructions: string;
|
|
@@ -1966,11 +2005,11 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1966
2005
|
generateId: boolean;
|
|
1967
2006
|
instructions: string;
|
|
1968
2007
|
}>;
|
|
1969
|
-
timeInfo: z
|
|
1970
|
-
currentTimeUtc: z
|
|
1971
|
-
currentTimeUtcEpochSeconds: z
|
|
1972
|
-
message: z
|
|
1973
|
-
}, "strip", z
|
|
2008
|
+
timeInfo: z.ZodObject<{
|
|
2009
|
+
currentTimeUtc: z.ZodString;
|
|
2010
|
+
currentTimeUtcEpochSeconds: z.ZodNumber;
|
|
2011
|
+
message: z.ZodString;
|
|
2012
|
+
}, "strip", z.ZodTypeAny, {
|
|
1974
2013
|
message: string;
|
|
1975
2014
|
currentTimeUtc: string;
|
|
1976
2015
|
currentTimeUtcEpochSeconds: number;
|
|
@@ -1979,7 +2018,7 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1979
2018
|
currentTimeUtc: string;
|
|
1980
2019
|
currentTimeUtcEpochSeconds: number;
|
|
1981
2020
|
}>;
|
|
1982
|
-
}, "strip", z
|
|
2021
|
+
}, "strip", z.ZodTypeAny, {
|
|
1983
2022
|
error: string | null;
|
|
1984
2023
|
success: boolean;
|
|
1985
2024
|
results: {
|
|
@@ -2016,8 +2055,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2016
2055
|
} | undefined;
|
|
2017
2056
|
}>;
|
|
2018
2057
|
toolkitConnectionStatuses: {
|
|
2019
|
-
toolkit: string;
|
|
2020
2058
|
description: string;
|
|
2059
|
+
toolkit: string;
|
|
2021
2060
|
hasActiveConnection: boolean;
|
|
2022
2061
|
statusMessage: string;
|
|
2023
2062
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2071,8 +2110,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2071
2110
|
} | undefined;
|
|
2072
2111
|
}>;
|
|
2073
2112
|
toolkitConnectionStatuses: {
|
|
2074
|
-
toolkit: string;
|
|
2075
2113
|
description: string;
|
|
2114
|
+
toolkit: string;
|
|
2076
2115
|
hasActiveConnection: boolean;
|
|
2077
2116
|
statusMessage: string;
|
|
2078
2117
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2090,21 +2129,21 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2090
2129
|
currentTimeUtcEpochSeconds: number;
|
|
2091
2130
|
};
|
|
2092
2131
|
}>;
|
|
2093
|
-
type ToolRouterSessionSearchResponse = z
|
|
2094
|
-
declare const ToolRouterSessionExecuteResponseSchema: z
|
|
2095
|
-
data: z
|
|
2096
|
-
error: z
|
|
2097
|
-
logId: z
|
|
2098
|
-
}, "strip", z
|
|
2099
|
-
error: string | null;
|
|
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, {
|
|
2100
2138
|
data: Record<string, unknown>;
|
|
2139
|
+
error: string | null;
|
|
2101
2140
|
logId: string;
|
|
2102
2141
|
}, {
|
|
2103
|
-
error: string | null;
|
|
2104
2142
|
data: Record<string, unknown>;
|
|
2143
|
+
error: string | null;
|
|
2105
2144
|
logId: string;
|
|
2106
2145
|
}>;
|
|
2107
|
-
type ToolRouterSessionExecuteResponse = z
|
|
2146
|
+
type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
2108
2147
|
interface ToolRouterSessionProxyExecuteResponse {
|
|
2109
2148
|
/** The HTTP status code returned from the proxied API */
|
|
2110
2149
|
status: number;
|
|
@@ -2160,32 +2199,32 @@ interface ToolRouterSessionMetadata {
|
|
|
2160
2199
|
preloadedCustomToolSlugs?: string[];
|
|
2161
2200
|
inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
|
|
2162
2201
|
}
|
|
2163
|
-
declare const SessionProxyExecuteParamsSchema: z
|
|
2164
|
-
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */toolkit: z
|
|
2165
|
-
endpoint: z
|
|
2166
|
-
method: z
|
|
2167
|
-
body: z
|
|
2168
|
-
parameters: z
|
|
2169
|
-
in: z
|
|
2170
|
-
name: z
|
|
2171
|
-
value: z
|
|
2172
|
-
}, "strip", z
|
|
2173
|
-
value: string | number;
|
|
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, {
|
|
2174
2212
|
name: string;
|
|
2213
|
+
value: string | number;
|
|
2175
2214
|
in: "query" | "header";
|
|
2176
2215
|
}, {
|
|
2177
|
-
value: string | number;
|
|
2178
2216
|
name: string;
|
|
2217
|
+
value: string | number;
|
|
2179
2218
|
in: "query" | "header";
|
|
2180
2219
|
}>, "many">>;
|
|
2181
|
-
}, "strip", z
|
|
2220
|
+
}, "strip", z.ZodTypeAny, {
|
|
2182
2221
|
toolkit: string;
|
|
2183
2222
|
endpoint: string;
|
|
2184
2223
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2185
2224
|
body?: unknown;
|
|
2186
2225
|
parameters?: {
|
|
2187
|
-
value: string | number;
|
|
2188
2226
|
name: string;
|
|
2227
|
+
value: string | number;
|
|
2189
2228
|
in: "query" | "header";
|
|
2190
2229
|
}[] | undefined;
|
|
2191
2230
|
}, {
|
|
@@ -2194,51 +2233,51 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2194
2233
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2195
2234
|
body?: unknown;
|
|
2196
2235
|
parameters?: {
|
|
2197
|
-
value: string | number;
|
|
2198
2236
|
name: string;
|
|
2237
|
+
value: string | number;
|
|
2199
2238
|
in: "query" | "header";
|
|
2200
2239
|
}[] | undefined;
|
|
2201
2240
|
}>;
|
|
2202
|
-
type SessionProxyExecuteParams = z
|
|
2241
|
+
type SessionProxyExecuteParams = z.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
2203
2242
|
type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2204
|
-
declare const ToolRouterUpdateSessionConfigSchema: z
|
|
2205
|
-
toolkits: z
|
|
2206
|
-
disable: z
|
|
2207
|
-
}, "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, {
|
|
2208
2247
|
disable: string[];
|
|
2209
2248
|
}, {
|
|
2210
2249
|
disable: string[];
|
|
2211
|
-
}>, z
|
|
2212
|
-
enable: z
|
|
2213
|
-
}, "strict", z
|
|
2250
|
+
}>, z.ZodObject<{
|
|
2251
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
2252
|
+
}, "strict", z.ZodTypeAny, {
|
|
2214
2253
|
enable: string[];
|
|
2215
2254
|
}, {
|
|
2216
2255
|
enable: string[];
|
|
2217
2256
|
}>]>>>;
|
|
2218
|
-
tools: z
|
|
2219
|
-
enable: z
|
|
2220
|
-
}, "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, {
|
|
2221
2260
|
enable: string[];
|
|
2222
2261
|
}, {
|
|
2223
2262
|
enable: string[];
|
|
2224
|
-
}>, z
|
|
2225
|
-
disable: z
|
|
2226
|
-
}, "strict", z
|
|
2263
|
+
}>, z.ZodObject<{
|
|
2264
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
2265
|
+
}, "strict", z.ZodTypeAny, {
|
|
2227
2266
|
disable: string[];
|
|
2228
2267
|
}, {
|
|
2229
2268
|
disable: string[];
|
|
2230
|
-
}>, z
|
|
2231
|
-
tags: z
|
|
2232
|
-
enable: z
|
|
2233
|
-
disable: z
|
|
2234
|
-
}, "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, {
|
|
2235
2274
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2236
2275
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2237
2276
|
}, {
|
|
2238
2277
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2239
2278
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2240
2279
|
}>]>;
|
|
2241
|
-
}, "strict", z
|
|
2280
|
+
}, "strict", z.ZodTypeAny, {
|
|
2242
2281
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2243
2282
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2244
2283
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -2267,23 +2306,23 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2267
2306
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2268
2307
|
};
|
|
2269
2308
|
}>]>>>>;
|
|
2270
|
-
tags: z
|
|
2271
|
-
enable: z
|
|
2272
|
-
disable: z
|
|
2273
|
-
}, "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, {
|
|
2274
2313
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2275
2314
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2276
2315
|
}, {
|
|
2277
2316
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2278
2317
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2279
2318
|
}>]>>>;
|
|
2280
|
-
authConfigs: z
|
|
2281
|
-
connectedAccounts: z
|
|
2282
|
-
manageConnections: z
|
|
2283
|
-
enable: z
|
|
2284
|
-
callbackUrl: z
|
|
2285
|
-
waitForConnections: z
|
|
2286
|
-
}, "strict", z
|
|
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, {
|
|
2287
2326
|
enable?: boolean | undefined;
|
|
2288
2327
|
callbackUrl?: string | undefined;
|
|
2289
2328
|
waitForConnections?: boolean | undefined;
|
|
@@ -2292,12 +2331,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2292
2331
|
callbackUrl?: string | undefined;
|
|
2293
2332
|
waitForConnections?: boolean | undefined;
|
|
2294
2333
|
}>]>>>>;
|
|
2295
|
-
sandbox: z
|
|
2296
|
-
enable: z
|
|
2297
|
-
enableProxyExecution: z
|
|
2298
|
-
autoOffloadThreshold: z
|
|
2299
|
-
sandboxSize: z
|
|
2300
|
-
}, "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, {
|
|
2301
2340
|
enable?: boolean | undefined;
|
|
2302
2341
|
enableProxyExecution?: boolean | undefined;
|
|
2303
2342
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2308,12 +2347,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2308
2347
|
autoOffloadThreshold?: number | undefined;
|
|
2309
2348
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2310
2349
|
}>>>>;
|
|
2311
|
-
workbench: z
|
|
2312
|
-
enable: z
|
|
2313
|
-
enableProxyExecution: z
|
|
2314
|
-
autoOffloadThreshold: z
|
|
2315
|
-
sandboxSize: z
|
|
2316
|
-
}, "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, {
|
|
2317
2356
|
enable?: boolean | undefined;
|
|
2318
2357
|
enableProxyExecution?: boolean | undefined;
|
|
2319
2358
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2324,11 +2363,11 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2324
2363
|
autoOffloadThreshold?: number | undefined;
|
|
2325
2364
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2326
2365
|
}>>>>;
|
|
2327
|
-
multiAccount: z
|
|
2328
|
-
enable: z
|
|
2329
|
-
maxAccountsPerToolkit: z
|
|
2330
|
-
requireExplicitSelection: z
|
|
2331
|
-
}, "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, {
|
|
2332
2371
|
enable?: boolean | undefined;
|
|
2333
2372
|
maxAccountsPerToolkit?: number | undefined;
|
|
2334
2373
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -2337,14 +2376,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2337
2376
|
maxAccountsPerToolkit?: number | undefined;
|
|
2338
2377
|
requireExplicitSelection?: boolean | undefined;
|
|
2339
2378
|
}>>>>;
|
|
2340
|
-
preload: z
|
|
2341
|
-
tools: z
|
|
2342
|
-
}, "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, {
|
|
2343
2382
|
tools?: string[] | "all" | undefined;
|
|
2344
2383
|
}, {
|
|
2345
2384
|
tools?: string[] | "all" | undefined;
|
|
2346
2385
|
}>>>;
|
|
2347
|
-
}, "strip", z
|
|
2386
|
+
}, "strip", z.ZodTypeAny, {
|
|
2387
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2388
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2389
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2390
|
+
} | undefined;
|
|
2348
2391
|
tools?: Record<string, string[] | {
|
|
2349
2392
|
enable: string[];
|
|
2350
2393
|
} | {
|
|
@@ -2360,10 +2403,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2360
2403
|
} | {
|
|
2361
2404
|
enable: string[];
|
|
2362
2405
|
} | undefined;
|
|
2363
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2364
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2365
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2366
|
-
} | undefined;
|
|
2367
2406
|
preload?: {
|
|
2368
2407
|
tools?: string[] | "all" | undefined;
|
|
2369
2408
|
} | undefined;
|
|
@@ -2392,6 +2431,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2392
2431
|
requireExplicitSelection?: boolean | undefined;
|
|
2393
2432
|
} | null | undefined;
|
|
2394
2433
|
}, {
|
|
2434
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2435
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2436
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2437
|
+
} | undefined;
|
|
2395
2438
|
tools?: Record<string, string[] | {
|
|
2396
2439
|
enable: string[];
|
|
2397
2440
|
} | {
|
|
@@ -2407,10 +2450,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2407
2450
|
} | {
|
|
2408
2451
|
enable: string[];
|
|
2409
2452
|
} | undefined;
|
|
2410
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2411
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2412
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2413
|
-
} | undefined;
|
|
2414
2453
|
preload?: {
|
|
2415
2454
|
tools?: string[] | "all" | undefined;
|
|
2416
2455
|
} | undefined;
|
|
@@ -2439,6 +2478,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2439
2478
|
requireExplicitSelection?: boolean | undefined;
|
|
2440
2479
|
} | null | undefined;
|
|
2441
2480
|
}>, {
|
|
2481
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2482
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2483
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2484
|
+
} | undefined;
|
|
2442
2485
|
tools?: Record<string, string[] | {
|
|
2443
2486
|
enable: string[];
|
|
2444
2487
|
} | {
|
|
@@ -2454,10 +2497,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2454
2497
|
} | {
|
|
2455
2498
|
enable: string[];
|
|
2456
2499
|
} | undefined;
|
|
2457
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2458
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2459
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2460
|
-
} | undefined;
|
|
2461
2500
|
preload?: {
|
|
2462
2501
|
tools?: string[] | "all" | undefined;
|
|
2463
2502
|
} | undefined;
|
|
@@ -2486,6 +2525,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2486
2525
|
requireExplicitSelection?: boolean | undefined;
|
|
2487
2526
|
} | null | undefined;
|
|
2488
2527
|
}, {
|
|
2528
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2529
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2530
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2531
|
+
} | undefined;
|
|
2489
2532
|
tools?: Record<string, string[] | {
|
|
2490
2533
|
enable: string[];
|
|
2491
2534
|
} | {
|
|
@@ -2501,10 +2544,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2501
2544
|
} | {
|
|
2502
2545
|
enable: string[];
|
|
2503
2546
|
} | undefined;
|
|
2504
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2505
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2506
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2507
|
-
} | undefined;
|
|
2508
2547
|
preload?: {
|
|
2509
2548
|
tools?: string[] | "all" | undefined;
|
|
2510
2549
|
} | undefined;
|
|
@@ -2533,8 +2572,20 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2533
2572
|
requireExplicitSelection?: boolean | undefined;
|
|
2534
2573
|
} | null | undefined;
|
|
2535
2574
|
}>;
|
|
2536
|
-
type ToolRouterUpdateSessionConfig = z
|
|
2575
|
+
type ToolRouterUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
2537
2576
|
type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
|
|
2577
|
+
declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
|
|
2578
|
+
sessionId: z.ZodString;
|
|
2579
|
+
deleted: z.ZodLiteral<true>;
|
|
2580
|
+
}, "strip", z.ZodTypeAny, {
|
|
2581
|
+
sessionId: string;
|
|
2582
|
+
deleted: true;
|
|
2583
|
+
}, {
|
|
2584
|
+
sessionId: string;
|
|
2585
|
+
deleted: true;
|
|
2586
|
+
}>;
|
|
2587
|
+
type ToolRouterSessionDeleteResponse = z.infer<typeof ToolRouterSessionDeleteResponseSchema>;
|
|
2588
|
+
type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
|
|
2538
2589
|
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
2539
2590
|
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
2540
2591
|
sessionId: string;
|
|
@@ -2566,6 +2617,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2566
2617
|
execute: ToolRouterSessionExecuteFn;
|
|
2567
2618
|
/** Update the session configuration. Mutates this session in-place. */
|
|
2568
2619
|
update: ToolRouterSessionUpdateFn;
|
|
2620
|
+
/** Delete the session. Deleted sessions are no longer retrievable or executable. */
|
|
2621
|
+
delete: ToolRouterSessionDeleteFn;
|
|
2569
2622
|
/** Proxy an API call through Composio's auth layer using the session's connected account */
|
|
2570
2623
|
proxyExecute: ToolRouterSessionProxyExecuteFn;
|
|
2571
2624
|
/** List custom tools registered in this session, with their final slugs and schemas */
|
|
@@ -2589,8 +2642,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2589
2642
|
type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
|
|
2590
2643
|
//#endregion
|
|
2591
2644
|
//#region src/types/customTool.types.d.ts
|
|
2592
|
-
type AnyZodSchema = z.ZodType | z$2.ZodType;
|
|
2593
|
-
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;
|
|
2594
2647
|
/**
|
|
2595
2648
|
* Session context injected into custom tool execute functions at runtime.
|
|
2596
2649
|
* Provides identity context and methods to call other tools or proxy API requests.
|
|
@@ -2625,24 +2678,24 @@ type CustomToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ct
|
|
|
2625
2678
|
* Alphanumeric, underscores, and hyphens only. No `LOCAL_` or `COMPOSIO_` prefix.
|
|
2626
2679
|
* Length is validated contextually (standalone vs extension vs toolkit) at creation time.
|
|
2627
2680
|
*/
|
|
2628
|
-
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>;
|
|
2629
2682
|
/**
|
|
2630
2683
|
* Zod schema for validating the string/scalar fields of createCustomTool() options.
|
|
2631
2684
|
* Slug is validated separately as the first argument.
|
|
2632
2685
|
* Used internally for validation — inputParams, outputParams, and execute are checked manually.
|
|
2633
2686
|
*/
|
|
2634
|
-
declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
2635
|
-
name: z.ZodString;
|
|
2636
|
-
description: z.ZodString;
|
|
2687
|
+
declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
|
|
2688
|
+
name: z$1.ZodString;
|
|
2689
|
+
description: z$1.ZodString;
|
|
2637
2690
|
/**
|
|
2638
2691
|
* Composio toolkit slug that this tool extends (inherits auth from).
|
|
2639
2692
|
* Must be a valid Composio toolkit slug (e.g. `'gmail'`, `'github'`, `'meta_ads'`).
|
|
2640
2693
|
* The backend validates this against the toolkit catalog.
|
|
2641
2694
|
* Leave empty for tools that don't need any Composio-managed authentication.
|
|
2642
2695
|
*/
|
|
2643
|
-
extendsToolkit: z.ZodOptional<z.ZodString>;
|
|
2644
|
-
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2645
|
-
}, "strip", z.ZodTypeAny, {
|
|
2696
|
+
extendsToolkit: z$1.ZodOptional<z$1.ZodString>;
|
|
2697
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2698
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2646
2699
|
name: string;
|
|
2647
2700
|
description: string;
|
|
2648
2701
|
extendsToolkit?: string | undefined;
|
|
@@ -2654,7 +2707,7 @@ declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
|
2654
2707
|
preload?: boolean | undefined;
|
|
2655
2708
|
}>;
|
|
2656
2709
|
/** Options for creating a custom tool via `createCustomTool()`. */
|
|
2657
|
-
type CreateCustomToolParams<T extends AnyZodSchema> = z.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2710
|
+
type CreateCustomToolParams<T extends AnyZodSchema> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2658
2711
|
/** Zod schema for input parameters */inputParams: T; /** Optional Zod schema for output parameters (sent to backend for documentation) */
|
|
2659
2712
|
outputParams?: AnyZodSchema; /** The function that executes the tool */
|
|
2660
2713
|
execute: CustomToolExecuteFn<T>;
|
|
@@ -2693,11 +2746,11 @@ type CustomToolWireDefinition = CustomToolDefinition;
|
|
|
2693
2746
|
* Zod schema for validating the string/scalar fields of createCustomToolkit() options.
|
|
2694
2747
|
* Slug is validated separately as the first argument.
|
|
2695
2748
|
*/
|
|
2696
|
-
declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
2697
|
-
name: z.ZodString;
|
|
2698
|
-
description: z.ZodString;
|
|
2699
|
-
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2700
|
-
}, "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, {
|
|
2701
2754
|
name: string;
|
|
2702
2755
|
description: string;
|
|
2703
2756
|
preload?: boolean | undefined;
|
|
@@ -2707,7 +2760,7 @@ declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
|
2707
2760
|
preload?: boolean | undefined;
|
|
2708
2761
|
}>;
|
|
2709
2762
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
2710
|
-
type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2763
|
+
type CreateCustomToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2711
2764
|
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */tools: CustomTool[];
|
|
2712
2765
|
};
|
|
2713
2766
|
/**
|
|
@@ -2770,4 +2823,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
2770
2823
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
2771
2824
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
2772
2825
|
//#endregion
|
|
2773
|
-
export {
|
|
2826
|
+
export { ToolRouterSessionMetadata as $, ConnectedAccountExperimentalSchema as $t, SessionProxyExecuteParams as A, UpdateConnectedAccountParamsSchema as An, FileListResponseSchema as At, ToolRouterCreateSessionConfigSchema as B, ToolRouterSessionFilesMountUploadOptionsSchema as Bt, MCPServerType as C, CreateConnectedAccountParamsSchema as Cn, ToolkitConnectionStateSchema as Ct, Session as D, UpdateConnectedAccountAclParams as Dn, FileDeleteResponse as Dt, SandboxSizeSchema as E, DefaultCreateConnectedAccountParamsSchema as En, RemoteFile as Et, ToolRouterConfigTags as F, ToolRouterSessionFilesMountDownloadOptions as Ft, ToolRouterSandboxConfigSchema as G, ConnectedAccountAclConfigResponse as Gt, ToolRouterMCPServerConfigSchema as H, ConnectionRequest as Ht, ToolRouterConfigTagsSchema as I, ToolRouterSessionFilesMountDownloadOptionsSchema as It, ToolRouterSessionDeleteResponseSchema as J, ConnectedAccountAuthConfig as Jt, ToolRouterSessionDeleteFn as K, ConnectedAccountAclConfigResponseSchema as Kt, ToolRouterConfigTools as L, ToolRouterSessionFilesMountListOptions as Lt, SessionWithoutMcp as M, RemoteFileDataSchema as Mt, ToolRouterAuthorizeFn as N, ToolRouterSessionFilesMountDeleteOptions as Nt, SessionExperimental as O, UpdateConnectedAccountAclParamsSchema as On, FileDeleteResponseSchema as Ot, ToolRouterConfigManageConnectionsSchema as P, ToolRouterSessionFilesMountDeleteOptionsSchema as Pt, ToolRouterSessionExecuteResponseSchema as Q, ConnectedAccountExperimentalResponseSchema as Qt, ToolRouterConfigToolsSchema as R, ToolRouterSessionFilesMountListOptionsSchema as Rt, SessionContext as S, CreateConnectedAccountParams as Sn, ToolkitConnectionState as St, SandboxSize as T, CreateConnectedAccountResponseSchema as Tn, ToolkitConnectionsDetailsSchema as Tt, ToolRouterManageConnectionsConfigSchema as U, ConnectionRequestState as Ut, ToolRouterMCPServerConfig as V, ComposioRequestOptions as Vt, ToolRouterSandboxConfig as W, ConnectedAccountAclConfig as Wt, ToolRouterSessionExecuteOptions as X, ConnectedAccountExperimental as Xt, ToolRouterSessionExecuteFn as Y, ConnectedAccountAuthConfigSchema as Yt, ToolRouterSessionExecuteResponse as Z, ConnectedAccountExperimentalResponse as Zt, CustomToolsMapEntry as _, CreateConnectedAccountLinkOptionsSchema as _n, ToolRouterToolsFn as _t, CreateCustomToolkitParams as a, ConnectedAccountRefreshOptions as an, ToolRouterSessionSearchResponseSchema as at, RegisteredCustomTool as b, CreateConnectedAccountOptions as bn, ToolRouterUpdateSessionConfig as bt, CustomToolExecuteFn as c, ConnectedAccountRetrieveResponseSchema as cn, ToolRouterSessionWorkbenchConfig as ct, CustomToolWireDefinition as d, ConnectedAccountStatusSchema as dn, ToolRouterToolkitsDisabledConfigSchema as dt, ConnectedAccountListParams as en, ToolRouterSessionPreloadConfig as et, CustomToolkit as f, ConnectedAccountStatuses as fn, ToolRouterToolkitsEnabledConfigSchema as ft, CustomToolsMap as g, CreateConnectedAccountLinkOptions as gn, ToolRouterToolkitsParamSchema as gt, CustomToolkitWireDefinition as h, ConnectedAccountTypes as hn, ToolRouterToolkitsOptionsSchema as ht, CreateCustomToolkitBaseSchema as i, ConnectedAccountListResponseSchema as in, ToolRouterSessionSearchResponse as it, SessionProxyExecuteParamsSchema as j, RemoteFileData as jt, SessionPreset as k, UpdateConnectedAccountParams as kn, FileListResponse as kt, CustomToolResponse as l, ConnectedAccountStatus as ln, ToolRouterTagsEnableDisableSchema as lt, CustomToolkitResponse as m, ConnectedAccountTypeSchema as mn, ToolRouterToolkitsOptions as mt, CreateCustomToolBaseSchema as n, ConnectedAccountListResponse as nn, ToolRouterSessionProxyExecuteResponse as nt, CustomTool as o, ConnectedAccountRefreshOptionsSchema as on, ToolRouterSessionUpdateFn as ot, CustomToolkitDefinition as p, ConnectedAccountType as pn, ToolRouterToolkitsFn as pt, ToolRouterSessionDeleteResponse as q, ConnectedAccountAclConfigSchema as qt, CreateCustomToolParams as r, ConnectedAccountListResponseItem as rn, ToolRouterSessionSearchFn as rt, CustomToolDefinition as s, ConnectedAccountRetrieveResponse as sn, ToolRouterSessionWarning as st, AnyZodSchema as t, ConnectedAccountListParamsSchema as tn, ToolRouterSessionProxyExecuteFn as tt, CustomToolSlugSchema as u, ConnectedAccountStatusEnum as un, ToolRouterTagsParamSchema as ut, InferZodSchema as v, CreateConnectedAccountLinkResponse as vn, ToolRouterToolsParam as vt, MCPServerTypeSchema as w, CreateConnectedAccountResponse as wn, ToolkitConnectionsDetails as wt, RegisteredCustomToolkit as x, CreateConnectedAccountOptionsSchema as xn, ToolRouterUpdateSessionConfigSchema as xt, InlineCustomToolsWirePayload as y, CreateConnectedAccountLinkResponseSchema as yn, ToolRouterToolsParamSchema as yt, ToolRouterCreateSessionConfig as z, ToolRouterSessionFilesMountUploadOptions as zt };
|