@composio/core 0.13.1 → 0.14.1
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-Dc5yKZhk.d.mts +29394 -0
- package/dist/{CustomTool-DLf7JeKt.d.mts → CustomTool-4nVuwLzO.d.mts} +1 -2
- package/dist/{CustomTool-D9qwyMrv.mjs → CustomTool-l-j5HtEf.mjs} +17 -15
- package/dist/FileModifierErrors-B8V8_3VE.mjs +97 -0
- package/dist/{FileModifierErrors-3fSwIWoa.mjs → SsrfErrors-DNJt57GL.mjs} +24 -85
- package/dist/{Telemetry-DhGI_J4G.mjs → Telemetry-CF0rNHu2.mjs} +40 -8
- package/dist/{jsonSchema-CFKdONpP.mjs → cancellation-BbJ-UQ__.mjs} +64 -19
- package/dist/{composio-BHSQwOUz.d.mts → composio-ChU3eD9F.d.mts} +1083 -1061
- package/dist/{customTool.types-9yFqPjdw.d.mts → customTool.types-CX2-LbfI.d.mts} +634 -601
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -22
- package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +2 -0
- package/dist/{errors-DSIlYfl5.mjs → errors-BcEUHZbq.mjs} +75 -74
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/{fileUtils.node-BiO1JQsJ.mjs → fileUtils.node-DOkW4PBg.mjs} +36 -70
- package/dist/index.d.mts +2446 -1563
- package/dist/index.mjs +1415 -1381
- package/dist/models/Files.node.d.mts +2 -11
- package/dist/models/Files.node.mjs +2 -2
- package/dist/models/Files.workerd.d.mts +0 -1
- package/dist/platform/node.d.mts +1 -2
- package/dist/platform/node.mjs +3 -0
- package/dist/platform/workerd.d.mts +1 -2
- package/dist/platform/workerd.mjs +30 -3
- package/dist/sensitiveFileUploadPaths-C43dHP7S.mjs +164 -0
- package/dist/{types-BJLCRj9q.d.mts → types-D5N60gUD.d.mts} +2 -3
- package/dist/{types-DdoCRzLj.d.mts → types-DY1r-kN9.d.mts} +9 -0
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -2
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -2
- package/dist/utils/modifiers/FileToolModifier.node.mjs +6 -5
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -2
- package/dist/utils/ssrfGuard.node.d.mts +22 -0
- package/dist/utils/ssrfGuard.node.mjs +152 -0
- package/dist/utils/ssrfGuard.workerd.d.mts +9 -0
- package/dist/utils/ssrfGuard.workerd.mjs +17 -0
- package/package.json +20 -15
- package/src/errors/SsrfErrors.ts +48 -0
- package/src/errors/index.ts +3 -0
- package/src/index.ts +10 -0
- package/src/models/CustomTool.ts +1 -3
- package/src/models/ToolRouterSession.ts +38 -16
- package/src/models/ToolRouterSessionFileMount.ts +7 -3
- 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 +36 -3
- package/src/provider/OpenAIProvider.ts +19 -14
- package/src/telemetry/Telemetry.ts +9 -6
- package/src/telemetry/redact.ts +40 -0
- package/src/types/tool.types.ts +36 -32
- package/src/utils/fileUtils.node.ts +29 -6
- package/src/utils/jsonSchema.ts +58 -0
- package/src/utils/modifiers/FileToolModifier.node.ts +2 -1
- package/src/utils/readResponseBody.ts +63 -0
- 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/ssrfGuard.workerd.ts +19 -0
- package/src/utils/toolkitVersion.ts +21 -2
- package/dist/BaseProvider-Brb3o86-.d.mts +0 -29425
- package/dist/CustomTool-NpHpqdnU.d.mts +0 -74
- package/dist/buffer-PcbMMsgm.mjs +0 -33
- package/dist/composio-DfPD7BAi.d.mts +0 -5666
- package/dist/customTool.types-D-6YqFdW.d.mts +0 -2826
- package/dist/types-CCh8qvui.d.mts +0 -12
|
@@ -1,10 +1,9 @@
|
|
|
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-Dc5yKZhk.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";
|
|
7
|
-
|
|
8
7
|
//#region src/types/connectedAccounts.types.d.ts
|
|
9
8
|
/**
|
|
10
9
|
* Connected Account create parameters
|
|
@@ -18,9 +17,9 @@ declare const ConnectedAccountStatuses: {
|
|
|
18
17
|
readonly INACTIVE: "INACTIVE";
|
|
19
18
|
readonly REVOKED: "REVOKED";
|
|
20
19
|
};
|
|
21
|
-
declare const ConnectedAccountStatusSchema: z.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
20
|
+
declare const ConnectedAccountStatusSchema: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
22
21
|
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
23
|
-
type ConnectedAccountStatusEnum = z.infer<typeof ConnectedAccountStatusSchema>;
|
|
22
|
+
type ConnectedAccountStatusEnum = z$1.infer<typeof ConnectedAccountStatusSchema>;
|
|
24
23
|
/**
|
|
25
24
|
* Sharing model for a connected account.
|
|
26
25
|
*
|
|
@@ -34,13 +33,13 @@ declare const ConnectedAccountTypes: {
|
|
|
34
33
|
readonly PRIVATE: "PRIVATE";
|
|
35
34
|
readonly SHARED: "SHARED";
|
|
36
35
|
};
|
|
37
|
-
declare const ConnectedAccountTypeSchema: z.ZodEnum<["PRIVATE", "SHARED"]>;
|
|
36
|
+
declare const ConnectedAccountTypeSchema: z$1.ZodEnum<["PRIVATE", "SHARED"]>;
|
|
38
37
|
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, {
|
|
38
|
+
declare const ConnectedAccountAclConfigSchema: z$1.ZodObject<{
|
|
39
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
40
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
41
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
42
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
44
43
|
allowAllUsers?: boolean | undefined;
|
|
45
44
|
allowedUserIds?: string[] | undefined;
|
|
46
45
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -49,17 +48,17 @@ declare const ConnectedAccountAclConfigSchema: z.ZodObject<{
|
|
|
49
48
|
allowedUserIds?: string[] | undefined;
|
|
50
49
|
notAllowedUserIds?: string[] | undefined;
|
|
51
50
|
}>;
|
|
52
|
-
type ConnectedAccountAclConfig = z.infer<typeof ConnectedAccountAclConfigSchema>;
|
|
51
|
+
type ConnectedAccountAclConfig = z$1.infer<typeof ConnectedAccountAclConfigSchema>;
|
|
53
52
|
/**
|
|
54
53
|
* Resolved ACL as it appears on responses. All three fields are populated
|
|
55
54
|
* when the field is visible; the field itself is `undefined` for callers
|
|
56
55
|
* not authorised to see it.
|
|
57
56
|
*/
|
|
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, {
|
|
57
|
+
declare const ConnectedAccountAclConfigResponseSchema: z$1.ZodObject<{
|
|
58
|
+
allowAllUsers: z$1.ZodBoolean;
|
|
59
|
+
allowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
60
|
+
notAllowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
61
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
63
62
|
allowAllUsers: boolean;
|
|
64
63
|
allowedUserIds: string[];
|
|
65
64
|
notAllowedUserIds: string[];
|
|
@@ -68,7 +67,7 @@ declare const ConnectedAccountAclConfigResponseSchema: z.ZodObject<{
|
|
|
68
67
|
allowedUserIds: string[];
|
|
69
68
|
notAllowedUserIds: string[];
|
|
70
69
|
}>;
|
|
71
|
-
type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfigResponseSchema>;
|
|
70
|
+
type ConnectedAccountAclConfigResponse = z$1.infer<typeof ConnectedAccountAclConfigResponseSchema>;
|
|
72
71
|
/**
|
|
73
72
|
* Experimental options for SHARED connections, passed at create / link time.
|
|
74
73
|
*
|
|
@@ -76,13 +75,13 @@ type ConnectedAccountAclConfigResponse = z.infer<typeof ConnectedAccountAclConfi
|
|
|
76
75
|
* dedicated `experimental` block on every input and response so the
|
|
77
76
|
* experimental status is visible at every call site.
|
|
78
77
|
*/
|
|
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, {
|
|
78
|
+
declare const ConnectedAccountExperimentalSchema: z$1.ZodObject<{
|
|
79
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
80
|
+
aclConfigForShared: z$1.ZodOptional<z$1.ZodObject<{
|
|
81
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
82
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
83
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
84
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
86
85
|
allowAllUsers?: boolean | undefined;
|
|
87
86
|
allowedUserIds?: string[] | undefined;
|
|
88
87
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -91,7 +90,7 @@ declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
|
91
90
|
allowedUserIds?: string[] | undefined;
|
|
92
91
|
notAllowedUserIds?: string[] | undefined;
|
|
93
92
|
}>>;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
95
94
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
96
95
|
aclConfigForShared?: {
|
|
97
96
|
allowAllUsers?: boolean | undefined;
|
|
@@ -106,19 +105,19 @@ declare const ConnectedAccountExperimentalSchema: z.ZodObject<{
|
|
|
106
105
|
notAllowedUserIds?: string[] | undefined;
|
|
107
106
|
} | undefined;
|
|
108
107
|
}>;
|
|
109
|
-
type ConnectedAccountExperimental = z.infer<typeof ConnectedAccountExperimentalSchema>;
|
|
108
|
+
type ConnectedAccountExperimental = z$1.infer<typeof ConnectedAccountExperimentalSchema>;
|
|
110
109
|
/**
|
|
111
110
|
* Resolved experimental block on retrieve / list responses. `accountType`
|
|
112
111
|
* is always present when the block is; `aclConfigForShared` is only
|
|
113
112
|
* present when the caller is authorised to see the ACL.
|
|
114
113
|
*/
|
|
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, {
|
|
114
|
+
declare const ConnectedAccountExperimentalResponseSchema: z$1.ZodObject<{
|
|
115
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
116
|
+
aclConfigForShared: z$1.ZodOptional<z$1.ZodObject<{
|
|
117
|
+
allowAllUsers: z$1.ZodBoolean;
|
|
118
|
+
allowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
119
|
+
notAllowedUserIds: z$1.ZodArray<z$1.ZodString, "many">;
|
|
120
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
122
121
|
allowAllUsers: boolean;
|
|
123
122
|
allowedUserIds: string[];
|
|
124
123
|
notAllowedUserIds: string[];
|
|
@@ -127,7 +126,7 @@ declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
|
127
126
|
allowedUserIds: string[];
|
|
128
127
|
notAllowedUserIds: string[];
|
|
129
128
|
}>>;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
131
130
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
132
131
|
aclConfigForShared?: {
|
|
133
132
|
allowAllUsers: boolean;
|
|
@@ -142,20 +141,20 @@ declare const ConnectedAccountExperimentalResponseSchema: z.ZodObject<{
|
|
|
142
141
|
notAllowedUserIds: string[];
|
|
143
142
|
} | undefined;
|
|
144
143
|
}>;
|
|
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, {
|
|
144
|
+
type ConnectedAccountExperimentalResponse = z$1.infer<typeof ConnectedAccountExperimentalResponseSchema>;
|
|
145
|
+
declare const CreateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
146
|
+
authConfig: z$1.ZodObject<{
|
|
147
|
+
id: z$1.ZodString;
|
|
148
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
150
149
|
id: string;
|
|
151
150
|
}, {
|
|
152
151
|
id: string;
|
|
153
152
|
}>;
|
|
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, {
|
|
153
|
+
connection: z$1.ZodObject<{
|
|
154
|
+
data: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
155
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
156
|
+
userId: z$1.ZodOptional<z$1.ZodString>;
|
|
157
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
159
158
|
userId?: string | undefined;
|
|
160
159
|
data?: Record<string, unknown> | undefined;
|
|
161
160
|
callbackUrl?: string | undefined;
|
|
@@ -164,7 +163,7 @@ declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
164
163
|
data?: Record<string, unknown> | undefined;
|
|
165
164
|
callbackUrl?: string | undefined;
|
|
166
165
|
}>;
|
|
167
|
-
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
168
167
|
authConfig: {
|
|
169
168
|
id: string;
|
|
170
169
|
};
|
|
@@ -183,49 +182,50 @@ declare const CreateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
183
182
|
callbackUrl?: string | undefined;
|
|
184
183
|
};
|
|
185
184
|
}>;
|
|
186
|
-
declare const DefaultCreateConnectedAccountParamsSchema: z.ZodType<{
|
|
185
|
+
declare const DefaultCreateConnectedAccountParamsSchema: z$1.ZodType<{
|
|
187
186
|
auth_config: {
|
|
188
187
|
id: string;
|
|
189
188
|
};
|
|
190
189
|
connection: {
|
|
191
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
190
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
192
191
|
data?: Record<string, unknown>;
|
|
193
192
|
callback_url?: string;
|
|
194
193
|
user_id?: string;
|
|
195
194
|
alias?: string;
|
|
196
195
|
};
|
|
197
196
|
}>;
|
|
198
|
-
declare const CreateConnectedAccountOptionsSchema: z.ZodType<{
|
|
197
|
+
declare const CreateConnectedAccountOptionsSchema: z$1.ZodType<{
|
|
199
198
|
allowMultiple?: boolean;
|
|
200
199
|
callbackUrl?: string;
|
|
201
|
-
config?: z.infer<typeof ConnectionDataSchema>;
|
|
200
|
+
config?: z$1.infer<typeof ConnectionDataSchema>;
|
|
202
201
|
alias?: string;
|
|
203
202
|
}>;
|
|
204
|
-
type CreateConnectedAccountOptions = z.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
205
|
-
type CreateConnectedAccountParams = z.infer<typeof CreateConnectedAccountParamsSchema>;
|
|
203
|
+
type CreateConnectedAccountOptions = z$1.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
204
|
+
type CreateConnectedAccountParams = z$1.infer<typeof CreateConnectedAccountParamsSchema>;
|
|
206
205
|
/**
|
|
207
206
|
* Connected Account create response
|
|
208
207
|
*/
|
|
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, {
|
|
208
|
+
declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
|
|
209
|
+
id: z$1.ZodString;
|
|
210
|
+
status: z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>;
|
|
211
|
+
redirectUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
212
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
214
213
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
215
|
-
redirectUrl: string | null;
|
|
216
214
|
id: string;
|
|
215
|
+
redirectUrl: string | null;
|
|
217
216
|
}, {
|
|
218
217
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
219
|
-
redirectUrl: string | null;
|
|
220
218
|
id: string;
|
|
219
|
+
redirectUrl: string | null;
|
|
221
220
|
}>;
|
|
222
|
-
type CreateConnectedAccountResponse = z.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
223
|
-
declare const ConnectedAccountAuthConfigSchema: z.ZodObject<{
|
|
224
|
-
id: z.ZodString;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
221
|
+
type CreateConnectedAccountResponse = z$1.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
222
|
+
declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
|
|
223
|
+
id: z$1.ZodString;
|
|
224
|
+
/** @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,120 +236,128 @@ 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
|
-
alias?: string | null;
|
|
245
|
-
|
|
244
|
+
alias?: string | null;
|
|
245
|
+
/** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
246
|
+
data?: Record<string, unknown>;
|
|
247
|
+
/** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
246
248
|
params?: Record<string, unknown>;
|
|
247
249
|
status: ConnectedAccountStatusEnum;
|
|
248
250
|
statusReason: string | null;
|
|
249
251
|
toolkit: {
|
|
250
252
|
slug: string;
|
|
251
253
|
};
|
|
252
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
254
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
253
255
|
testRequestEndpoint?: string;
|
|
254
256
|
isDisabled: boolean;
|
|
255
257
|
createdAt: string;
|
|
256
258
|
updatedAt: string;
|
|
257
259
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
258
260
|
}>;
|
|
259
|
-
type ConnectedAccountRetrieveResponse = z.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
261
|
+
type ConnectedAccountRetrieveResponse = z$1.infer<typeof ConnectedAccountRetrieveResponseSchema>;
|
|
260
262
|
/**
|
|
261
263
|
* Type for list response item that doesn't include params
|
|
262
264
|
*/
|
|
263
265
|
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">>>;
|
|
266
|
+
declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
267
|
+
authConfigIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
268
|
+
cursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
269
|
+
limit: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
270
|
+
orderBy: z$1.ZodOptional<z$1.ZodEnum<["created_at", "updated_at"]>>;
|
|
271
|
+
statuses: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodEnum<["INITIALIZING", "INITIATED", "ACTIVE", "FAILED", "EXPIRED", "INACTIVE", "REVOKED"]>, "many">>>;
|
|
272
|
+
toolkitSlugs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
273
|
+
userIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
272
274
|
/**
|
|
273
275
|
* Experimental — shape may change in future releases. Filter by sharing
|
|
274
276
|
* model. Default (omitted) returns PRIVATE only. Pass `'SHARED'` for only
|
|
275
277
|
* shared accounts, or `'ALL'` for `PRIVATE` + `SHARED`. Kept flat because
|
|
276
278
|
* the wire is a query string and can't carry nested objects.
|
|
277
279
|
*/
|
|
278
|
-
accountType: z.ZodOptional<z.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
279
|
-
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
limit?: number | null | undefined;
|
|
281
|
-
authConfigIds?: string[] | null | undefined;
|
|
280
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
281
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
282
282
|
userIds?: string[] | null | undefined;
|
|
283
|
+
authConfigIds?: string[] | null | undefined;
|
|
283
284
|
cursor?: string | null | undefined;
|
|
285
|
+
limit?: number | null | undefined;
|
|
284
286
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
285
287
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
286
288
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
287
289
|
toolkitSlugs?: string[] | null | undefined;
|
|
288
290
|
}, {
|
|
289
|
-
limit?: number | null | undefined;
|
|
290
|
-
authConfigIds?: string[] | null | undefined;
|
|
291
291
|
userIds?: string[] | null | undefined;
|
|
292
|
+
authConfigIds?: string[] | null | undefined;
|
|
292
293
|
cursor?: string | null | undefined;
|
|
294
|
+
limit?: number | null | undefined;
|
|
293
295
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
294
296
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
295
297
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
296
298
|
toolkitSlugs?: string[] | null | undefined;
|
|
297
299
|
}>;
|
|
298
|
-
type ConnectedAccountListParams = z.infer<typeof ConnectedAccountListParamsSchema>;
|
|
299
|
-
declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
300
|
-
items: z.ZodArray<z.ZodType<{
|
|
300
|
+
type ConnectedAccountListParams = z$1.infer<typeof ConnectedAccountListParamsSchema>;
|
|
301
|
+
declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
|
|
302
|
+
items: z$1.ZodArray<z$1.ZodType<{
|
|
301
303
|
id: string;
|
|
302
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
304
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
303
305
|
wordId?: string | null;
|
|
304
|
-
alias?: string | null;
|
|
305
|
-
|
|
306
|
+
alias?: string | null;
|
|
307
|
+
/** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
308
|
+
data?: Record<string, unknown>;
|
|
309
|
+
/** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
306
310
|
params?: Record<string, unknown>;
|
|
307
311
|
status: ConnectedAccountStatusEnum;
|
|
308
312
|
statusReason: string | null;
|
|
309
313
|
toolkit: {
|
|
310
314
|
slug: string;
|
|
311
315
|
};
|
|
312
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
316
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
313
317
|
testRequestEndpoint?: string;
|
|
314
318
|
isDisabled: boolean;
|
|
315
319
|
createdAt: string;
|
|
316
320
|
updatedAt: string;
|
|
317
321
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
318
|
-
}, z.ZodTypeDef, {
|
|
322
|
+
}, z$1.ZodTypeDef, {
|
|
319
323
|
id: string;
|
|
320
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
324
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
321
325
|
wordId?: string | null;
|
|
322
|
-
alias?: string | null;
|
|
323
|
-
|
|
326
|
+
alias?: string | null;
|
|
327
|
+
/** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
328
|
+
data?: Record<string, unknown>;
|
|
329
|
+
/** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
324
330
|
params?: Record<string, unknown>;
|
|
325
331
|
status: ConnectedAccountStatusEnum;
|
|
326
332
|
statusReason: string | null;
|
|
327
333
|
toolkit: {
|
|
328
334
|
slug: string;
|
|
329
335
|
};
|
|
330
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
336
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
331
337
|
testRequestEndpoint?: string;
|
|
332
338
|
isDisabled: boolean;
|
|
333
339
|
createdAt: string;
|
|
334
340
|
updatedAt: string;
|
|
335
341
|
experimental?: ConnectedAccountExperimentalResponse;
|
|
336
342
|
}>, "many">;
|
|
337
|
-
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
-
totalPages: z.ZodNumber;
|
|
339
|
-
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
nextCursor: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
344
|
+
totalPages: z$1.ZodNumber;
|
|
345
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
340
346
|
items: {
|
|
341
347
|
id: string;
|
|
342
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
348
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
343
349
|
wordId?: string | null;
|
|
344
|
-
alias?: string | null;
|
|
345
|
-
|
|
350
|
+
alias?: string | null;
|
|
351
|
+
/** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
352
|
+
data?: Record<string, unknown>;
|
|
353
|
+
/** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
346
354
|
params?: Record<string, unknown>;
|
|
347
355
|
status: ConnectedAccountStatusEnum;
|
|
348
356
|
statusReason: string | null;
|
|
349
357
|
toolkit: {
|
|
350
358
|
slug: string;
|
|
351
359
|
};
|
|
352
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
360
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
353
361
|
testRequestEndpoint?: string;
|
|
354
362
|
isDisabled: boolean;
|
|
355
363
|
createdAt: string;
|
|
@@ -361,17 +369,19 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
361
369
|
}, {
|
|
362
370
|
items: {
|
|
363
371
|
id: string;
|
|
364
|
-
authConfig: z.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
372
|
+
authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
|
|
365
373
|
wordId?: string | null;
|
|
366
|
-
alias?: string | null;
|
|
367
|
-
|
|
374
|
+
alias?: string | null;
|
|
375
|
+
/** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
|
|
376
|
+
data?: Record<string, unknown>;
|
|
377
|
+
/** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
|
|
368
378
|
params?: Record<string, unknown>;
|
|
369
379
|
status: ConnectedAccountStatusEnum;
|
|
370
380
|
statusReason: string | null;
|
|
371
381
|
toolkit: {
|
|
372
382
|
slug: string;
|
|
373
383
|
};
|
|
374
|
-
state?: z.infer<typeof ConnectionDataSchema>;
|
|
384
|
+
state?: z$1.infer<typeof ConnectionDataSchema>;
|
|
375
385
|
testRequestEndpoint?: string;
|
|
376
386
|
isDisabled: boolean;
|
|
377
387
|
createdAt: string;
|
|
@@ -381,8 +391,8 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
|
|
|
381
391
|
totalPages: number;
|
|
382
392
|
nextCursor?: string | null | undefined;
|
|
383
393
|
}>;
|
|
384
|
-
type ConnectedAccountListResponse = z.infer<typeof ConnectedAccountListResponseSchema>;
|
|
385
|
-
declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
394
|
+
type ConnectedAccountListResponse = z$1.infer<typeof ConnectedAccountListResponseSchema>;
|
|
395
|
+
declare const CreateConnectedAccountLinkOptionsSchema: z$1.ZodObject<{
|
|
386
396
|
/**
|
|
387
397
|
* The url to redirect the user to post connecting their account.
|
|
388
398
|
*
|
|
@@ -392,11 +402,11 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
392
402
|
* @example https://your-app.com/callback
|
|
393
403
|
*
|
|
394
404
|
*/
|
|
395
|
-
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
405
|
+
callbackUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
396
406
|
/**
|
|
397
407
|
* Human-readable alias for the connected account. Must be unique per userId and toolkit within the project.
|
|
398
408
|
*/
|
|
399
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
409
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
400
410
|
/**
|
|
401
411
|
* Whether to allow multiple connected accounts for the same user and auth config.
|
|
402
412
|
* When `false` (default), `link()` throws `ComposioMultipleConnectedAccountsError`
|
|
@@ -404,7 +414,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
404
414
|
* the guard on `initiate()`. Pair with `alias` and a session-level
|
|
405
415
|
* `multiAccount` config to disambiguate at execution time.
|
|
406
416
|
*/
|
|
407
|
-
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
allowMultiple: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
408
418
|
/**
|
|
409
419
|
* Experimental options for SHARED connections. Pass `accountType: 'SHARED'`
|
|
410
420
|
* (and optionally `aclConfigForShared`) to create a connection that can
|
|
@@ -419,13 +429,13 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
419
429
|
* `allowAllUsers: true` or listing user IDs in `allowedUserIds`.
|
|
420
430
|
* `notAllowedUserIds` always wins over allow.
|
|
421
431
|
*/
|
|
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, {
|
|
432
|
+
experimental: z$1.ZodOptional<z$1.ZodObject<{
|
|
433
|
+
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED"]>>;
|
|
434
|
+
aclConfigForShared: z$1.ZodOptional<z$1.ZodObject<{
|
|
435
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
436
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
437
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
438
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
429
439
|
allowAllUsers?: boolean | undefined;
|
|
430
440
|
allowedUserIds?: string[] | undefined;
|
|
431
441
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -434,7 +444,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
434
444
|
allowedUserIds?: string[] | undefined;
|
|
435
445
|
notAllowedUserIds?: string[] | undefined;
|
|
436
446
|
}>>;
|
|
437
|
-
}, "strip", z.ZodTypeAny, {
|
|
447
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
438
448
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
439
449
|
aclConfigForShared?: {
|
|
440
450
|
allowAllUsers?: boolean | undefined;
|
|
@@ -449,7 +459,7 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
449
459
|
notAllowedUserIds?: string[] | undefined;
|
|
450
460
|
} | undefined;
|
|
451
461
|
}>>;
|
|
452
|
-
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
453
463
|
callbackUrl?: string | undefined;
|
|
454
464
|
experimental?: {
|
|
455
465
|
accountType?: "PRIVATE" | "SHARED" | undefined;
|
|
@@ -474,29 +484,29 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
474
484
|
alias?: string | undefined;
|
|
475
485
|
allowMultiple?: boolean | undefined;
|
|
476
486
|
}>;
|
|
477
|
-
type CreateConnectedAccountLinkOptions = z.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
478
|
-
declare const CreateConnectedAccountLinkResponseSchema: z.ZodObject<{
|
|
479
|
-
redirectUrl: z.ZodString;
|
|
480
|
-
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
type CreateConnectedAccountLinkOptions = z$1.infer<typeof CreateConnectedAccountLinkOptionsSchema>;
|
|
488
|
+
declare const CreateConnectedAccountLinkResponseSchema: z$1.ZodObject<{
|
|
489
|
+
redirectUrl: z$1.ZodString;
|
|
490
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
481
491
|
redirectUrl: string;
|
|
482
492
|
}, {
|
|
483
493
|
redirectUrl: string;
|
|
484
494
|
}>;
|
|
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, {
|
|
495
|
+
type CreateConnectedAccountLinkResponse = z$1.infer<typeof CreateConnectedAccountLinkResponseSchema>;
|
|
496
|
+
declare const ConnectedAccountRefreshOptionsSchema: z$1.ZodObject<{
|
|
497
|
+
redirectUrl: z$1.ZodOptional<z$1.ZodString>;
|
|
498
|
+
validateCredentials: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
499
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
490
500
|
redirectUrl?: string | undefined;
|
|
491
501
|
validateCredentials?: boolean | undefined;
|
|
492
502
|
}, {
|
|
493
503
|
redirectUrl?: string | undefined;
|
|
494
504
|
validateCredentials?: boolean | undefined;
|
|
495
505
|
}>;
|
|
496
|
-
type ConnectedAccountRefreshOptions = z.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
497
|
-
declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
|
|
498
|
-
enabled: z.ZodBoolean;
|
|
499
|
-
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
type ConnectedAccountRefreshOptions = z$1.infer<typeof ConnectedAccountRefreshOptionsSchema>;
|
|
507
|
+
declare const UpdateConnectedAccountParamsSchema: z$1.ZodObject<{
|
|
508
|
+
enabled: z$1.ZodBoolean;
|
|
509
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
500
510
|
enabled: boolean;
|
|
501
511
|
}, {
|
|
502
512
|
enabled: boolean;
|
|
@@ -513,11 +523,11 @@ declare const UpdateConnectedAccountParamsSchema: z.ZodObject<{
|
|
|
513
523
|
* Each field is optional, but at least one must be provided — passing an
|
|
514
524
|
* empty object is rejected as a no-op.
|
|
515
525
|
*/
|
|
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, {
|
|
526
|
+
declare const UpdateConnectedAccountAclParamsSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
527
|
+
allowAllUsers: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
528
|
+
allowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
529
|
+
notAllowedUserIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
530
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
521
531
|
allowAllUsers?: boolean | undefined;
|
|
522
532
|
allowedUserIds?: string[] | undefined;
|
|
523
533
|
notAllowedUserIds?: string[] | undefined;
|
|
@@ -534,7 +544,7 @@ declare const UpdateConnectedAccountAclParamsSchema: z.ZodEffects<z.ZodObject<{
|
|
|
534
544
|
allowedUserIds?: string[] | undefined;
|
|
535
545
|
notAllowedUserIds?: string[] | undefined;
|
|
536
546
|
}>;
|
|
537
|
-
type UpdateConnectedAccountAclParams = z.infer<typeof UpdateConnectedAccountAclParamsSchema>;
|
|
547
|
+
type UpdateConnectedAccountAclParams = z$1.infer<typeof UpdateConnectedAccountAclParamsSchema>;
|
|
538
548
|
//#endregion
|
|
539
549
|
//#region src/types/connectionRequest.types.d.ts
|
|
540
550
|
interface ConnectionRequestState {
|
|
@@ -588,30 +598,32 @@ type ComposioRequestOptions = {
|
|
|
588
598
|
};
|
|
589
599
|
//#endregion
|
|
590
600
|
//#region src/types/ToolRouterSessionFilesMount.types.d.ts
|
|
591
|
-
declare const ToolRouterSessionFilesMountListOptionsSchema: z
|
|
592
|
-
path: z
|
|
593
|
-
mountId: z
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
601
|
+
declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
|
|
602
|
+
path: z.ZodOptional<z.ZodString>;
|
|
603
|
+
mountId: z.ZodDefault<z.ZodString>;
|
|
604
|
+
/** Pagination cursor from the previous response nextCursor field */
|
|
605
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
606
|
+
/** Maximum number of files to return per page (1-500) */
|
|
607
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
608
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
609
|
mountId: string;
|
|
598
610
|
path?: string | undefined;
|
|
599
|
-
limit?: number | undefined;
|
|
600
611
|
cursor?: string | undefined;
|
|
612
|
+
limit?: number | undefined;
|
|
601
613
|
}, {
|
|
602
614
|
path?: string | undefined;
|
|
603
|
-
limit?: number | undefined;
|
|
604
615
|
cursor?: string | undefined;
|
|
616
|
+
limit?: number | undefined;
|
|
605
617
|
mountId?: string | undefined;
|
|
606
618
|
}>;
|
|
607
|
-
type ToolRouterSessionFilesMountListOptions = z
|
|
608
|
-
declare const FileListResponseSchema: z
|
|
609
|
-
items: z
|
|
610
|
-
last_modified: z
|
|
611
|
-
mount_relative_path: z
|
|
612
|
-
sandbox_mount_prefix: z
|
|
613
|
-
size: z
|
|
614
|
-
}, "strip", z
|
|
619
|
+
type ToolRouterSessionFilesMountListOptions = z.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
620
|
+
declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
621
|
+
items: z.ZodArray<z.ZodObject<{
|
|
622
|
+
last_modified: z.ZodString;
|
|
623
|
+
mount_relative_path: z.ZodString;
|
|
624
|
+
sandbox_mount_prefix: z.ZodString;
|
|
625
|
+
size: z.ZodNumber;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
627
|
last_modified: string;
|
|
616
628
|
mount_relative_path: string;
|
|
617
629
|
sandbox_mount_prefix: string;
|
|
@@ -622,8 +634,8 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
622
634
|
sandbox_mount_prefix: string;
|
|
623
635
|
size: number;
|
|
624
636
|
}>, "many">;
|
|
625
|
-
next_cursor: z
|
|
626
|
-
}, "strip", z
|
|
637
|
+
next_cursor: z.ZodOptional<z.ZodString>;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
639
|
items: {
|
|
628
640
|
last_modified: string;
|
|
629
641
|
mount_relative_path: string;
|
|
@@ -656,12 +668,14 @@ declare const FileListResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
656
668
|
}[];
|
|
657
669
|
next_cursor?: string | undefined;
|
|
658
670
|
}>;
|
|
659
|
-
type FileListResponse = z
|
|
660
|
-
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z
|
|
661
|
-
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
671
|
+
type FileListResponse = z.infer<typeof FileListResponseSchema>;
|
|
672
|
+
declare const ToolRouterSessionFilesMountUploadOptionsSchema: z.ZodObject<{
|
|
673
|
+
/** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
|
|
674
|
+
remotePath: z.ZodOptional<z.ZodString>;
|
|
675
|
+
mountId: z.ZodDefault<z.ZodString>;
|
|
676
|
+
/** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
|
|
677
|
+
mimetype: z.ZodOptional<z.ZodString>;
|
|
678
|
+
}, "strip", z.ZodTypeAny, {
|
|
665
679
|
mountId: string;
|
|
666
680
|
remotePath?: string | undefined;
|
|
667
681
|
mimetype?: string | undefined;
|
|
@@ -670,29 +684,29 @@ declare const ToolRouterSessionFilesMountUploadOptionsSchema: z$1.ZodObject<{
|
|
|
670
684
|
remotePath?: string | undefined;
|
|
671
685
|
mimetype?: string | undefined;
|
|
672
686
|
}>;
|
|
673
|
-
type ToolRouterSessionFilesMountUploadOptions = z
|
|
674
|
-
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z
|
|
675
|
-
mountId: z
|
|
676
|
-
}, "strip", z
|
|
687
|
+
type ToolRouterSessionFilesMountUploadOptions = z.input<typeof ToolRouterSessionFilesMountUploadOptionsSchema>;
|
|
688
|
+
declare const ToolRouterSessionFilesMountDownloadOptionsSchema: z.ZodObject<{
|
|
689
|
+
mountId: z.ZodDefault<z.ZodString>;
|
|
690
|
+
}, "strip", z.ZodTypeAny, {
|
|
677
691
|
mountId: string;
|
|
678
692
|
}, {
|
|
679
693
|
mountId?: string | undefined;
|
|
680
694
|
}>;
|
|
681
|
-
type ToolRouterSessionFilesMountDownloadOptions = z
|
|
682
|
-
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z
|
|
683
|
-
mountId: z
|
|
684
|
-
}, "strip", z
|
|
695
|
+
type ToolRouterSessionFilesMountDownloadOptions = z.input<typeof ToolRouterSessionFilesMountDownloadOptionsSchema>;
|
|
696
|
+
declare const ToolRouterSessionFilesMountDeleteOptionsSchema: z.ZodObject<{
|
|
697
|
+
mountId: z.ZodDefault<z.ZodString>;
|
|
698
|
+
}, "strip", z.ZodTypeAny, {
|
|
685
699
|
mountId: string;
|
|
686
700
|
}, {
|
|
687
701
|
mountId?: string | undefined;
|
|
688
702
|
}>;
|
|
689
|
-
type ToolRouterSessionFilesMountDeleteOptions = z
|
|
690
|
-
declare const RemoteFileDataSchema: z
|
|
691
|
-
expires_at: z
|
|
692
|
-
mount_relative_path: z
|
|
693
|
-
sandbox_mount_prefix: z
|
|
694
|
-
download_url: z
|
|
695
|
-
}, "strip", z
|
|
703
|
+
type ToolRouterSessionFilesMountDeleteOptions = z.input<typeof ToolRouterSessionFilesMountDeleteOptionsSchema>;
|
|
704
|
+
declare const RemoteFileDataSchema: z.ZodEffects<z.ZodObject<{
|
|
705
|
+
expires_at: z.ZodString;
|
|
706
|
+
mount_relative_path: z.ZodString;
|
|
707
|
+
sandbox_mount_prefix: z.ZodString;
|
|
708
|
+
download_url: z.ZodString;
|
|
709
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
710
|
mount_relative_path: string;
|
|
697
711
|
sandbox_mount_prefix: string;
|
|
698
712
|
expires_at: string;
|
|
@@ -714,11 +728,11 @@ declare const RemoteFileDataSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
714
728
|
download_url: string;
|
|
715
729
|
}>;
|
|
716
730
|
/** Parsed shape from API response. Use with `new RemoteFile(data)`. */
|
|
717
|
-
type RemoteFileData = z
|
|
718
|
-
declare const FileDeleteResponseSchema: z
|
|
719
|
-
mount_relative_path: z
|
|
720
|
-
sandbox_mount_prefix: z
|
|
721
|
-
}, "strip", z
|
|
731
|
+
type RemoteFileData = z.infer<typeof RemoteFileDataSchema>;
|
|
732
|
+
declare const FileDeleteResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
733
|
+
mount_relative_path: z.ZodString;
|
|
734
|
+
sandbox_mount_prefix: z.ZodString;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
722
736
|
mount_relative_path: string;
|
|
723
737
|
sandbox_mount_prefix: string;
|
|
724
738
|
}, {
|
|
@@ -731,7 +745,7 @@ declare const FileDeleteResponseSchema: z$1.ZodEffects<z$1.ZodObject<{
|
|
|
731
745
|
mount_relative_path: string;
|
|
732
746
|
sandbox_mount_prefix: string;
|
|
733
747
|
}>;
|
|
734
|
-
type FileDeleteResponse = z
|
|
748
|
+
type FileDeleteResponse = z.infer<typeof FileDeleteResponseSchema>;
|
|
735
749
|
//#endregion
|
|
736
750
|
//#region src/models/RemoteFile.d.ts
|
|
737
751
|
/**
|
|
@@ -854,6 +868,8 @@ declare class ToolRouterSessionFilesMount {
|
|
|
854
868
|
*
|
|
855
869
|
* Accepts a file path (local or URL), a native File object, or a raw buffer.
|
|
856
870
|
* The file is stored in the virtual filesystem associated with the tool router session.
|
|
871
|
+
* URL inputs require a Node.js or Bun runtime so the destination can be DNS-validated;
|
|
872
|
+
* edge runtimes must fetch the file themselves and pass a File or ArrayBuffer.
|
|
857
873
|
*
|
|
858
874
|
* @param input - File path (string), native File, or raw buffer (ArrayBuffer | Uint8Array).
|
|
859
875
|
* @param options - Optional configuration. When passing a buffer, remotePath is required.
|
|
@@ -940,8 +956,8 @@ declare const SessionPreset: {
|
|
|
940
956
|
readonly DIRECT_TOOLS: "direct_tools";
|
|
941
957
|
};
|
|
942
958
|
type SessionPreset = (typeof SessionPreset)[keyof typeof SessionPreset];
|
|
943
|
-
declare const MCPServerTypeSchema: z
|
|
944
|
-
type MCPServerType = z
|
|
959
|
+
declare const MCPServerTypeSchema: z.ZodEnum<["http", "sse"]>;
|
|
960
|
+
type MCPServerType = z.infer<typeof MCPServerTypeSchema>;
|
|
945
961
|
/**
|
|
946
962
|
* Sandbox compute tier for the session sandbox.
|
|
947
963
|
*
|
|
@@ -954,14 +970,14 @@ type MCPServerType = z$1.infer<typeof MCPServerTypeSchema>;
|
|
|
954
970
|
*
|
|
955
971
|
* Defaults to `standard` server-side when omitted.
|
|
956
972
|
*/
|
|
957
|
-
declare const SandboxSizeSchema: z
|
|
958
|
-
type SandboxSize = z
|
|
959
|
-
declare const ToolRouterSandboxConfigSchema: z
|
|
960
|
-
enable: z
|
|
961
|
-
enableProxyExecution: z
|
|
962
|
-
autoOffloadThreshold: z
|
|
963
|
-
sandboxSize: z
|
|
964
|
-
}, "strip", z
|
|
973
|
+
declare const SandboxSizeSchema: z.ZodEnum<["standard", "medium", "large", "xlarge"]>;
|
|
974
|
+
type SandboxSize = z.infer<typeof SandboxSizeSchema>;
|
|
975
|
+
declare const ToolRouterSandboxConfigSchema: z.ZodObject<{
|
|
976
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
977
|
+
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
978
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
979
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
980
|
+
}, "strip", z.ZodTypeAny, {
|
|
965
981
|
enable: boolean;
|
|
966
982
|
enableProxyExecution?: boolean | undefined;
|
|
967
983
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -972,67 +988,67 @@ declare const ToolRouterSandboxConfigSchema: z$1.ZodObject<{
|
|
|
972
988
|
autoOffloadThreshold?: number | undefined;
|
|
973
989
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
974
990
|
}>;
|
|
975
|
-
type ToolRouterSandboxConfig = z
|
|
976
|
-
declare const ToolRouterConfigManageConnectionsSchema: z
|
|
977
|
-
enable: z
|
|
978
|
-
callbackUrl: z
|
|
979
|
-
waitForConnections: z
|
|
980
|
-
}, "strict", z
|
|
981
|
-
callbackUrl?: string | undefined;
|
|
991
|
+
type ToolRouterSandboxConfig = z.infer<typeof ToolRouterSandboxConfigSchema>;
|
|
992
|
+
declare const ToolRouterConfigManageConnectionsSchema: z.ZodObject<{
|
|
993
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
994
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
995
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
996
|
+
}, "strict", z.ZodTypeAny, {
|
|
982
997
|
enable?: boolean | undefined;
|
|
998
|
+
callbackUrl?: string | undefined;
|
|
983
999
|
waitForConnections?: boolean | undefined;
|
|
984
1000
|
}, {
|
|
985
|
-
callbackUrl?: string | undefined;
|
|
986
1001
|
enable?: boolean | undefined;
|
|
1002
|
+
callbackUrl?: string | undefined;
|
|
987
1003
|
waitForConnections?: boolean | undefined;
|
|
988
1004
|
}>;
|
|
989
|
-
declare const ToolRouterToolkitsParamSchema: z
|
|
990
|
-
declare const ToolRouterToolkitsDisabledConfigSchema: z
|
|
991
|
-
disable: z
|
|
992
|
-
}, "strict", z
|
|
1005
|
+
declare const ToolRouterToolkitsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
1006
|
+
declare const ToolRouterToolkitsDisabledConfigSchema: z.ZodObject<{
|
|
1007
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1008
|
+
}, "strict", z.ZodTypeAny, {
|
|
993
1009
|
disable: string[];
|
|
994
1010
|
}, {
|
|
995
1011
|
disable: string[];
|
|
996
1012
|
}>;
|
|
997
|
-
declare const ToolRouterToolkitsEnabledConfigSchema: z
|
|
998
|
-
enable: z
|
|
999
|
-
}, "strict", z
|
|
1013
|
+
declare const ToolRouterToolkitsEnabledConfigSchema: z.ZodObject<{
|
|
1014
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1015
|
+
}, "strict", z.ZodTypeAny, {
|
|
1000
1016
|
enable: string[];
|
|
1001
1017
|
}, {
|
|
1002
1018
|
enable: string[];
|
|
1003
1019
|
}>;
|
|
1004
|
-
declare const ToolRouterManageConnectionsConfigSchema: z
|
|
1005
|
-
enable: z
|
|
1006
|
-
callbackUrl: z
|
|
1007
|
-
}, "strip", z
|
|
1020
|
+
declare const ToolRouterManageConnectionsConfigSchema: z.ZodObject<{
|
|
1021
|
+
enable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1022
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
}, "strip", z.ZodTypeAny, {
|
|
1008
1024
|
enable: boolean;
|
|
1009
1025
|
callbackUrl?: string | undefined;
|
|
1010
1026
|
}, {
|
|
1011
|
-
callbackUrl?: string | undefined;
|
|
1012
1027
|
enable?: boolean | undefined;
|
|
1028
|
+
callbackUrl?: string | undefined;
|
|
1013
1029
|
}>;
|
|
1014
|
-
declare const ToolRouterTagsParamSchema: z
|
|
1015
|
-
declare const ToolRouterTagsEnableDisableSchema: z
|
|
1016
|
-
enable: z
|
|
1017
|
-
disable: z
|
|
1018
|
-
}, "strict", z
|
|
1030
|
+
declare const ToolRouterTagsParamSchema: z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">;
|
|
1031
|
+
declare const ToolRouterTagsEnableDisableSchema: z.ZodObject<{
|
|
1032
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1033
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1034
|
+
}, "strict", z.ZodTypeAny, {
|
|
1019
1035
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1020
1036
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1021
1037
|
}, {
|
|
1022
1038
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1023
1039
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1024
1040
|
}>;
|
|
1025
|
-
declare const ToolRouterConfigTagsSchema: z
|
|
1026
|
-
enable: z
|
|
1027
|
-
disable: z
|
|
1028
|
-
}, "strict", z
|
|
1041
|
+
declare const ToolRouterConfigTagsSchema: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1042
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1043
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1044
|
+
}, "strict", z.ZodTypeAny, {
|
|
1029
1045
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1030
1046
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1031
1047
|
}, {
|
|
1032
1048
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1033
1049
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1034
1050
|
}>]>;
|
|
1035
|
-
type ToolRouterConfigTags = z
|
|
1051
|
+
type ToolRouterConfigTags = z.infer<typeof ToolRouterConfigTagsSchema>;
|
|
1036
1052
|
/**
|
|
1037
1053
|
* Tools config - Configure tools per toolkit using toolkit slug as key
|
|
1038
1054
|
* @example
|
|
@@ -1055,32 +1071,32 @@ type ToolRouterConfigTags = z$1.infer<typeof ToolRouterConfigTagsSchema>;
|
|
|
1055
1071
|
* }
|
|
1056
1072
|
* ```
|
|
1057
1073
|
*/
|
|
1058
|
-
declare const ToolRouterToolsParamSchema: z
|
|
1059
|
-
type ToolRouterToolsParam = z
|
|
1060
|
-
declare const ToolRouterConfigToolsSchema: z
|
|
1061
|
-
enable: z
|
|
1062
|
-
}, "strict", z
|
|
1074
|
+
declare const ToolRouterToolsParamSchema: z.ZodArray<z.ZodString, "many">;
|
|
1075
|
+
type ToolRouterToolsParam = z.infer<typeof ToolRouterToolsParamSchema>;
|
|
1076
|
+
declare const ToolRouterConfigToolsSchema: z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1077
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1078
|
+
}, "strict", z.ZodTypeAny, {
|
|
1063
1079
|
enable: string[];
|
|
1064
1080
|
}, {
|
|
1065
1081
|
enable: string[];
|
|
1066
|
-
}>, z
|
|
1067
|
-
disable: z
|
|
1068
|
-
}, "strict", z
|
|
1082
|
+
}>, z.ZodObject<{
|
|
1083
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1084
|
+
}, "strict", z.ZodTypeAny, {
|
|
1069
1085
|
disable: string[];
|
|
1070
1086
|
}, {
|
|
1071
1087
|
disable: string[];
|
|
1072
|
-
}>, z
|
|
1073
|
-
tags: z
|
|
1074
|
-
enable: z
|
|
1075
|
-
disable: z
|
|
1076
|
-
}, "strict", z
|
|
1088
|
+
}>, z.ZodObject<{
|
|
1089
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1090
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1091
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1092
|
+
}, "strict", z.ZodTypeAny, {
|
|
1077
1093
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1078
1094
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1079
1095
|
}, {
|
|
1080
1096
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1081
1097
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1082
1098
|
}>]>;
|
|
1083
|
-
}, "strict", z
|
|
1099
|
+
}, "strict", z.ZodTypeAny, {
|
|
1084
1100
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1085
1101
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1086
1102
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1109,34 +1125,34 @@ declare const ToolRouterConfigToolsSchema: z$1.ZodEffects<z$1.ZodUnion<[z$1.ZodA
|
|
|
1109
1125
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1110
1126
|
};
|
|
1111
1127
|
}>;
|
|
1112
|
-
type ToolRouterConfigTools = z
|
|
1113
|
-
declare const ToolRouterCreateSessionConfigSchema: z
|
|
1114
|
-
sessionPreset: z
|
|
1115
|
-
mcp: z
|
|
1116
|
-
tools: z
|
|
1117
|
-
enable: z
|
|
1118
|
-
}, "strict", z
|
|
1128
|
+
type ToolRouterConfigTools = z.infer<typeof ToolRouterConfigToolsSchema>;
|
|
1129
|
+
declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
1130
|
+
sessionPreset: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"direct_tools">>>;
|
|
1131
|
+
mcp: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1132
|
+
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<{
|
|
1133
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1134
|
+
}, "strict", z.ZodTypeAny, {
|
|
1119
1135
|
enable: string[];
|
|
1120
1136
|
}, {
|
|
1121
1137
|
enable: string[];
|
|
1122
|
-
}>, z
|
|
1123
|
-
disable: z
|
|
1124
|
-
}, "strict", z
|
|
1138
|
+
}>, z.ZodObject<{
|
|
1139
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1140
|
+
}, "strict", z.ZodTypeAny, {
|
|
1125
1141
|
disable: string[];
|
|
1126
1142
|
}, {
|
|
1127
1143
|
disable: string[];
|
|
1128
|
-
}>, z
|
|
1129
|
-
tags: z
|
|
1130
|
-
enable: z
|
|
1131
|
-
disable: z
|
|
1132
|
-
}, "strict", z
|
|
1144
|
+
}>, z.ZodObject<{
|
|
1145
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1146
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1147
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1148
|
+
}, "strict", z.ZodTypeAny, {
|
|
1133
1149
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1134
1150
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1135
1151
|
}, {
|
|
1136
1152
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1137
1153
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1138
1154
|
}>]>;
|
|
1139
|
-
}, "strict", z
|
|
1155
|
+
}, "strict", z.ZodTypeAny, {
|
|
1140
1156
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1141
1157
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1142
1158
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1165,50 +1181,50 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1165
1181
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1166
1182
|
};
|
|
1167
1183
|
}>]>>>>;
|
|
1168
|
-
tags: z
|
|
1169
|
-
enable: z
|
|
1170
|
-
disable: z
|
|
1171
|
-
}, "strict", z
|
|
1184
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
1185
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1186
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
1187
|
+
}, "strict", z.ZodTypeAny, {
|
|
1172
1188
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1173
1189
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1174
1190
|
}, {
|
|
1175
1191
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1176
1192
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1177
1193
|
}>]>>>;
|
|
1178
|
-
toolkits: z
|
|
1179
|
-
disable: z
|
|
1180
|
-
}, "strict", z
|
|
1194
|
+
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
1195
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
1196
|
+
}, "strict", z.ZodTypeAny, {
|
|
1181
1197
|
disable: string[];
|
|
1182
1198
|
}, {
|
|
1183
1199
|
disable: string[];
|
|
1184
|
-
}>, z
|
|
1185
|
-
enable: z
|
|
1186
|
-
}, "strict", z
|
|
1200
|
+
}>, z.ZodObject<{
|
|
1201
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
1202
|
+
}, "strict", z.ZodTypeAny, {
|
|
1187
1203
|
enable: string[];
|
|
1188
1204
|
}, {
|
|
1189
1205
|
enable: string[];
|
|
1190
1206
|
}>]>>>;
|
|
1191
|
-
authConfigs: z
|
|
1192
|
-
connectedAccounts: z
|
|
1193
|
-
manageConnections: z
|
|
1194
|
-
enable: z
|
|
1195
|
-
callbackUrl: z
|
|
1196
|
-
waitForConnections: z
|
|
1197
|
-
}, "strict", z
|
|
1198
|
-
callbackUrl?: string | undefined;
|
|
1207
|
+
authConfigs: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
1208
|
+
connectedAccounts: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>>;
|
|
1209
|
+
manageConnections: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
1210
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
1211
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
1213
|
+
}, "strict", z.ZodTypeAny, {
|
|
1199
1214
|
enable?: boolean | undefined;
|
|
1215
|
+
callbackUrl?: string | undefined;
|
|
1200
1216
|
waitForConnections?: boolean | undefined;
|
|
1201
1217
|
}, {
|
|
1202
|
-
callbackUrl?: string | undefined;
|
|
1203
1218
|
enable?: boolean | undefined;
|
|
1219
|
+
callbackUrl?: string | undefined;
|
|
1204
1220
|
waitForConnections?: boolean | undefined;
|
|
1205
1221
|
}>]>>>>;
|
|
1206
|
-
sandbox: z
|
|
1207
|
-
enable: z
|
|
1208
|
-
enableProxyExecution: z
|
|
1209
|
-
autoOffloadThreshold: z
|
|
1210
|
-
sandboxSize: z
|
|
1211
|
-
}, "strip", z
|
|
1222
|
+
sandbox: 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, {
|
|
1212
1228
|
enable: boolean;
|
|
1213
1229
|
enableProxyExecution?: boolean | undefined;
|
|
1214
1230
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1219,12 +1235,12 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1219
1235
|
autoOffloadThreshold?: number | undefined;
|
|
1220
1236
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1221
1237
|
}>>>;
|
|
1222
|
-
workbench: z
|
|
1223
|
-
enable: z
|
|
1224
|
-
enableProxyExecution: z
|
|
1225
|
-
autoOffloadThreshold: z
|
|
1226
|
-
sandboxSize: z
|
|
1227
|
-
}, "strip", z
|
|
1238
|
+
workbench: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1239
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1240
|
+
enableProxyExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1241
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1242
|
+
sandboxSize: z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>;
|
|
1243
|
+
}, "strip", z.ZodTypeAny, {
|
|
1228
1244
|
enable: boolean;
|
|
1229
1245
|
enableProxyExecution?: boolean | undefined;
|
|
1230
1246
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -1235,11 +1251,11 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1235
1251
|
autoOffloadThreshold?: number | undefined;
|
|
1236
1252
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
1237
1253
|
}>>>;
|
|
1238
|
-
multiAccount: z
|
|
1239
|
-
enable: z
|
|
1240
|
-
maxAccountsPerToolkit: z
|
|
1241
|
-
requireExplicitSelection: z
|
|
1242
|
-
}, "strip", z
|
|
1254
|
+
multiAccount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1255
|
+
enable: z.ZodDefault<z.ZodBoolean>;
|
|
1256
|
+
maxAccountsPerToolkit: z.ZodOptional<z.ZodNumber>;
|
|
1257
|
+
requireExplicitSelection: z.ZodOptional<z.ZodBoolean>;
|
|
1258
|
+
}, "strip", z.ZodTypeAny, {
|
|
1243
1259
|
enable: boolean;
|
|
1244
1260
|
maxAccountsPerToolkit?: number | undefined;
|
|
1245
1261
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -1248,24 +1264,24 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1248
1264
|
maxAccountsPerToolkit?: number | undefined;
|
|
1249
1265
|
requireExplicitSelection?: boolean | undefined;
|
|
1250
1266
|
}>>>;
|
|
1251
|
-
preload: z
|
|
1252
|
-
tools: z
|
|
1253
|
-
}, "strict", z
|
|
1267
|
+
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1268
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
1269
|
+
}, "strict", z.ZodTypeAny, {
|
|
1254
1270
|
tools?: string[] | "all" | undefined;
|
|
1255
1271
|
}, {
|
|
1256
1272
|
tools?: string[] | "all" | undefined;
|
|
1257
1273
|
}>>>;
|
|
1258
|
-
experimental: z
|
|
1259
|
-
assistivePrompt: z
|
|
1260
|
-
userTimezone: z
|
|
1261
|
-
}, "strip", z
|
|
1274
|
+
experimental: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1275
|
+
assistivePrompt: z.ZodOptional<z.ZodObject<{
|
|
1276
|
+
userTimezone: z.ZodOptional<z.ZodString>;
|
|
1277
|
+
}, "strip", z.ZodTypeAny, {
|
|
1262
1278
|
userTimezone?: string | undefined;
|
|
1263
1279
|
}, {
|
|
1264
1280
|
userTimezone?: string | undefined;
|
|
1265
1281
|
}>>;
|
|
1266
|
-
customTools: z
|
|
1267
|
-
customToolkits: z
|
|
1268
|
-
}, "strip", z
|
|
1282
|
+
customTools: z.ZodOptional<z.ZodArray<z.ZodType<CustomTool, z.ZodTypeDef, CustomTool>, "many">>;
|
|
1283
|
+
customToolkits: z.ZodOptional<z.ZodArray<z.ZodType<CustomToolkit, z.ZodTypeDef, CustomToolkit>, "many">>;
|
|
1284
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
1285
|
assistivePrompt?: {
|
|
1270
1286
|
userTimezone?: string | undefined;
|
|
1271
1287
|
} | undefined;
|
|
@@ -1278,11 +1294,7 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1278
1294
|
customTools?: CustomTool[] | undefined;
|
|
1279
1295
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1280
1296
|
}>>>;
|
|
1281
|
-
}, "strip", z
|
|
1282
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1283
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1284
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1285
|
-
} | undefined;
|
|
1297
|
+
}, "strip", z.ZodTypeAny, {
|
|
1286
1298
|
tools?: Record<string, string[] | {
|
|
1287
1299
|
enable: string[];
|
|
1288
1300
|
} | {
|
|
@@ -1298,6 +1310,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1298
1310
|
} | {
|
|
1299
1311
|
enable: string[];
|
|
1300
1312
|
} | undefined;
|
|
1313
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1314
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1315
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1316
|
+
} | undefined;
|
|
1301
1317
|
preload?: {
|
|
1302
1318
|
tools?: string[] | "all" | undefined;
|
|
1303
1319
|
} | undefined;
|
|
@@ -1306,8 +1322,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1306
1322
|
mcp?: boolean | undefined;
|
|
1307
1323
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1308
1324
|
manageConnections?: boolean | {
|
|
1309
|
-
callbackUrl?: string | undefined;
|
|
1310
1325
|
enable?: boolean | undefined;
|
|
1326
|
+
callbackUrl?: string | undefined;
|
|
1311
1327
|
waitForConnections?: boolean | undefined;
|
|
1312
1328
|
} | undefined;
|
|
1313
1329
|
sandbox?: {
|
|
@@ -1335,10 +1351,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1335
1351
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1336
1352
|
} | undefined;
|
|
1337
1353
|
}, {
|
|
1338
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1339
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1340
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1341
|
-
} | undefined;
|
|
1342
1354
|
tools?: Record<string, string[] | {
|
|
1343
1355
|
enable: string[];
|
|
1344
1356
|
} | {
|
|
@@ -1354,6 +1366,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1354
1366
|
} | {
|
|
1355
1367
|
enable: string[];
|
|
1356
1368
|
} | undefined;
|
|
1369
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1370
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1371
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1372
|
+
} | undefined;
|
|
1357
1373
|
preload?: {
|
|
1358
1374
|
tools?: string[] | "all" | undefined;
|
|
1359
1375
|
} | undefined;
|
|
@@ -1362,8 +1378,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1362
1378
|
mcp?: boolean | undefined;
|
|
1363
1379
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1364
1380
|
manageConnections?: boolean | {
|
|
1365
|
-
callbackUrl?: string | undefined;
|
|
1366
1381
|
enable?: boolean | undefined;
|
|
1382
|
+
callbackUrl?: string | undefined;
|
|
1367
1383
|
waitForConnections?: boolean | undefined;
|
|
1368
1384
|
} | undefined;
|
|
1369
1385
|
sandbox?: {
|
|
@@ -1391,10 +1407,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1391
1407
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1392
1408
|
} | undefined;
|
|
1393
1409
|
}>, {
|
|
1394
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1395
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1396
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1397
|
-
} | undefined;
|
|
1398
1410
|
tools?: Record<string, string[] | {
|
|
1399
1411
|
enable: string[];
|
|
1400
1412
|
} | {
|
|
@@ -1410,6 +1422,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1410
1422
|
} | {
|
|
1411
1423
|
enable: string[];
|
|
1412
1424
|
} | undefined;
|
|
1425
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1426
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1427
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1428
|
+
} | undefined;
|
|
1413
1429
|
preload?: {
|
|
1414
1430
|
tools?: string[] | "all" | undefined;
|
|
1415
1431
|
} | undefined;
|
|
@@ -1418,8 +1434,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1418
1434
|
mcp?: boolean | undefined;
|
|
1419
1435
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1420
1436
|
manageConnections?: boolean | {
|
|
1421
|
-
callbackUrl?: string | undefined;
|
|
1422
1437
|
enable?: boolean | undefined;
|
|
1438
|
+
callbackUrl?: string | undefined;
|
|
1423
1439
|
waitForConnections?: boolean | undefined;
|
|
1424
1440
|
} | undefined;
|
|
1425
1441
|
sandbox?: {
|
|
@@ -1447,10 +1463,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1447
1463
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1448
1464
|
} | undefined;
|
|
1449
1465
|
}, {
|
|
1450
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1451
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1452
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1453
|
-
} | undefined;
|
|
1454
1466
|
tools?: Record<string, string[] | {
|
|
1455
1467
|
enable: string[];
|
|
1456
1468
|
} | {
|
|
@@ -1466,6 +1478,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1466
1478
|
} | {
|
|
1467
1479
|
enable: string[];
|
|
1468
1480
|
} | undefined;
|
|
1481
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1482
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1483
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1484
|
+
} | undefined;
|
|
1469
1485
|
preload?: {
|
|
1470
1486
|
tools?: string[] | "all" | undefined;
|
|
1471
1487
|
} | undefined;
|
|
@@ -1474,8 +1490,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1474
1490
|
mcp?: boolean | undefined;
|
|
1475
1491
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1476
1492
|
manageConnections?: boolean | {
|
|
1477
|
-
callbackUrl?: string | undefined;
|
|
1478
1493
|
enable?: boolean | undefined;
|
|
1494
|
+
callbackUrl?: string | undefined;
|
|
1479
1495
|
waitForConnections?: boolean | undefined;
|
|
1480
1496
|
} | undefined;
|
|
1481
1497
|
sandbox?: {
|
|
@@ -1503,10 +1519,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1503
1519
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1504
1520
|
} | undefined;
|
|
1505
1521
|
}>, {
|
|
1506
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1507
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1508
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1509
|
-
} | undefined;
|
|
1510
1522
|
tools?: Record<string, string[] | {
|
|
1511
1523
|
enable: string[];
|
|
1512
1524
|
} | {
|
|
@@ -1522,6 +1534,10 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1522
1534
|
} | {
|
|
1523
1535
|
enable: string[];
|
|
1524
1536
|
} | undefined;
|
|
1537
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1538
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1539
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1540
|
+
} | undefined;
|
|
1525
1541
|
preload?: {
|
|
1526
1542
|
tools?: string[] | "all" | undefined;
|
|
1527
1543
|
} | undefined;
|
|
@@ -1530,8 +1546,8 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1530
1546
|
mcp?: boolean | undefined;
|
|
1531
1547
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
1532
1548
|
manageConnections?: boolean | {
|
|
1533
|
-
callbackUrl?: string | undefined;
|
|
1534
1549
|
enable?: boolean | undefined;
|
|
1550
|
+
callbackUrl?: string | undefined;
|
|
1535
1551
|
waitForConnections?: boolean | undefined;
|
|
1536
1552
|
} | undefined;
|
|
1537
1553
|
sandbox?: {
|
|
@@ -1584,43 +1600,43 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodEffects
|
|
|
1584
1600
|
* @param {object} [preload] - Tools to preload into session.tools() and the MCP tool list
|
|
1585
1601
|
* @param {string[] | 'all'} [preload.tools] - Tool slugs to preload, or "all" to preload every app tool allowed by the session filters. "all" requires a positive filter such as toolkits, tools, or tags; the backend validates and caps the final tool set.
|
|
1586
1602
|
*/
|
|
1587
|
-
type ToolRouterCreateSessionConfig = z
|
|
1588
|
-
declare const ToolkitConnectionStateSchema: z
|
|
1589
|
-
slug: z
|
|
1590
|
-
name: z
|
|
1591
|
-
logo: z
|
|
1592
|
-
isNoAuth: z
|
|
1593
|
-
connection: z
|
|
1594
|
-
isActive: z
|
|
1595
|
-
authConfig: z
|
|
1596
|
-
id: z
|
|
1597
|
-
mode: z
|
|
1598
|
-
isComposioManaged: z
|
|
1599
|
-
}, "strip", z
|
|
1603
|
+
type ToolRouterCreateSessionConfig = z.infer<typeof ToolRouterCreateSessionConfigSchema>;
|
|
1604
|
+
declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
1605
|
+
slug: z.ZodString;
|
|
1606
|
+
name: z.ZodString;
|
|
1607
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
1608
|
+
isNoAuth: z.ZodDefault<z.ZodBoolean>;
|
|
1609
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
1610
|
+
isActive: z.ZodBoolean;
|
|
1611
|
+
authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1612
|
+
id: z.ZodString;
|
|
1613
|
+
mode: z.ZodString;
|
|
1614
|
+
isComposioManaged: z.ZodBoolean;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1600
1616
|
id: string;
|
|
1601
|
-
mode: string;
|
|
1602
1617
|
isComposioManaged: boolean;
|
|
1618
|
+
mode: string;
|
|
1603
1619
|
}, {
|
|
1604
1620
|
id: string;
|
|
1605
|
-
mode: string;
|
|
1606
1621
|
isComposioManaged: boolean;
|
|
1622
|
+
mode: string;
|
|
1607
1623
|
}>>>;
|
|
1608
|
-
connectedAccount: z
|
|
1609
|
-
id: z
|
|
1610
|
-
status: z
|
|
1611
|
-
}, "strip", z
|
|
1624
|
+
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1625
|
+
id: z.ZodString;
|
|
1626
|
+
status: z.ZodString;
|
|
1627
|
+
}, "strip", z.ZodTypeAny, {
|
|
1612
1628
|
status: string;
|
|
1613
1629
|
id: string;
|
|
1614
1630
|
}, {
|
|
1615
1631
|
status: string;
|
|
1616
1632
|
id: string;
|
|
1617
1633
|
}>>;
|
|
1618
|
-
}, "strip", z
|
|
1634
|
+
}, "strip", z.ZodTypeAny, {
|
|
1619
1635
|
isActive: boolean;
|
|
1620
1636
|
authConfig?: {
|
|
1621
1637
|
id: string;
|
|
1622
|
-
mode: string;
|
|
1623
1638
|
isComposioManaged: boolean;
|
|
1639
|
+
mode: string;
|
|
1624
1640
|
} | null | undefined;
|
|
1625
1641
|
connectedAccount?: {
|
|
1626
1642
|
status: string;
|
|
@@ -1630,25 +1646,25 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1630
1646
|
isActive: boolean;
|
|
1631
1647
|
authConfig?: {
|
|
1632
1648
|
id: string;
|
|
1633
|
-
mode: string;
|
|
1634
1649
|
isComposioManaged: boolean;
|
|
1650
|
+
mode: string;
|
|
1635
1651
|
} | null | undefined;
|
|
1636
1652
|
connectedAccount?: {
|
|
1637
1653
|
status: string;
|
|
1638
1654
|
id: string;
|
|
1639
1655
|
} | undefined;
|
|
1640
1656
|
}>>;
|
|
1641
|
-
}, "strip", z
|
|
1642
|
-
slug: string;
|
|
1657
|
+
}, "strip", z.ZodTypeAny, {
|
|
1643
1658
|
name: string;
|
|
1659
|
+
slug: string;
|
|
1644
1660
|
isNoAuth: boolean;
|
|
1645
1661
|
logo?: string | undefined;
|
|
1646
1662
|
connection?: {
|
|
1647
1663
|
isActive: boolean;
|
|
1648
1664
|
authConfig?: {
|
|
1649
1665
|
id: string;
|
|
1650
|
-
mode: string;
|
|
1651
1666
|
isComposioManaged: boolean;
|
|
1667
|
+
mode: string;
|
|
1652
1668
|
} | null | undefined;
|
|
1653
1669
|
connectedAccount?: {
|
|
1654
1670
|
status: string;
|
|
@@ -1656,16 +1672,16 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1656
1672
|
} | undefined;
|
|
1657
1673
|
} | undefined;
|
|
1658
1674
|
}, {
|
|
1659
|
-
slug: string;
|
|
1660
1675
|
name: string;
|
|
1676
|
+
slug: string;
|
|
1661
1677
|
logo?: string | undefined;
|
|
1662
1678
|
isNoAuth?: boolean | undefined;
|
|
1663
1679
|
connection?: {
|
|
1664
1680
|
isActive: boolean;
|
|
1665
1681
|
authConfig?: {
|
|
1666
1682
|
id: string;
|
|
1667
|
-
mode: string;
|
|
1668
1683
|
isComposioManaged: boolean;
|
|
1684
|
+
mode: string;
|
|
1669
1685
|
} | null | undefined;
|
|
1670
1686
|
connectedAccount?: {
|
|
1671
1687
|
status: string;
|
|
@@ -1673,43 +1689,43 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1673
1689
|
} | undefined;
|
|
1674
1690
|
} | undefined;
|
|
1675
1691
|
}>;
|
|
1676
|
-
declare const ToolkitConnectionsDetailsSchema: z
|
|
1677
|
-
items: z
|
|
1678
|
-
slug: z
|
|
1679
|
-
name: z
|
|
1680
|
-
logo: z
|
|
1681
|
-
isNoAuth: z
|
|
1682
|
-
connection: z
|
|
1683
|
-
isActive: z
|
|
1684
|
-
authConfig: z
|
|
1685
|
-
id: z
|
|
1686
|
-
mode: z
|
|
1687
|
-
isComposioManaged: z
|
|
1688
|
-
}, "strip", z
|
|
1692
|
+
declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
1693
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1694
|
+
slug: z.ZodString;
|
|
1695
|
+
name: z.ZodString;
|
|
1696
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
isNoAuth: z.ZodDefault<z.ZodBoolean>;
|
|
1698
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
1699
|
+
isActive: z.ZodBoolean;
|
|
1700
|
+
authConfig: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1701
|
+
id: z.ZodString;
|
|
1702
|
+
mode: z.ZodString;
|
|
1703
|
+
isComposioManaged: z.ZodBoolean;
|
|
1704
|
+
}, "strip", z.ZodTypeAny, {
|
|
1689
1705
|
id: string;
|
|
1690
|
-
mode: string;
|
|
1691
1706
|
isComposioManaged: boolean;
|
|
1707
|
+
mode: string;
|
|
1692
1708
|
}, {
|
|
1693
1709
|
id: string;
|
|
1694
|
-
mode: string;
|
|
1695
1710
|
isComposioManaged: boolean;
|
|
1711
|
+
mode: string;
|
|
1696
1712
|
}>>>;
|
|
1697
|
-
connectedAccount: z
|
|
1698
|
-
id: z
|
|
1699
|
-
status: z
|
|
1700
|
-
}, "strip", z
|
|
1713
|
+
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1714
|
+
id: z.ZodString;
|
|
1715
|
+
status: z.ZodString;
|
|
1716
|
+
}, "strip", z.ZodTypeAny, {
|
|
1701
1717
|
status: string;
|
|
1702
1718
|
id: string;
|
|
1703
1719
|
}, {
|
|
1704
1720
|
status: string;
|
|
1705
1721
|
id: string;
|
|
1706
1722
|
}>>;
|
|
1707
|
-
}, "strip", z
|
|
1723
|
+
}, "strip", z.ZodTypeAny, {
|
|
1708
1724
|
isActive: boolean;
|
|
1709
1725
|
authConfig?: {
|
|
1710
1726
|
id: string;
|
|
1711
|
-
mode: string;
|
|
1712
1727
|
isComposioManaged: boolean;
|
|
1728
|
+
mode: string;
|
|
1713
1729
|
} | null | undefined;
|
|
1714
1730
|
connectedAccount?: {
|
|
1715
1731
|
status: string;
|
|
@@ -1719,25 +1735,25 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1719
1735
|
isActive: boolean;
|
|
1720
1736
|
authConfig?: {
|
|
1721
1737
|
id: string;
|
|
1722
|
-
mode: string;
|
|
1723
1738
|
isComposioManaged: boolean;
|
|
1739
|
+
mode: string;
|
|
1724
1740
|
} | null | undefined;
|
|
1725
1741
|
connectedAccount?: {
|
|
1726
1742
|
status: string;
|
|
1727
1743
|
id: string;
|
|
1728
1744
|
} | undefined;
|
|
1729
1745
|
}>>;
|
|
1730
|
-
}, "strip", z
|
|
1731
|
-
slug: string;
|
|
1746
|
+
}, "strip", z.ZodTypeAny, {
|
|
1732
1747
|
name: string;
|
|
1748
|
+
slug: string;
|
|
1733
1749
|
isNoAuth: boolean;
|
|
1734
1750
|
logo?: string | undefined;
|
|
1735
1751
|
connection?: {
|
|
1736
1752
|
isActive: boolean;
|
|
1737
1753
|
authConfig?: {
|
|
1738
1754
|
id: string;
|
|
1739
|
-
mode: string;
|
|
1740
1755
|
isComposioManaged: boolean;
|
|
1756
|
+
mode: string;
|
|
1741
1757
|
} | null | undefined;
|
|
1742
1758
|
connectedAccount?: {
|
|
1743
1759
|
status: string;
|
|
@@ -1745,16 +1761,16 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1745
1761
|
} | undefined;
|
|
1746
1762
|
} | undefined;
|
|
1747
1763
|
}, {
|
|
1748
|
-
slug: string;
|
|
1749
1764
|
name: string;
|
|
1765
|
+
slug: string;
|
|
1750
1766
|
logo?: string | undefined;
|
|
1751
1767
|
isNoAuth?: boolean | undefined;
|
|
1752
1768
|
connection?: {
|
|
1753
1769
|
isActive: boolean;
|
|
1754
1770
|
authConfig?: {
|
|
1755
1771
|
id: string;
|
|
1756
|
-
mode: string;
|
|
1757
1772
|
isComposioManaged: boolean;
|
|
1773
|
+
mode: string;
|
|
1758
1774
|
} | null | undefined;
|
|
1759
1775
|
connectedAccount?: {
|
|
1760
1776
|
status: string;
|
|
@@ -1762,20 +1778,20 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1762
1778
|
} | undefined;
|
|
1763
1779
|
} | undefined;
|
|
1764
1780
|
}>, "many">;
|
|
1765
|
-
cursor: z
|
|
1766
|
-
totalPages: z
|
|
1767
|
-
}, "strip", z
|
|
1781
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
totalPages: z.ZodNumber;
|
|
1783
|
+
}, "strip", z.ZodTypeAny, {
|
|
1768
1784
|
items: {
|
|
1769
|
-
slug: string;
|
|
1770
1785
|
name: string;
|
|
1786
|
+
slug: string;
|
|
1771
1787
|
isNoAuth: boolean;
|
|
1772
1788
|
logo?: string | undefined;
|
|
1773
1789
|
connection?: {
|
|
1774
1790
|
isActive: boolean;
|
|
1775
1791
|
authConfig?: {
|
|
1776
1792
|
id: string;
|
|
1777
|
-
mode: string;
|
|
1778
1793
|
isComposioManaged: boolean;
|
|
1794
|
+
mode: string;
|
|
1779
1795
|
} | null | undefined;
|
|
1780
1796
|
connectedAccount?: {
|
|
1781
1797
|
status: string;
|
|
@@ -1787,16 +1803,16 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1787
1803
|
cursor?: string | undefined;
|
|
1788
1804
|
}, {
|
|
1789
1805
|
items: {
|
|
1790
|
-
slug: string;
|
|
1791
1806
|
name: string;
|
|
1807
|
+
slug: string;
|
|
1792
1808
|
logo?: string | undefined;
|
|
1793
1809
|
isNoAuth?: boolean | undefined;
|
|
1794
1810
|
connection?: {
|
|
1795
1811
|
isActive: boolean;
|
|
1796
1812
|
authConfig?: {
|
|
1797
1813
|
id: string;
|
|
1798
|
-
mode: string;
|
|
1799
1814
|
isComposioManaged: boolean;
|
|
1815
|
+
mode: string;
|
|
1800
1816
|
} | null | undefined;
|
|
1801
1817
|
connectedAccount?: {
|
|
1802
1818
|
status: string;
|
|
@@ -1807,13 +1823,13 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1807
1823
|
totalPages: number;
|
|
1808
1824
|
cursor?: string | undefined;
|
|
1809
1825
|
}>;
|
|
1810
|
-
type ToolkitConnectionsDetails = z
|
|
1811
|
-
type ToolkitConnectionState = z
|
|
1812
|
-
declare const ToolRouterMCPServerConfigSchema: z
|
|
1813
|
-
type: z
|
|
1814
|
-
url: z
|
|
1815
|
-
headers: z
|
|
1816
|
-
}, "strip", z
|
|
1826
|
+
type ToolkitConnectionsDetails = z.infer<typeof ToolkitConnectionsDetailsSchema>;
|
|
1827
|
+
type ToolkitConnectionState = z.infer<typeof ToolkitConnectionStateSchema>;
|
|
1828
|
+
declare const ToolRouterMCPServerConfigSchema: z.ZodObject<{
|
|
1829
|
+
type: z.ZodEnum<["http", "sse"]>;
|
|
1830
|
+
url: z.ZodString;
|
|
1831
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1832
|
+
}, "strip", z.ZodTypeAny, {
|
|
1817
1833
|
type: "http" | "sse";
|
|
1818
1834
|
url: string;
|
|
1819
1835
|
headers?: Record<string, string> | undefined;
|
|
@@ -1822,60 +1838,60 @@ declare const ToolRouterMCPServerConfigSchema: z$1.ZodObject<{
|
|
|
1822
1838
|
url: string;
|
|
1823
1839
|
headers?: Record<string, string> | undefined;
|
|
1824
1840
|
}>;
|
|
1825
|
-
type ToolRouterMCPServerConfig = z
|
|
1841
|
+
type ToolRouterMCPServerConfig = z.infer<typeof ToolRouterMCPServerConfigSchema>;
|
|
1826
1842
|
type ToolRouterToolsFn<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = (modifiers?: SessionMetaToolOptions) => Promise<ReturnType<TProvider['wrapTools']>>;
|
|
1827
1843
|
type ToolRouterAuthorizeFn = (toolkit: string, options?: {
|
|
1828
1844
|
callbackUrl?: string;
|
|
1829
1845
|
alias?: string;
|
|
1830
1846
|
}) => Promise<ConnectionRequest>;
|
|
1831
|
-
declare const ToolRouterToolkitsOptionsSchema: z
|
|
1832
|
-
toolkits: z
|
|
1833
|
-
cursor: z
|
|
1834
|
-
limit: z
|
|
1835
|
-
isConnected: z
|
|
1836
|
-
search: z
|
|
1837
|
-
}, "strip", z
|
|
1847
|
+
declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
1848
|
+
toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1849
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1850
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1851
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
1852
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
}, "strip", z.ZodTypeAny, {
|
|
1838
1854
|
toolkits?: string[] | undefined;
|
|
1855
|
+
cursor?: string | undefined;
|
|
1839
1856
|
limit?: number | undefined;
|
|
1840
1857
|
search?: string | undefined;
|
|
1841
|
-
cursor?: string | undefined;
|
|
1842
1858
|
isConnected?: boolean | undefined;
|
|
1843
1859
|
}, {
|
|
1844
1860
|
toolkits?: string[] | undefined;
|
|
1861
|
+
cursor?: string | undefined;
|
|
1845
1862
|
limit?: number | undefined;
|
|
1846
1863
|
search?: string | undefined;
|
|
1847
|
-
cursor?: string | undefined;
|
|
1848
1864
|
isConnected?: boolean | undefined;
|
|
1849
1865
|
}>;
|
|
1850
|
-
type ToolRouterToolkitsOptions = z
|
|
1866
|
+
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
1851
1867
|
type ToolRouterToolkitsFn = (options?: ToolRouterToolkitsOptions) => Promise<ToolkitConnectionsDetails>;
|
|
1852
|
-
declare const ToolRouterSessionSearchResponseSchema: z
|
|
1853
|
-
success: z
|
|
1854
|
-
error: z
|
|
1855
|
-
results: z
|
|
1856
|
-
index: z
|
|
1857
|
-
useCase: z
|
|
1858
|
-
primaryToolSlugs: z
|
|
1859
|
-
relatedToolSlugs: z
|
|
1860
|
-
toolkits: z
|
|
1861
|
-
difficulty: z
|
|
1862
|
-
error: z
|
|
1863
|
-
executionGuidance: z
|
|
1864
|
-
knownPitfalls: z
|
|
1865
|
-
memory: z
|
|
1866
|
-
planId: z
|
|
1867
|
-
recommendedPlanSteps: z
|
|
1868
|
-
referenceWorkbenchSnippets: z
|
|
1869
|
-
code: z
|
|
1870
|
-
description: z
|
|
1871
|
-
}, "strip", z
|
|
1868
|
+
declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
1869
|
+
success: z.ZodBoolean;
|
|
1870
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1871
|
+
results: z.ZodArray<z.ZodObject<{
|
|
1872
|
+
index: z.ZodNumber;
|
|
1873
|
+
useCase: z.ZodString;
|
|
1874
|
+
primaryToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1875
|
+
relatedToolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1876
|
+
toolkits: z.ZodArray<z.ZodString, "many">;
|
|
1877
|
+
difficulty: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1879
|
+
executionGuidance: z.ZodOptional<z.ZodString>;
|
|
1880
|
+
knownPitfalls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1881
|
+
memory: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1882
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
recommendedPlanSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1884
|
+
referenceWorkbenchSnippets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1885
|
+
code: z.ZodString;
|
|
1886
|
+
description: z.ZodString;
|
|
1887
|
+
}, "strip", z.ZodTypeAny, {
|
|
1872
1888
|
code: string;
|
|
1873
1889
|
description: string;
|
|
1874
1890
|
}, {
|
|
1875
1891
|
code: string;
|
|
1876
1892
|
description: string;
|
|
1877
1893
|
}>, "many">>;
|
|
1878
|
-
}, "strip", z
|
|
1894
|
+
}, "strip", z.ZodTypeAny, {
|
|
1879
1895
|
toolkits: string[];
|
|
1880
1896
|
index: number;
|
|
1881
1897
|
useCase: string;
|
|
@@ -1910,24 +1926,24 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1910
1926
|
description: string;
|
|
1911
1927
|
}[] | undefined;
|
|
1912
1928
|
}>, "many">;
|
|
1913
|
-
toolSchemas: z
|
|
1914
|
-
toolSlug: z
|
|
1915
|
-
toolkit: z
|
|
1916
|
-
description: z
|
|
1917
|
-
hasFullSchema: z
|
|
1918
|
-
inputSchema: z
|
|
1919
|
-
outputSchema: z
|
|
1920
|
-
schemaRef: z
|
|
1921
|
-
args: z
|
|
1922
|
-
toolSlugs: z
|
|
1923
|
-
}, "strip", z
|
|
1929
|
+
toolSchemas: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1930
|
+
toolSlug: z.ZodString;
|
|
1931
|
+
toolkit: z.ZodString;
|
|
1932
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
hasFullSchema: z.ZodOptional<z.ZodBoolean>;
|
|
1934
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1935
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1936
|
+
schemaRef: z.ZodOptional<z.ZodObject<{
|
|
1937
|
+
args: z.ZodObject<{
|
|
1938
|
+
toolSlugs: z.ZodArray<z.ZodString, "many">;
|
|
1939
|
+
}, "strip", z.ZodTypeAny, {
|
|
1924
1940
|
toolSlugs: string[];
|
|
1925
1941
|
}, {
|
|
1926
1942
|
toolSlugs: string[];
|
|
1927
1943
|
}>;
|
|
1928
|
-
message: z
|
|
1929
|
-
tool: z
|
|
1930
|
-
}, "strip", z
|
|
1944
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1945
|
+
tool: z.ZodLiteral<"COMPOSIO_GET_TOOL_SCHEMAS">;
|
|
1946
|
+
}, "strip", z.ZodTypeAny, {
|
|
1931
1947
|
args: {
|
|
1932
1948
|
toolSlugs: string[];
|
|
1933
1949
|
};
|
|
@@ -1940,7 +1956,7 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1940
1956
|
tool: "COMPOSIO_GET_TOOL_SCHEMAS";
|
|
1941
1957
|
message?: string | undefined;
|
|
1942
1958
|
}>>;
|
|
1943
|
-
}, "strip", z
|
|
1959
|
+
}, "strip", z.ZodTypeAny, {
|
|
1944
1960
|
toolkit: string;
|
|
1945
1961
|
toolSlug: string;
|
|
1946
1962
|
description?: string | undefined;
|
|
@@ -1969,34 +1985,34 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1969
1985
|
message?: string | undefined;
|
|
1970
1986
|
} | undefined;
|
|
1971
1987
|
}>>;
|
|
1972
|
-
toolkitConnectionStatuses: z
|
|
1973
|
-
toolkit: z
|
|
1974
|
-
description: z
|
|
1975
|
-
hasActiveConnection: z
|
|
1976
|
-
statusMessage: z
|
|
1977
|
-
connectionDetails: z
|
|
1978
|
-
currentUserInfo: z
|
|
1979
|
-
}, "strip", z
|
|
1980
|
-
description: string;
|
|
1988
|
+
toolkitConnectionStatuses: z.ZodArray<z.ZodObject<{
|
|
1989
|
+
toolkit: z.ZodString;
|
|
1990
|
+
description: z.ZodString;
|
|
1991
|
+
hasActiveConnection: z.ZodBoolean;
|
|
1992
|
+
statusMessage: z.ZodString;
|
|
1993
|
+
connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1994
|
+
currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1995
|
+
}, "strip", z.ZodTypeAny, {
|
|
1981
1996
|
toolkit: string;
|
|
1997
|
+
description: string;
|
|
1982
1998
|
hasActiveConnection: boolean;
|
|
1983
1999
|
statusMessage: string;
|
|
1984
2000
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1985
2001
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1986
2002
|
}, {
|
|
1987
|
-
description: string;
|
|
1988
2003
|
toolkit: string;
|
|
2004
|
+
description: string;
|
|
1989
2005
|
hasActiveConnection: boolean;
|
|
1990
2006
|
statusMessage: string;
|
|
1991
2007
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
1992
2008
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
1993
2009
|
}>, "many">;
|
|
1994
|
-
nextStepsGuidance: z
|
|
1995
|
-
session: z
|
|
1996
|
-
id: z
|
|
1997
|
-
generateId: z
|
|
1998
|
-
instructions: z
|
|
1999
|
-
}, "strip", z
|
|
2010
|
+
nextStepsGuidance: z.ZodArray<z.ZodString, "many">;
|
|
2011
|
+
session: z.ZodObject<{
|
|
2012
|
+
id: z.ZodString;
|
|
2013
|
+
generateId: z.ZodBoolean;
|
|
2014
|
+
instructions: z.ZodString;
|
|
2015
|
+
}, "strip", z.ZodTypeAny, {
|
|
2000
2016
|
id: string;
|
|
2001
2017
|
generateId: boolean;
|
|
2002
2018
|
instructions: string;
|
|
@@ -2005,11 +2021,11 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2005
2021
|
generateId: boolean;
|
|
2006
2022
|
instructions: string;
|
|
2007
2023
|
}>;
|
|
2008
|
-
timeInfo: z
|
|
2009
|
-
currentTimeUtc: z
|
|
2010
|
-
currentTimeUtcEpochSeconds: z
|
|
2011
|
-
message: z
|
|
2012
|
-
}, "strip", z
|
|
2024
|
+
timeInfo: z.ZodObject<{
|
|
2025
|
+
currentTimeUtc: z.ZodString;
|
|
2026
|
+
currentTimeUtcEpochSeconds: z.ZodNumber;
|
|
2027
|
+
message: z.ZodString;
|
|
2028
|
+
}, "strip", z.ZodTypeAny, {
|
|
2013
2029
|
message: string;
|
|
2014
2030
|
currentTimeUtc: string;
|
|
2015
2031
|
currentTimeUtcEpochSeconds: number;
|
|
@@ -2018,7 +2034,7 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2018
2034
|
currentTimeUtc: string;
|
|
2019
2035
|
currentTimeUtcEpochSeconds: number;
|
|
2020
2036
|
}>;
|
|
2021
|
-
}, "strip", z
|
|
2037
|
+
}, "strip", z.ZodTypeAny, {
|
|
2022
2038
|
error: string | null;
|
|
2023
2039
|
success: boolean;
|
|
2024
2040
|
results: {
|
|
@@ -2055,8 +2071,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2055
2071
|
} | undefined;
|
|
2056
2072
|
}>;
|
|
2057
2073
|
toolkitConnectionStatuses: {
|
|
2058
|
-
description: string;
|
|
2059
2074
|
toolkit: string;
|
|
2075
|
+
description: string;
|
|
2060
2076
|
hasActiveConnection: boolean;
|
|
2061
2077
|
statusMessage: string;
|
|
2062
2078
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2110,8 +2126,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2110
2126
|
} | undefined;
|
|
2111
2127
|
}>;
|
|
2112
2128
|
toolkitConnectionStatuses: {
|
|
2113
|
-
description: string;
|
|
2114
2129
|
toolkit: string;
|
|
2130
|
+
description: string;
|
|
2115
2131
|
hasActiveConnection: boolean;
|
|
2116
2132
|
statusMessage: string;
|
|
2117
2133
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2129,21 +2145,21 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
2129
2145
|
currentTimeUtcEpochSeconds: number;
|
|
2130
2146
|
};
|
|
2131
2147
|
}>;
|
|
2132
|
-
type ToolRouterSessionSearchResponse = z
|
|
2133
|
-
declare const ToolRouterSessionExecuteResponseSchema: z
|
|
2134
|
-
data: z
|
|
2135
|
-
error: z
|
|
2136
|
-
logId: z
|
|
2137
|
-
}, "strip", z
|
|
2138
|
-
data: Record<string, unknown>;
|
|
2148
|
+
type ToolRouterSessionSearchResponse = z.infer<typeof ToolRouterSessionSearchResponseSchema>;
|
|
2149
|
+
declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
|
|
2150
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2151
|
+
error: z.ZodNullable<z.ZodString>;
|
|
2152
|
+
logId: z.ZodString;
|
|
2153
|
+
}, "strip", z.ZodTypeAny, {
|
|
2139
2154
|
error: string | null;
|
|
2155
|
+
data: Record<string, unknown>;
|
|
2140
2156
|
logId: string;
|
|
2141
2157
|
}, {
|
|
2142
|
-
data: Record<string, unknown>;
|
|
2143
2158
|
error: string | null;
|
|
2159
|
+
data: Record<string, unknown>;
|
|
2144
2160
|
logId: string;
|
|
2145
2161
|
}>;
|
|
2146
|
-
type ToolRouterSessionExecuteResponse = z
|
|
2162
|
+
type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
2147
2163
|
interface ToolRouterSessionProxyExecuteResponse {
|
|
2148
2164
|
/** The HTTP status code returned from the proxied API */
|
|
2149
2165
|
status: number;
|
|
@@ -2199,32 +2215,37 @@ interface ToolRouterSessionMetadata {
|
|
|
2199
2215
|
preloadedCustomToolSlugs?: string[];
|
|
2200
2216
|
inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
|
|
2201
2217
|
}
|
|
2202
|
-
declare const SessionProxyExecuteParamsSchema: z
|
|
2203
|
-
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2218
|
+
declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
2219
|
+
/** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
|
|
2220
|
+
toolkit: z.ZodString;
|
|
2221
|
+
/** The API endpoint URL to call */
|
|
2222
|
+
endpoint: z.ZodString;
|
|
2223
|
+
/** HTTP method */
|
|
2224
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
|
|
2225
|
+
/** Request body (for POST/PUT/PATCH) */
|
|
2226
|
+
body: z.ZodOptional<z.ZodUnknown>;
|
|
2227
|
+
/** Query params or headers to include */
|
|
2228
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2229
|
+
in: z.ZodEnum<["query", "header"]>;
|
|
2230
|
+
name: z.ZodString;
|
|
2231
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2232
|
+
}, "strip", z.ZodTypeAny, {
|
|
2213
2233
|
value: string | number;
|
|
2234
|
+
name: string;
|
|
2214
2235
|
in: "query" | "header";
|
|
2215
2236
|
}, {
|
|
2216
|
-
name: string;
|
|
2217
2237
|
value: string | number;
|
|
2238
|
+
name: string;
|
|
2218
2239
|
in: "query" | "header";
|
|
2219
2240
|
}>, "many">>;
|
|
2220
|
-
}, "strip", z
|
|
2241
|
+
}, "strip", z.ZodTypeAny, {
|
|
2221
2242
|
toolkit: string;
|
|
2222
2243
|
endpoint: string;
|
|
2223
2244
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2224
2245
|
body?: unknown;
|
|
2225
2246
|
parameters?: {
|
|
2226
|
-
name: string;
|
|
2227
2247
|
value: string | number;
|
|
2248
|
+
name: string;
|
|
2228
2249
|
in: "query" | "header";
|
|
2229
2250
|
}[] | undefined;
|
|
2230
2251
|
}, {
|
|
@@ -2233,51 +2254,51 @@ declare const SessionProxyExecuteParamsSchema: z$1.ZodObject<{
|
|
|
2233
2254
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2234
2255
|
body?: unknown;
|
|
2235
2256
|
parameters?: {
|
|
2236
|
-
name: string;
|
|
2237
2257
|
value: string | number;
|
|
2258
|
+
name: string;
|
|
2238
2259
|
in: "query" | "header";
|
|
2239
2260
|
}[] | undefined;
|
|
2240
2261
|
}>;
|
|
2241
|
-
type SessionProxyExecuteParams = z
|
|
2262
|
+
type SessionProxyExecuteParams = z.infer<typeof SessionProxyExecuteParamsSchema>;
|
|
2242
2263
|
type ToolRouterSessionProxyExecuteFn = (params: SessionProxyExecuteParams) => Promise<ToolRouterSessionProxyExecuteResponse>;
|
|
2243
|
-
declare const ToolRouterUpdateSessionConfigSchema: z
|
|
2244
|
-
toolkits: z
|
|
2245
|
-
disable: z
|
|
2246
|
-
}, "strict", z
|
|
2264
|
+
declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
2265
|
+
toolkits: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
2266
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
2267
|
+
}, "strict", z.ZodTypeAny, {
|
|
2247
2268
|
disable: string[];
|
|
2248
2269
|
}, {
|
|
2249
2270
|
disable: string[];
|
|
2250
|
-
}>, z
|
|
2251
|
-
enable: z
|
|
2252
|
-
}, "strict", z
|
|
2271
|
+
}>, z.ZodObject<{
|
|
2272
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
2273
|
+
}, "strict", z.ZodTypeAny, {
|
|
2253
2274
|
enable: string[];
|
|
2254
2275
|
}, {
|
|
2255
2276
|
enable: string[];
|
|
2256
2277
|
}>]>>>;
|
|
2257
|
-
tools: z
|
|
2258
|
-
enable: z
|
|
2259
|
-
}, "strict", z
|
|
2278
|
+
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<{
|
|
2279
|
+
enable: z.ZodArray<z.ZodString, "many">;
|
|
2280
|
+
}, "strict", z.ZodTypeAny, {
|
|
2260
2281
|
enable: string[];
|
|
2261
2282
|
}, {
|
|
2262
2283
|
enable: string[];
|
|
2263
|
-
}>, z
|
|
2264
|
-
disable: z
|
|
2265
|
-
}, "strict", z
|
|
2284
|
+
}>, z.ZodObject<{
|
|
2285
|
+
disable: z.ZodArray<z.ZodString, "many">;
|
|
2286
|
+
}, "strict", z.ZodTypeAny, {
|
|
2266
2287
|
disable: string[];
|
|
2267
2288
|
}, {
|
|
2268
2289
|
disable: string[];
|
|
2269
|
-
}>, z
|
|
2270
|
-
tags: z
|
|
2271
|
-
enable: z
|
|
2272
|
-
disable: z
|
|
2273
|
-
}, "strict", z
|
|
2290
|
+
}>, z.ZodObject<{
|
|
2291
|
+
tags: z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
2292
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2293
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2294
|
+
}, "strict", z.ZodTypeAny, {
|
|
2274
2295
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2275
2296
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2276
2297
|
}, {
|
|
2277
2298
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2278
2299
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2279
2300
|
}>]>;
|
|
2280
|
-
}, "strict", z
|
|
2301
|
+
}, "strict", z.ZodTypeAny, {
|
|
2281
2302
|
tags: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2282
2303
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2283
2304
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -2306,37 +2327,37 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2306
2327
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2307
2328
|
};
|
|
2308
2329
|
}>]>>>>;
|
|
2309
|
-
tags: z
|
|
2310
|
-
enable: z
|
|
2311
|
-
disable: z
|
|
2312
|
-
}, "strict", z
|
|
2330
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">, z.ZodObject<{
|
|
2331
|
+
enable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2332
|
+
disable: z.ZodOptional<z.ZodArray<z.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
2333
|
+
}, "strict", z.ZodTypeAny, {
|
|
2313
2334
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2314
2335
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2315
2336
|
}, {
|
|
2316
2337
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2317
2338
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2318
2339
|
}>]>>>;
|
|
2319
|
-
authConfigs: z
|
|
2320
|
-
connectedAccounts: z
|
|
2321
|
-
manageConnections: z
|
|
2322
|
-
enable: z
|
|
2323
|
-
callbackUrl: z
|
|
2324
|
-
waitForConnections: z
|
|
2325
|
-
}, "strict", z
|
|
2326
|
-
callbackUrl?: string | undefined;
|
|
2340
|
+
authConfigs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2341
|
+
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[]>>>>;
|
|
2342
|
+
manageConnections: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
2343
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2344
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
waitForConnections: z.ZodOptional<z.ZodBoolean>;
|
|
2346
|
+
}, "strict", z.ZodTypeAny, {
|
|
2327
2347
|
enable?: boolean | undefined;
|
|
2348
|
+
callbackUrl?: string | undefined;
|
|
2328
2349
|
waitForConnections?: boolean | undefined;
|
|
2329
2350
|
}, {
|
|
2330
|
-
callbackUrl?: string | undefined;
|
|
2331
2351
|
enable?: boolean | undefined;
|
|
2352
|
+
callbackUrl?: string | undefined;
|
|
2332
2353
|
waitForConnections?: boolean | undefined;
|
|
2333
2354
|
}>]>>>>;
|
|
2334
|
-
sandbox: z
|
|
2335
|
-
enable: z
|
|
2336
|
-
enableProxyExecution: z
|
|
2337
|
-
autoOffloadThreshold: z
|
|
2338
|
-
sandboxSize: z
|
|
2339
|
-
}, "strip", z
|
|
2355
|
+
sandbox: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2356
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2357
|
+
enableProxyExecution: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2358
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2359
|
+
sandboxSize: z.ZodOptional<z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
|
|
2360
|
+
}, "strip", z.ZodTypeAny, {
|
|
2340
2361
|
enable?: boolean | undefined;
|
|
2341
2362
|
enableProxyExecution?: boolean | undefined;
|
|
2342
2363
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2347,12 +2368,12 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2347
2368
|
autoOffloadThreshold?: number | undefined;
|
|
2348
2369
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2349
2370
|
}>>>>;
|
|
2350
|
-
workbench: z
|
|
2351
|
-
enable: z
|
|
2352
|
-
enableProxyExecution: z
|
|
2353
|
-
autoOffloadThreshold: z
|
|
2354
|
-
sandboxSize: z
|
|
2355
|
-
}, "strip", z
|
|
2371
|
+
workbench: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2372
|
+
enable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2373
|
+
enableProxyExecution: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
2374
|
+
autoOffloadThreshold: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2375
|
+
sandboxSize: z.ZodOptional<z.ZodOptional<z.ZodEnum<["standard", "medium", "large", "xlarge"]>>>;
|
|
2376
|
+
}, "strip", z.ZodTypeAny, {
|
|
2356
2377
|
enable?: boolean | undefined;
|
|
2357
2378
|
enableProxyExecution?: boolean | undefined;
|
|
2358
2379
|
autoOffloadThreshold?: number | undefined;
|
|
@@ -2363,11 +2384,11 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2363
2384
|
autoOffloadThreshold?: number | undefined;
|
|
2364
2385
|
sandboxSize?: "standard" | "medium" | "large" | "xlarge" | undefined;
|
|
2365
2386
|
}>>>>;
|
|
2366
|
-
multiAccount: z
|
|
2367
|
-
enable: z
|
|
2368
|
-
maxAccountsPerToolkit: z
|
|
2369
|
-
requireExplicitSelection: z
|
|
2370
|
-
}, "strip", z
|
|
2387
|
+
multiAccount: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2388
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
2389
|
+
maxAccountsPerToolkit: z.ZodOptional<z.ZodNumber>;
|
|
2390
|
+
requireExplicitSelection: z.ZodOptional<z.ZodBoolean>;
|
|
2391
|
+
}, "strip", z.ZodTypeAny, {
|
|
2371
2392
|
enable?: boolean | undefined;
|
|
2372
2393
|
maxAccountsPerToolkit?: number | undefined;
|
|
2373
2394
|
requireExplicitSelection?: boolean | undefined;
|
|
@@ -2376,18 +2397,14 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2376
2397
|
maxAccountsPerToolkit?: number | undefined;
|
|
2377
2398
|
requireExplicitSelection?: boolean | undefined;
|
|
2378
2399
|
}>>>>;
|
|
2379
|
-
preload: z
|
|
2380
|
-
tools: z
|
|
2381
|
-
}, "strict", z
|
|
2400
|
+
preload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2401
|
+
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodLiteral<"all">]>>;
|
|
2402
|
+
}, "strict", z.ZodTypeAny, {
|
|
2382
2403
|
tools?: string[] | "all" | undefined;
|
|
2383
2404
|
}, {
|
|
2384
2405
|
tools?: string[] | "all" | undefined;
|
|
2385
2406
|
}>>>;
|
|
2386
|
-
}, "strip", z
|
|
2387
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2388
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2389
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2390
|
-
} | undefined;
|
|
2407
|
+
}, "strip", z.ZodTypeAny, {
|
|
2391
2408
|
tools?: Record<string, string[] | {
|
|
2392
2409
|
enable: string[];
|
|
2393
2410
|
} | {
|
|
@@ -2403,14 +2420,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2403
2420
|
} | {
|
|
2404
2421
|
enable: string[];
|
|
2405
2422
|
} | undefined;
|
|
2423
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2424
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2425
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2426
|
+
} | undefined;
|
|
2406
2427
|
preload?: {
|
|
2407
2428
|
tools?: string[] | "all" | undefined;
|
|
2408
2429
|
} | undefined;
|
|
2409
2430
|
authConfigs?: Record<string, string> | undefined;
|
|
2410
2431
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2411
2432
|
manageConnections?: boolean | {
|
|
2412
|
-
callbackUrl?: string | undefined;
|
|
2413
2433
|
enable?: boolean | undefined;
|
|
2434
|
+
callbackUrl?: string | undefined;
|
|
2414
2435
|
waitForConnections?: boolean | undefined;
|
|
2415
2436
|
} | null | undefined;
|
|
2416
2437
|
sandbox?: {
|
|
@@ -2431,10 +2452,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2431
2452
|
requireExplicitSelection?: boolean | undefined;
|
|
2432
2453
|
} | null | undefined;
|
|
2433
2454
|
}, {
|
|
2434
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2435
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2436
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2437
|
-
} | undefined;
|
|
2438
2455
|
tools?: Record<string, string[] | {
|
|
2439
2456
|
enable: string[];
|
|
2440
2457
|
} | {
|
|
@@ -2450,14 +2467,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2450
2467
|
} | {
|
|
2451
2468
|
enable: string[];
|
|
2452
2469
|
} | undefined;
|
|
2470
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2471
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2472
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2473
|
+
} | undefined;
|
|
2453
2474
|
preload?: {
|
|
2454
2475
|
tools?: string[] | "all" | undefined;
|
|
2455
2476
|
} | undefined;
|
|
2456
2477
|
authConfigs?: Record<string, string> | undefined;
|
|
2457
2478
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2458
2479
|
manageConnections?: boolean | {
|
|
2459
|
-
callbackUrl?: string | undefined;
|
|
2460
2480
|
enable?: boolean | undefined;
|
|
2481
|
+
callbackUrl?: string | undefined;
|
|
2461
2482
|
waitForConnections?: boolean | undefined;
|
|
2462
2483
|
} | null | undefined;
|
|
2463
2484
|
sandbox?: {
|
|
@@ -2478,10 +2499,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2478
2499
|
requireExplicitSelection?: boolean | undefined;
|
|
2479
2500
|
} | null | undefined;
|
|
2480
2501
|
}>, {
|
|
2481
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2482
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2483
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2484
|
-
} | undefined;
|
|
2485
2502
|
tools?: Record<string, string[] | {
|
|
2486
2503
|
enable: string[];
|
|
2487
2504
|
} | {
|
|
@@ -2497,14 +2514,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2497
2514
|
} | {
|
|
2498
2515
|
enable: string[];
|
|
2499
2516
|
} | undefined;
|
|
2517
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2518
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2519
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2520
|
+
} | undefined;
|
|
2500
2521
|
preload?: {
|
|
2501
2522
|
tools?: string[] | "all" | undefined;
|
|
2502
2523
|
} | undefined;
|
|
2503
2524
|
authConfigs?: Record<string, string> | undefined;
|
|
2504
2525
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2505
2526
|
manageConnections?: boolean | {
|
|
2506
|
-
callbackUrl?: string | undefined;
|
|
2507
2527
|
enable?: boolean | undefined;
|
|
2528
|
+
callbackUrl?: string | undefined;
|
|
2508
2529
|
waitForConnections?: boolean | undefined;
|
|
2509
2530
|
} | null | undefined;
|
|
2510
2531
|
sandbox?: {
|
|
@@ -2525,10 +2546,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2525
2546
|
requireExplicitSelection?: boolean | undefined;
|
|
2526
2547
|
} | null | undefined;
|
|
2527
2548
|
}, {
|
|
2528
|
-
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2529
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2530
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2531
|
-
} | undefined;
|
|
2532
2549
|
tools?: Record<string, string[] | {
|
|
2533
2550
|
enable: string[];
|
|
2534
2551
|
} | {
|
|
@@ -2544,14 +2561,18 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2544
2561
|
} | {
|
|
2545
2562
|
enable: string[];
|
|
2546
2563
|
} | undefined;
|
|
2564
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2565
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2566
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2567
|
+
} | undefined;
|
|
2547
2568
|
preload?: {
|
|
2548
2569
|
tools?: string[] | "all" | undefined;
|
|
2549
2570
|
} | undefined;
|
|
2550
2571
|
authConfigs?: Record<string, string> | undefined;
|
|
2551
2572
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2552
2573
|
manageConnections?: boolean | {
|
|
2553
|
-
callbackUrl?: string | undefined;
|
|
2554
2574
|
enable?: boolean | undefined;
|
|
2575
|
+
callbackUrl?: string | undefined;
|
|
2555
2576
|
waitForConnections?: boolean | undefined;
|
|
2556
2577
|
} | null | undefined;
|
|
2557
2578
|
sandbox?: {
|
|
@@ -2572,19 +2593,19 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
2572
2593
|
requireExplicitSelection?: boolean | undefined;
|
|
2573
2594
|
} | null | undefined;
|
|
2574
2595
|
}>;
|
|
2575
|
-
type ToolRouterUpdateSessionConfig = z
|
|
2596
|
+
type ToolRouterUpdateSessionConfig = z.infer<typeof ToolRouterUpdateSessionConfigSchema>;
|
|
2576
2597
|
type ToolRouterSessionUpdateFn = (config: ToolRouterUpdateSessionConfig) => Promise<void>;
|
|
2577
|
-
declare const ToolRouterSessionDeleteResponseSchema: z
|
|
2578
|
-
sessionId: z
|
|
2579
|
-
deleted: z
|
|
2580
|
-
}, "strip", z
|
|
2581
|
-
sessionId: string;
|
|
2598
|
+
declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
|
|
2599
|
+
sessionId: z.ZodString;
|
|
2600
|
+
deleted: z.ZodLiteral<true>;
|
|
2601
|
+
}, "strip", z.ZodTypeAny, {
|
|
2582
2602
|
deleted: true;
|
|
2583
|
-
}, {
|
|
2584
2603
|
sessionId: string;
|
|
2604
|
+
}, {
|
|
2585
2605
|
deleted: true;
|
|
2606
|
+
sessionId: string;
|
|
2586
2607
|
}>;
|
|
2587
|
-
type ToolRouterSessionDeleteResponse = z
|
|
2608
|
+
type ToolRouterSessionDeleteResponse = z.infer<typeof ToolRouterSessionDeleteResponseSchema>;
|
|
2588
2609
|
type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
|
|
2589
2610
|
/** Session type returned by ToolRouter.create() and ToolRouter.use() */
|
|
2590
2611
|
interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
@@ -2642,8 +2663,8 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2642
2663
|
type SessionWithoutMcp<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> = Omit<Session<TToolCollection, TTool, TProvider>, 'mcp'>;
|
|
2643
2664
|
//#endregion
|
|
2644
2665
|
//#region src/types/customTool.types.d.ts
|
|
2645
|
-
type AnyZodSchema = z.ZodType | z$2.ZodType;
|
|
2646
|
-
type InferZodSchema<T extends AnyZodSchema> = T extends z.ZodType ? z.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
|
|
2666
|
+
type AnyZodSchema = z$1.ZodType | z$2.ZodType;
|
|
2667
|
+
type InferZodSchema<T extends AnyZodSchema> = T extends z$1.ZodType ? z$1.infer<T> : T extends z$2.ZodType ? z$2.infer<T> : never;
|
|
2647
2668
|
/**
|
|
2648
2669
|
* Session context injected into custom tool execute functions at runtime.
|
|
2649
2670
|
* Provides identity context and methods to call other tools or proxy API requests.
|
|
@@ -2678,24 +2699,24 @@ type CustomToolExecuteFn<T extends AnyZodSchema> = (input: InferZodSchema<T>, ct
|
|
|
2678
2699
|
* Alphanumeric, underscores, and hyphens only. No `LOCAL_` or `COMPOSIO_` prefix.
|
|
2679
2700
|
* Length is validated contextually (standalone vs extension vs toolkit) at creation time.
|
|
2680
2701
|
*/
|
|
2681
|
-
declare const CustomToolSlugSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2702
|
+
declare const CustomToolSlugSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
|
|
2682
2703
|
/**
|
|
2683
2704
|
* Zod schema for validating the string/scalar fields of createCustomTool() options.
|
|
2684
2705
|
* Slug is validated separately as the first argument.
|
|
2685
2706
|
* Used internally for validation — inputParams, outputParams, and execute are checked manually.
|
|
2686
2707
|
*/
|
|
2687
|
-
declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
2688
|
-
name: z.ZodString;
|
|
2689
|
-
description: z.ZodString;
|
|
2708
|
+
declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
|
|
2709
|
+
name: z$1.ZodString;
|
|
2710
|
+
description: z$1.ZodString;
|
|
2690
2711
|
/**
|
|
2691
2712
|
* Composio toolkit slug that this tool extends (inherits auth from).
|
|
2692
2713
|
* Must be a valid Composio toolkit slug (e.g. `'gmail'`, `'github'`, `'meta_ads'`).
|
|
2693
2714
|
* The backend validates this against the toolkit catalog.
|
|
2694
2715
|
* Leave empty for tools that don't need any Composio-managed authentication.
|
|
2695
2716
|
*/
|
|
2696
|
-
extendsToolkit: z.ZodOptional<z.ZodString>;
|
|
2697
|
-
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2698
|
-
}, "strip", z.ZodTypeAny, {
|
|
2717
|
+
extendsToolkit: z$1.ZodOptional<z$1.ZodString>;
|
|
2718
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2719
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2699
2720
|
name: string;
|
|
2700
2721
|
description: string;
|
|
2701
2722
|
extendsToolkit?: string | undefined;
|
|
@@ -2707,9 +2728,12 @@ declare const CreateCustomToolBaseSchema: z.ZodObject<{
|
|
|
2707
2728
|
preload?: boolean | undefined;
|
|
2708
2729
|
}>;
|
|
2709
2730
|
/** Options for creating a custom tool via `createCustomTool()`. */
|
|
2710
|
-
type CreateCustomToolParams<T extends AnyZodSchema> = z.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2711
|
-
/** Zod schema for input parameters */
|
|
2712
|
-
|
|
2731
|
+
type CreateCustomToolParams<T extends AnyZodSchema> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
|
|
2732
|
+
/** Zod schema for input parameters */
|
|
2733
|
+
inputParams: T;
|
|
2734
|
+
/** Optional Zod schema for output parameters (sent to backend for documentation) */
|
|
2735
|
+
outputParams?: AnyZodSchema;
|
|
2736
|
+
/** The function that executes the tool */
|
|
2713
2737
|
execute: CustomToolExecuteFn<T>;
|
|
2714
2738
|
};
|
|
2715
2739
|
/**
|
|
@@ -2746,11 +2770,11 @@ type CustomToolWireDefinition = CustomToolDefinition;
|
|
|
2746
2770
|
* Zod schema for validating the string/scalar fields of createCustomToolkit() options.
|
|
2747
2771
|
* Slug is validated separately as the first argument.
|
|
2748
2772
|
*/
|
|
2749
|
-
declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
2750
|
-
name: z.ZodString;
|
|
2751
|
-
description: z.ZodString;
|
|
2752
|
-
preload: z.ZodOptional<z.ZodBoolean>;
|
|
2753
|
-
}, "strip", z.ZodTypeAny, {
|
|
2773
|
+
declare const CreateCustomToolkitBaseSchema: z$1.ZodObject<{
|
|
2774
|
+
name: z$1.ZodString;
|
|
2775
|
+
description: z$1.ZodString;
|
|
2776
|
+
preload: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
2777
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
2754
2778
|
name: string;
|
|
2755
2779
|
description: string;
|
|
2756
2780
|
preload?: boolean | undefined;
|
|
@@ -2760,8 +2784,9 @@ declare const CreateCustomToolkitBaseSchema: z.ZodObject<{
|
|
|
2760
2784
|
preload?: boolean | undefined;
|
|
2761
2785
|
}>;
|
|
2762
2786
|
/** Options for creating a custom toolkit via `createCustomToolkit()`. */
|
|
2763
|
-
type CreateCustomToolkitParams = z.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2764
|
-
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
|
|
2787
|
+
type CreateCustomToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
|
|
2788
|
+
/** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
|
|
2789
|
+
tools: CustomTool[];
|
|
2765
2790
|
};
|
|
2766
2791
|
/**
|
|
2767
2792
|
* Custom toolkit definition returned from `createCustomToolkit()`.
|
|
@@ -2787,17 +2812,25 @@ interface InlineCustomToolsWirePayload {
|
|
|
2787
2812
|
}
|
|
2788
2813
|
/** @internal Entry in the per-session custom tools routing map. */
|
|
2789
2814
|
type CustomToolsMapEntry = {
|
|
2790
|
-
handle: CustomTool;
|
|
2791
|
-
|
|
2815
|
+
handle: CustomTool;
|
|
2816
|
+
/** @internal The final slug assigned by the prefixing rules (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
|
|
2817
|
+
finalSlug: string;
|
|
2818
|
+
/** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
|
|
2792
2819
|
toolkit?: string;
|
|
2793
2820
|
};
|
|
2794
2821
|
/** @internal Lookup maps used by ToolRouterSession for routing custom tools. */
|
|
2795
2822
|
type CustomToolsMap = {
|
|
2796
|
-
/** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2823
|
+
/** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */
|
|
2824
|
+
byFinalSlug: Map<string, CustomToolsMapEntry>;
|
|
2825
|
+
/** Lookup by unique original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
|
|
2826
|
+
byOriginalSlug: Map<string, CustomToolsMapEntry>;
|
|
2827
|
+
/** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
|
|
2828
|
+
byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>;
|
|
2829
|
+
/** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
|
|
2830
|
+
ambiguousOriginalSlugs?: Set<string>;
|
|
2831
|
+
/** The original custom toolkits passed at session creation — used for session.customToolkits() */
|
|
2832
|
+
toolkits?: CustomToolkit[];
|
|
2833
|
+
/** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
|
|
2801
2834
|
tools?: CustomTool[];
|
|
2802
2835
|
};
|
|
2803
2836
|
/** A custom tool as registered in a session, with its final resolved slug. */
|