@composio/core 0.6.10 → 0.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CustomTool-BpjZfEYa.d.cts → CustomTool-B1b2MXbO.d.cts} +1 -1
- package/dist/{CustomTool-Cyo1aJ2l.cjs → CustomTool-Cywkgg64.cjs} +28 -28
- package/dist/{CustomTool-AYNimqhf.mjs → CustomTool-D8cxWvi9.mjs} +1 -1
- package/dist/{CustomTool-w_JFqb4t.d.mts → CustomTool-VQMc17af.d.mts} +1 -1
- package/dist/{ComposioError-CYaI68Mo.cjs → FileModifierErrors-DuKpNYju.cjs} +74 -0
- package/dist/{ComposioError-ChkSdxqU.mjs → FileModifierErrors-LQwvd6pa.mjs} +51 -1
- package/dist/{Telemetry-CjVa99gU.mjs → Telemetry-BJ2KYlDT.mjs} +1 -1
- package/dist/{Telemetry-A89k5RTv.cjs → Telemetry-JZNofztq.cjs} +17 -17
- package/dist/{composio-HztGH0kt.d.mts → composio-D8u53qsy.d.mts} +161 -157
- package/dist/{composio-CQuG4JPT.d.cts → composio-ruMDVx1b.d.cts} +161 -157
- package/dist/{customTool.types-BxvwmFDN.d.cts → customTool.types-9jJUADW-.d.cts} +17 -51
- package/dist/{customTool.types-CBLEoQnI.d.mts → customTool.types-C6-M75bi.d.mts} +17 -51
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +3 -3
- package/dist/experimental/index.mjs +2 -2
- package/dist/{fileUtils.node-DF-AY0Td.cjs → fileUtils.node-DsDsZfEl.cjs} +74 -10
- package/dist/{fileUtils.node-BOZnseMe.mjs → fileUtils.node-mlBa5nwX.mjs} +67 -5
- package/dist/index.cjs +95 -101
- package/dist/index.d.cts +31 -7
- package/dist/index.d.mts +31 -7
- package/dist/index.mjs +34 -44
- package/dist/models/Files.node.cjs +9 -5
- package/dist/models/Files.node.d.cts +5 -1
- package/dist/models/Files.node.d.mts +5 -1
- package/dist/models/Files.node.mjs +9 -5
- package/dist/platform/node.mjs +7 -7
- package/dist/{tool.types-bencsexi.d.mts → tool.types-BGrE7Vqc.d.mts} +34 -21
- package/dist/{tool.types-BWc7GUrD.d.cts → tool.types-C5DMrBdm.d.cts} +34 -21
- package/dist/{types-CJQ9IGrf.d.cts → types-DZaf5VcY.d.cts} +2 -2
- package/dist/{types-BZc_R1DA.d.mts → types-WkBTUiQh.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +4 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +4 -4
- package/dist/utils/modifiers/FileToolModifier.node.cjs +55 -24
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +3 -2
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -2
- package/dist/utils/modifiers/FileToolModifier.node.mjs +51 -20
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import "../chunk-CWQeghP5.mjs";
|
|
2
|
-
import "../
|
|
3
|
-
import { t as telemetry } from "../Telemetry-
|
|
4
|
-
import { n as getFileDataAfterUploadingToS3, t as downloadFileFromS3 } from "../fileUtils.node-
|
|
2
|
+
import "../FileModifierErrors-LQwvd6pa.mjs";
|
|
3
|
+
import { t as telemetry } from "../Telemetry-BJ2KYlDT.mjs";
|
|
4
|
+
import { n as getFileDataAfterUploadingToS3, t as downloadFileFromS3 } from "../fileUtils.node-mlBa5nwX.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/models/Files.node.ts
|
|
7
7
|
var Files = class {
|
|
8
|
-
|
|
8
|
+
fileUploadPathOptions;
|
|
9
|
+
constructor(client, fileUploadPathOptions = {}) {
|
|
9
10
|
this.client = client;
|
|
11
|
+
this.fileUploadPathOptions = fileUploadPathOptions;
|
|
10
12
|
telemetry.instrument(this, "Files");
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
@@ -30,7 +32,9 @@ var Files = class {
|
|
|
30
32
|
return await getFileDataAfterUploadingToS3(file, {
|
|
31
33
|
toolSlug,
|
|
32
34
|
toolkitSlug,
|
|
33
|
-
client: this.client
|
|
35
|
+
client: this.client,
|
|
36
|
+
sensitiveFileUploadProtection: this.fileUploadPathOptions.sensitiveFileUploadProtection,
|
|
37
|
+
fileUploadPathDenySegments: this.fileUploadPathOptions.fileUploadPathDenySegments
|
|
34
38
|
});
|
|
35
39
|
}
|
|
36
40
|
/**
|
package/dist/platform/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
1
|
+
import * as fs$1 from "node:fs";
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
|
|
@@ -23,21 +23,21 @@ const platform = {
|
|
|
23
23
|
return path.basename(filePath);
|
|
24
24
|
},
|
|
25
25
|
existsSync(filePath) {
|
|
26
|
-
return fs.existsSync(filePath);
|
|
26
|
+
return fs$1.existsSync(filePath);
|
|
27
27
|
},
|
|
28
28
|
mkdirSync(dirPath) {
|
|
29
|
-
fs.mkdirSync(dirPath, { recursive: true });
|
|
29
|
+
fs$1.mkdirSync(dirPath, { recursive: true });
|
|
30
30
|
},
|
|
31
31
|
readFileSync(filePath, encoding) {
|
|
32
32
|
if (encoding === void 0) {
|
|
33
|
-
const buf = fs.readFileSync(filePath, { encoding: null });
|
|
33
|
+
const buf = fs$1.readFileSync(filePath, { encoding: null });
|
|
34
34
|
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
35
35
|
}
|
|
36
|
-
return fs.readFileSync(filePath, { encoding });
|
|
36
|
+
return fs$1.readFileSync(filePath, { encoding });
|
|
37
37
|
},
|
|
38
38
|
writeFileSync(filePath, content, encoding) {
|
|
39
|
-
if (encoding && typeof content === "string") fs.writeFileSync(filePath, content, { encoding });
|
|
40
|
-
else fs.writeFileSync(filePath, content);
|
|
39
|
+
if (encoding && typeof content === "string") fs$1.writeFileSync(filePath, content, { encoding });
|
|
40
|
+
else fs$1.writeFileSync(filePath, content);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -21860,6 +21860,19 @@ type afterExecuteModifier = (context: {
|
|
|
21860
21860
|
toolkitSlug: string;
|
|
21861
21861
|
result: ToolExecuteResponse;
|
|
21862
21862
|
}) => Promise<ToolExecuteResponse> | ToolExecuteResponse;
|
|
21863
|
+
/**
|
|
21864
|
+
* Called for each `file_uploadable` value before the SDK reads the file and uploads to storage.
|
|
21865
|
+
* For a string, `path` is the local path or URL. For a `File` object, `path` is the file's name; you may return
|
|
21866
|
+
* a different filesystem path to upload instead, or return `false` to abort the upload. Throwing an error also aborts.
|
|
21867
|
+
*/
|
|
21868
|
+
type beforeFileUploadModifier = (context: {
|
|
21869
|
+
path: string;
|
|
21870
|
+
toolSlug: string;
|
|
21871
|
+
toolkitSlug: string;
|
|
21872
|
+
}) => Promise<string | false> | string | false;
|
|
21873
|
+
type BeforeFileUploadHook = {
|
|
21874
|
+
beforeFileUpload?: beforeFileUploadModifier;
|
|
21875
|
+
};
|
|
21863
21876
|
/**
|
|
21864
21877
|
* Modifier for altering the tool schema before it's exposed to consumers.
|
|
21865
21878
|
*
|
|
@@ -22029,7 +22042,7 @@ type ToolOptions = {
|
|
|
22029
22042
|
* This allows customizing input/output parameters, descriptions, and other metadata.
|
|
22030
22043
|
*/
|
|
22031
22044
|
modifySchema?: TransformToolSchemaModifier;
|
|
22032
|
-
};
|
|
22045
|
+
} & BeforeFileUploadHook;
|
|
22033
22046
|
/**
|
|
22034
22047
|
* Options for configuring tool execution behavior.
|
|
22035
22048
|
*
|
|
@@ -22068,7 +22081,7 @@ type ExecuteToolModifiers = {
|
|
|
22068
22081
|
* This allows transforming the response or implementing custom error handling.
|
|
22069
22082
|
*/
|
|
22070
22083
|
afterExecute?: afterExecuteModifier;
|
|
22071
|
-
};
|
|
22084
|
+
} & BeforeFileUploadHook;
|
|
22072
22085
|
/**
|
|
22073
22086
|
* Type alias for meta tool execution arguments.
|
|
22074
22087
|
* Represents the arguments passed to a meta tool during execution.
|
|
@@ -22308,12 +22321,12 @@ declare const ToolkitSchema: z$1.ZodObject<{
|
|
|
22308
22321
|
name: z$1.ZodString;
|
|
22309
22322
|
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
22310
22323
|
}, "strip", z$1.ZodTypeAny, {
|
|
22311
|
-
slug: string;
|
|
22312
22324
|
name: string;
|
|
22325
|
+
slug: string;
|
|
22313
22326
|
logo?: string | undefined;
|
|
22314
22327
|
}, {
|
|
22315
|
-
slug: string;
|
|
22316
22328
|
name: string;
|
|
22329
|
+
slug: string;
|
|
22317
22330
|
logo?: string | undefined;
|
|
22318
22331
|
}>;
|
|
22319
22332
|
type Toolkit = z$1.infer<typeof ToolkitSchema>;
|
|
@@ -22415,12 +22428,12 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
22415
22428
|
name: z$1.ZodString;
|
|
22416
22429
|
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
22417
22430
|
}, "strip", z$1.ZodTypeAny, {
|
|
22418
|
-
slug: string;
|
|
22419
22431
|
name: string;
|
|
22432
|
+
slug: string;
|
|
22420
22433
|
logo?: string | undefined;
|
|
22421
22434
|
}, {
|
|
22422
|
-
slug: string;
|
|
22423
22435
|
name: string;
|
|
22436
|
+
slug: string;
|
|
22424
22437
|
logo?: string | undefined;
|
|
22425
22438
|
}>>;
|
|
22426
22439
|
version: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -22429,8 +22442,8 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
22429
22442
|
scopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
22430
22443
|
isNoAuth: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
22431
22444
|
}, "strip", z$1.ZodTypeAny, {
|
|
22432
|
-
slug: string;
|
|
22433
22445
|
name: string;
|
|
22446
|
+
slug: string;
|
|
22434
22447
|
description?: string | undefined;
|
|
22435
22448
|
inputParameters?: {
|
|
22436
22449
|
type: "object";
|
|
@@ -22462,8 +22475,8 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
22462
22475
|
} | undefined;
|
|
22463
22476
|
tags?: string[] | undefined;
|
|
22464
22477
|
toolkit?: {
|
|
22465
|
-
slug: string;
|
|
22466
22478
|
name: string;
|
|
22479
|
+
slug: string;
|
|
22467
22480
|
logo?: string | undefined;
|
|
22468
22481
|
} | undefined;
|
|
22469
22482
|
version?: string | undefined;
|
|
@@ -22472,8 +22485,8 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
22472
22485
|
scopes?: string[] | undefined;
|
|
22473
22486
|
isNoAuth?: boolean | undefined;
|
|
22474
22487
|
}, {
|
|
22475
|
-
slug: string;
|
|
22476
22488
|
name: string;
|
|
22489
|
+
slug: string;
|
|
22477
22490
|
description?: string | undefined;
|
|
22478
22491
|
inputParameters?: {
|
|
22479
22492
|
type: "object";
|
|
@@ -22505,8 +22518,8 @@ declare const ToolSchema: z$1.ZodObject<{
|
|
|
22505
22518
|
} | undefined;
|
|
22506
22519
|
tags?: string[] | undefined;
|
|
22507
22520
|
toolkit?: {
|
|
22508
|
-
slug: string;
|
|
22509
22521
|
name: string;
|
|
22522
|
+
slug: string;
|
|
22510
22523
|
logo?: string | undefined;
|
|
22511
22524
|
} | undefined;
|
|
22512
22525
|
version?: string | undefined;
|
|
@@ -22610,12 +22623,12 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22610
22623
|
name: z$1.ZodString;
|
|
22611
22624
|
logo: z$1.ZodOptional<z$1.ZodString>;
|
|
22612
22625
|
}, "strip", z$1.ZodTypeAny, {
|
|
22613
|
-
slug: string;
|
|
22614
22626
|
name: string;
|
|
22627
|
+
slug: string;
|
|
22615
22628
|
logo?: string | undefined;
|
|
22616
22629
|
}, {
|
|
22617
|
-
slug: string;
|
|
22618
22630
|
name: string;
|
|
22631
|
+
slug: string;
|
|
22619
22632
|
logo?: string | undefined;
|
|
22620
22633
|
}>>;
|
|
22621
22634
|
version: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -22624,8 +22637,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22624
22637
|
scopes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
22625
22638
|
isNoAuth: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
22626
22639
|
}, "strip", z$1.ZodTypeAny, {
|
|
22627
|
-
slug: string;
|
|
22628
22640
|
name: string;
|
|
22641
|
+
slug: string;
|
|
22629
22642
|
description?: string | undefined;
|
|
22630
22643
|
inputParameters?: {
|
|
22631
22644
|
type: "object";
|
|
@@ -22657,8 +22670,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22657
22670
|
} | undefined;
|
|
22658
22671
|
tags?: string[] | undefined;
|
|
22659
22672
|
toolkit?: {
|
|
22660
|
-
slug: string;
|
|
22661
22673
|
name: string;
|
|
22674
|
+
slug: string;
|
|
22662
22675
|
logo?: string | undefined;
|
|
22663
22676
|
} | undefined;
|
|
22664
22677
|
version?: string | undefined;
|
|
@@ -22667,8 +22680,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22667
22680
|
scopes?: string[] | undefined;
|
|
22668
22681
|
isNoAuth?: boolean | undefined;
|
|
22669
22682
|
}, {
|
|
22670
|
-
slug: string;
|
|
22671
22683
|
name: string;
|
|
22684
|
+
slug: string;
|
|
22672
22685
|
description?: string | undefined;
|
|
22673
22686
|
inputParameters?: {
|
|
22674
22687
|
type: "object";
|
|
@@ -22700,8 +22713,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22700
22713
|
} | undefined;
|
|
22701
22714
|
tags?: string[] | undefined;
|
|
22702
22715
|
toolkit?: {
|
|
22703
|
-
slug: string;
|
|
22704
22716
|
name: string;
|
|
22717
|
+
slug: string;
|
|
22705
22718
|
logo?: string | undefined;
|
|
22706
22719
|
} | undefined;
|
|
22707
22720
|
version?: string | undefined;
|
|
@@ -22714,8 +22727,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22714
22727
|
totalPages: z$1.ZodNumber;
|
|
22715
22728
|
}, "strip", z$1.ZodTypeAny, {
|
|
22716
22729
|
items: {
|
|
22717
|
-
slug: string;
|
|
22718
22730
|
name: string;
|
|
22731
|
+
slug: string;
|
|
22719
22732
|
description?: string | undefined;
|
|
22720
22733
|
inputParameters?: {
|
|
22721
22734
|
type: "object";
|
|
@@ -22747,8 +22760,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22747
22760
|
} | undefined;
|
|
22748
22761
|
tags?: string[] | undefined;
|
|
22749
22762
|
toolkit?: {
|
|
22750
|
-
slug: string;
|
|
22751
22763
|
name: string;
|
|
22764
|
+
slug: string;
|
|
22752
22765
|
logo?: string | undefined;
|
|
22753
22766
|
} | undefined;
|
|
22754
22767
|
version?: string | undefined;
|
|
@@ -22761,8 +22774,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22761
22774
|
nextCursor?: string | null | undefined;
|
|
22762
22775
|
}, {
|
|
22763
22776
|
items: {
|
|
22764
|
-
slug: string;
|
|
22765
22777
|
name: string;
|
|
22778
|
+
slug: string;
|
|
22766
22779
|
description?: string | undefined;
|
|
22767
22780
|
inputParameters?: {
|
|
22768
22781
|
type: "object";
|
|
@@ -22794,8 +22807,8 @@ declare const ToolListResponseSchema: z$1.ZodObject<{
|
|
|
22794
22807
|
} | undefined;
|
|
22795
22808
|
tags?: string[] | undefined;
|
|
22796
22809
|
toolkit?: {
|
|
22797
|
-
slug: string;
|
|
22798
22810
|
name: string;
|
|
22811
|
+
slug: string;
|
|
22799
22812
|
logo?: string | undefined;
|
|
22800
22813
|
} | undefined;
|
|
22801
22814
|
version?: string | undefined;
|
|
@@ -28781,4 +28794,4 @@ type ToolRetrievalOptions = {
|
|
|
28781
28794
|
version?: ToolkitVersion;
|
|
28782
28795
|
};
|
|
28783
28796
|
//#endregion
|
|
28784
|
-
export {
|
|
28797
|
+
export { ComposioMcpRetrieveResponseSchema as $, BillcomAuthConnectionDataSchema as $t, ToolkitVersions as A, Oauth2FailedConnectionData as An, MCPToolkitConfig as At, afterExecuteMetaModifier as B, McpServerGetResponse as Bt, ToolkitLatestVersion as C, Oauth1InitiatingConnectionDataSchema as Cn, MCPServerListResponse as Ct, ToolkitVersionParam as D, Oauth2ConnectionDataSchema as Dn, MCPServerUpdateParamsSchema as Dt, ToolkitVersion as E, Oauth2ConnectionData as En, MCPServerUpdateParams as Et, ProviderOptions as F, Oauth2InitiatedConnectionDataSchema as Fn, McpListResponse as Ft, BaseAgenticProvider as G, McpUrlResponse as Gt, beforeExecuteMetaModifier as H, McpToolkitConnectionStatus as Ht, SessionExecuteMetaModifiers as I, Oauth2InitiatingConnectionData as In, McpListResponseSchema as It, ComposioCustomCreateResponseSchema as J, ExecuteToolFn as Jt, BaseComposioProvider as K, McpUrlResponseCamelCase as Kt, SessionMetaToolOptions as L, Oauth2InitiatingConnectionDataSchema as Ln, McpRetrieveResponse as Lt, AgenticToolOptions as M, Oauth2InactiveConnectionData as Mn, MCPToolkitConfigsArraySchema as Mt, ExecuteToolModifiers as N, Oauth2InactiveConnectionDataSchema as Nn, McpDeleteResponse as Nt, ToolkitVersionParamSchema as O, Oauth2ExpiredConnectionData as On, MCPSingleAppServer as Ot, MetaToolArguments as P, Oauth2InitiatedConnectionData as Pn, McpDeleteResponseSchema as Pt, ComposioMcpListResponseSchema as Q, BaseConnectionFields as Qt, ToolOptions as R, RedirectableAuthSchemeSchema as Rn, McpRetrieveResponseSchema as Rt, Toolkit as S, Oauth1InitiatingConnectionData as Sn, MCPServerCreateResponseSchema as St, ToolkitSchema as T, Oauth2ActiveConnectionDataSchema as Tn, MCPServerSchema as Tt, beforeExecuteModifier as U, McpUpdateResponse as Ut, afterExecuteModifier as V, McpServerUrlInfo as Vt, beforeFileUploadModifier as W, McpUpdateResponseSchema as Wt, ComposioGenerateURLResponseSchema as X, GlobalExecuteToolFn as Xt, ComposioGenerateURLParamsSchema as Y, ExecuteToolFnOptions as Yt, ComposioMcpDeleteResponseSchema as Z, Provider as Zt, ToolListResponseSchema as _, Oauth1FailedConnectionDataSchema as _n, MCPInstanceParams as _t, SchemaModifierOptions as a, CustomConnectionDataSchema as an, GenerateURLParams as at, ToolRetrievalOptions as b, Oauth1InitiatedConnectionData as bn, MCPServer as bt, ToolExecuteMetaParamsSchema as c, CustomOauth2ConnectionData as cn, GenerateURLResponseSchema as ct, ToolExecuteResponse as d, Oauth1ActiveConnectionDataSchema as dn, MCPAuthOptionsSchema as dt, ConnectionData as en, ComposioMcpUpdateResponseSchema as et, ToolExecuteResponseSchema as f, Oauth1ConnectionData as fn, MCPCreateMethodResponse as ft, ToolListResponse as g, Oauth1FailedConnectionData as gn, MCPGetServerParamsSchema as gt, ToolListParamsSchema as h, Oauth1ExpiredConnectionDataSchema as hn, MCPGetServerParams as ht, JSONSchemaPropertySchema as i, CustomConnectionData as in, CustomCreateResponseValidated as it, ToolkitVersionsSchema as j, Oauth2FailedConnectionDataSchema as jn, MCPToolkitConfigSchema as jt, ToolkitVersionSchema as k, Oauth2ExpiredConnectionDataSchema as kn, MCPSingleAppServerSchema as kt, ToolExecuteParams as l, CustomOauth2ConnectionDataSchema as ln, GenerateURLResponseValidated as lt, ToolListParams as m, Oauth1ExpiredConnectionData as mn, MCPGenerateURLParamsSchema as mt, CustomAuthParamsSchema as n, ConnectionStatusEnum as nn, CustomCreateResponse$1 as nt, Tool as o, CustomOauth1ConnectionData as on, GenerateURLParamsSchema as ot, ToolList as p, Oauth1ConnectionDataSchema as pn, MCPGenerateURLParams as pt, BaseNonAgenticProvider as q, McpUserConnectionStatus as qt, JSONSchemaProperty as r, ConnectionStatuses as rn, CustomCreateResponseSchema as rt, ToolExecuteMetaParams as s, CustomOauth1ConnectionDataSchema as sn, GenerateURLResponse$1 as st, CustomAuthParams as t, ConnectionDataSchema as tn, ConnectionStatus as tt, ToolExecuteParamsSchema as u, Oauth1ActiveConnectionData as un, MCPAuthOptions as ut, ToolProxyParams as v, Oauth1InactiveConnectionData as vn, MCPMultiAppServer as vt, ToolkitLatestVersionSchema as w, Oauth2ActiveConnectionData as wn, MCPServerListResponseSchema as wt, ToolSchema as x, Oauth1InitiatedConnectionDataSchema as xn, MCPServerCreateResponse as xt, ToolProxyParamsSchema as y, Oauth1InactiveConnectionDataSchema as yn, MCPMultiAppServerSchema as yt, TransformToolSchemaModifier as z, McpServerCreateResponse as zt };
|
|
@@ -21860,6 +21860,19 @@ type afterExecuteModifier = (context: {
|
|
|
21860
21860
|
toolkitSlug: string;
|
|
21861
21861
|
result: ToolExecuteResponse;
|
|
21862
21862
|
}) => Promise<ToolExecuteResponse> | ToolExecuteResponse;
|
|
21863
|
+
/**
|
|
21864
|
+
* Called for each `file_uploadable` value before the SDK reads the file and uploads to storage.
|
|
21865
|
+
* For a string, `path` is the local path or URL. For a `File` object, `path` is the file's name; you may return
|
|
21866
|
+
* a different filesystem path to upload instead, or return `false` to abort the upload. Throwing an error also aborts.
|
|
21867
|
+
*/
|
|
21868
|
+
type beforeFileUploadModifier = (context: {
|
|
21869
|
+
path: string;
|
|
21870
|
+
toolSlug: string;
|
|
21871
|
+
toolkitSlug: string;
|
|
21872
|
+
}) => Promise<string | false> | string | false;
|
|
21873
|
+
type BeforeFileUploadHook = {
|
|
21874
|
+
beforeFileUpload?: beforeFileUploadModifier;
|
|
21875
|
+
};
|
|
21863
21876
|
/**
|
|
21864
21877
|
* Modifier for altering the tool schema before it's exposed to consumers.
|
|
21865
21878
|
*
|
|
@@ -22029,7 +22042,7 @@ type ToolOptions = {
|
|
|
22029
22042
|
* This allows customizing input/output parameters, descriptions, and other metadata.
|
|
22030
22043
|
*/
|
|
22031
22044
|
modifySchema?: TransformToolSchemaModifier;
|
|
22032
|
-
};
|
|
22045
|
+
} & BeforeFileUploadHook;
|
|
22033
22046
|
/**
|
|
22034
22047
|
* Options for configuring tool execution behavior.
|
|
22035
22048
|
*
|
|
@@ -22068,7 +22081,7 @@ type ExecuteToolModifiers = {
|
|
|
22068
22081
|
* This allows transforming the response or implementing custom error handling.
|
|
22069
22082
|
*/
|
|
22070
22083
|
afterExecute?: afterExecuteModifier;
|
|
22071
|
-
};
|
|
22084
|
+
} & BeforeFileUploadHook;
|
|
22072
22085
|
/**
|
|
22073
22086
|
* Type alias for meta tool execution arguments.
|
|
22074
22087
|
* Represents the arguments passed to a meta tool during execution.
|
|
@@ -22308,12 +22321,12 @@ declare const ToolkitSchema: z.ZodObject<{
|
|
|
22308
22321
|
name: z.ZodString;
|
|
22309
22322
|
logo: z.ZodOptional<z.ZodString>;
|
|
22310
22323
|
}, "strip", z.ZodTypeAny, {
|
|
22311
|
-
slug: string;
|
|
22312
22324
|
name: string;
|
|
22325
|
+
slug: string;
|
|
22313
22326
|
logo?: string | undefined;
|
|
22314
22327
|
}, {
|
|
22315
|
-
slug: string;
|
|
22316
22328
|
name: string;
|
|
22329
|
+
slug: string;
|
|
22317
22330
|
logo?: string | undefined;
|
|
22318
22331
|
}>;
|
|
22319
22332
|
type Toolkit = z.infer<typeof ToolkitSchema>;
|
|
@@ -22415,12 +22428,12 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
22415
22428
|
name: z.ZodString;
|
|
22416
22429
|
logo: z.ZodOptional<z.ZodString>;
|
|
22417
22430
|
}, "strip", z.ZodTypeAny, {
|
|
22418
|
-
slug: string;
|
|
22419
22431
|
name: string;
|
|
22432
|
+
slug: string;
|
|
22420
22433
|
logo?: string | undefined;
|
|
22421
22434
|
}, {
|
|
22422
|
-
slug: string;
|
|
22423
22435
|
name: string;
|
|
22436
|
+
slug: string;
|
|
22424
22437
|
logo?: string | undefined;
|
|
22425
22438
|
}>>;
|
|
22426
22439
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -22429,8 +22442,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
22429
22442
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22430
22443
|
isNoAuth: z.ZodOptional<z.ZodBoolean>;
|
|
22431
22444
|
}, "strip", z.ZodTypeAny, {
|
|
22432
|
-
slug: string;
|
|
22433
22445
|
name: string;
|
|
22446
|
+
slug: string;
|
|
22434
22447
|
description?: string | undefined;
|
|
22435
22448
|
inputParameters?: {
|
|
22436
22449
|
type: "object";
|
|
@@ -22462,8 +22475,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
22462
22475
|
} | undefined;
|
|
22463
22476
|
tags?: string[] | undefined;
|
|
22464
22477
|
toolkit?: {
|
|
22465
|
-
slug: string;
|
|
22466
22478
|
name: string;
|
|
22479
|
+
slug: string;
|
|
22467
22480
|
logo?: string | undefined;
|
|
22468
22481
|
} | undefined;
|
|
22469
22482
|
version?: string | undefined;
|
|
@@ -22472,8 +22485,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
22472
22485
|
scopes?: string[] | undefined;
|
|
22473
22486
|
isNoAuth?: boolean | undefined;
|
|
22474
22487
|
}, {
|
|
22475
|
-
slug: string;
|
|
22476
22488
|
name: string;
|
|
22489
|
+
slug: string;
|
|
22477
22490
|
description?: string | undefined;
|
|
22478
22491
|
inputParameters?: {
|
|
22479
22492
|
type: "object";
|
|
@@ -22505,8 +22518,8 @@ declare const ToolSchema: z.ZodObject<{
|
|
|
22505
22518
|
} | undefined;
|
|
22506
22519
|
tags?: string[] | undefined;
|
|
22507
22520
|
toolkit?: {
|
|
22508
|
-
slug: string;
|
|
22509
22521
|
name: string;
|
|
22522
|
+
slug: string;
|
|
22510
22523
|
logo?: string | undefined;
|
|
22511
22524
|
} | undefined;
|
|
22512
22525
|
version?: string | undefined;
|
|
@@ -22610,12 +22623,12 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22610
22623
|
name: z.ZodString;
|
|
22611
22624
|
logo: z.ZodOptional<z.ZodString>;
|
|
22612
22625
|
}, "strip", z.ZodTypeAny, {
|
|
22613
|
-
slug: string;
|
|
22614
22626
|
name: string;
|
|
22627
|
+
slug: string;
|
|
22615
22628
|
logo?: string | undefined;
|
|
22616
22629
|
}, {
|
|
22617
|
-
slug: string;
|
|
22618
22630
|
name: string;
|
|
22631
|
+
slug: string;
|
|
22619
22632
|
logo?: string | undefined;
|
|
22620
22633
|
}>>;
|
|
22621
22634
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -22624,8 +22637,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22624
22637
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22625
22638
|
isNoAuth: z.ZodOptional<z.ZodBoolean>;
|
|
22626
22639
|
}, "strip", z.ZodTypeAny, {
|
|
22627
|
-
slug: string;
|
|
22628
22640
|
name: string;
|
|
22641
|
+
slug: string;
|
|
22629
22642
|
description?: string | undefined;
|
|
22630
22643
|
inputParameters?: {
|
|
22631
22644
|
type: "object";
|
|
@@ -22657,8 +22670,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22657
22670
|
} | undefined;
|
|
22658
22671
|
tags?: string[] | undefined;
|
|
22659
22672
|
toolkit?: {
|
|
22660
|
-
slug: string;
|
|
22661
22673
|
name: string;
|
|
22674
|
+
slug: string;
|
|
22662
22675
|
logo?: string | undefined;
|
|
22663
22676
|
} | undefined;
|
|
22664
22677
|
version?: string | undefined;
|
|
@@ -22667,8 +22680,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22667
22680
|
scopes?: string[] | undefined;
|
|
22668
22681
|
isNoAuth?: boolean | undefined;
|
|
22669
22682
|
}, {
|
|
22670
|
-
slug: string;
|
|
22671
22683
|
name: string;
|
|
22684
|
+
slug: string;
|
|
22672
22685
|
description?: string | undefined;
|
|
22673
22686
|
inputParameters?: {
|
|
22674
22687
|
type: "object";
|
|
@@ -22700,8 +22713,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22700
22713
|
} | undefined;
|
|
22701
22714
|
tags?: string[] | undefined;
|
|
22702
22715
|
toolkit?: {
|
|
22703
|
-
slug: string;
|
|
22704
22716
|
name: string;
|
|
22717
|
+
slug: string;
|
|
22705
22718
|
logo?: string | undefined;
|
|
22706
22719
|
} | undefined;
|
|
22707
22720
|
version?: string | undefined;
|
|
@@ -22714,8 +22727,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22714
22727
|
totalPages: z.ZodNumber;
|
|
22715
22728
|
}, "strip", z.ZodTypeAny, {
|
|
22716
22729
|
items: {
|
|
22717
|
-
slug: string;
|
|
22718
22730
|
name: string;
|
|
22731
|
+
slug: string;
|
|
22719
22732
|
description?: string | undefined;
|
|
22720
22733
|
inputParameters?: {
|
|
22721
22734
|
type: "object";
|
|
@@ -22747,8 +22760,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22747
22760
|
} | undefined;
|
|
22748
22761
|
tags?: string[] | undefined;
|
|
22749
22762
|
toolkit?: {
|
|
22750
|
-
slug: string;
|
|
22751
22763
|
name: string;
|
|
22764
|
+
slug: string;
|
|
22752
22765
|
logo?: string | undefined;
|
|
22753
22766
|
} | undefined;
|
|
22754
22767
|
version?: string | undefined;
|
|
@@ -22761,8 +22774,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22761
22774
|
nextCursor?: string | null | undefined;
|
|
22762
22775
|
}, {
|
|
22763
22776
|
items: {
|
|
22764
|
-
slug: string;
|
|
22765
22777
|
name: string;
|
|
22778
|
+
slug: string;
|
|
22766
22779
|
description?: string | undefined;
|
|
22767
22780
|
inputParameters?: {
|
|
22768
22781
|
type: "object";
|
|
@@ -22794,8 +22807,8 @@ declare const ToolListResponseSchema: z.ZodObject<{
|
|
|
22794
22807
|
} | undefined;
|
|
22795
22808
|
tags?: string[] | undefined;
|
|
22796
22809
|
toolkit?: {
|
|
22797
|
-
slug: string;
|
|
22798
22810
|
name: string;
|
|
22811
|
+
slug: string;
|
|
22799
22812
|
logo?: string | undefined;
|
|
22800
22813
|
} | undefined;
|
|
22801
22814
|
version?: string | undefined;
|
|
@@ -28781,4 +28794,4 @@ type ToolRetrievalOptions = {
|
|
|
28781
28794
|
version?: ToolkitVersion;
|
|
28782
28795
|
};
|
|
28783
28796
|
//#endregion
|
|
28784
|
-
export {
|
|
28797
|
+
export { ComposioMcpRetrieveResponseSchema as $, BillcomAuthConnectionDataSchema as $t, ToolkitVersions as A, Oauth2FailedConnectionData as An, MCPToolkitConfig as At, afterExecuteMetaModifier as B, McpServerGetResponse as Bt, ToolkitLatestVersion as C, Oauth1InitiatingConnectionDataSchema as Cn, MCPServerListResponse as Ct, ToolkitVersionParam as D, Oauth2ConnectionDataSchema as Dn, MCPServerUpdateParamsSchema as Dt, ToolkitVersion as E, Oauth2ConnectionData as En, MCPServerUpdateParams as Et, ProviderOptions as F, Oauth2InitiatedConnectionDataSchema as Fn, McpListResponse as Ft, BaseAgenticProvider as G, McpUrlResponse as Gt, beforeExecuteMetaModifier as H, McpToolkitConnectionStatus as Ht, SessionExecuteMetaModifiers as I, Oauth2InitiatingConnectionData as In, McpListResponseSchema as It, ComposioCustomCreateResponseSchema as J, ExecuteToolFn as Jt, BaseComposioProvider as K, McpUrlResponseCamelCase as Kt, SessionMetaToolOptions as L, Oauth2InitiatingConnectionDataSchema as Ln, McpRetrieveResponse as Lt, AgenticToolOptions as M, Oauth2InactiveConnectionData as Mn, MCPToolkitConfigsArraySchema as Mt, ExecuteToolModifiers as N, Oauth2InactiveConnectionDataSchema as Nn, McpDeleteResponse as Nt, ToolkitVersionParamSchema as O, Oauth2ExpiredConnectionData as On, MCPSingleAppServer as Ot, MetaToolArguments as P, Oauth2InitiatedConnectionData as Pn, McpDeleteResponseSchema as Pt, ComposioMcpListResponseSchema as Q, BaseConnectionFields as Qt, ToolOptions as R, RedirectableAuthSchemeSchema as Rn, McpRetrieveResponseSchema as Rt, Toolkit as S, Oauth1InitiatingConnectionData as Sn, MCPServerCreateResponseSchema as St, ToolkitSchema as T, Oauth2ActiveConnectionDataSchema as Tn, MCPServerSchema as Tt, beforeExecuteModifier as U, McpUpdateResponse as Ut, afterExecuteModifier as V, McpServerUrlInfo as Vt, beforeFileUploadModifier as W, McpUpdateResponseSchema as Wt, ComposioGenerateURLResponseSchema as X, GlobalExecuteToolFn as Xt, ComposioGenerateURLParamsSchema as Y, ExecuteToolFnOptions as Yt, ComposioMcpDeleteResponseSchema as Z, Provider as Zt, ToolListResponseSchema as _, Oauth1FailedConnectionDataSchema as _n, MCPInstanceParams as _t, SchemaModifierOptions as a, CustomConnectionDataSchema as an, GenerateURLParams as at, ToolRetrievalOptions as b, Oauth1InitiatedConnectionData as bn, MCPServer as bt, ToolExecuteMetaParamsSchema as c, CustomOauth2ConnectionData as cn, GenerateURLResponseSchema as ct, ToolExecuteResponse as d, Oauth1ActiveConnectionDataSchema as dn, MCPAuthOptionsSchema as dt, ConnectionData as en, ComposioMcpUpdateResponseSchema as et, ToolExecuteResponseSchema as f, Oauth1ConnectionData as fn, MCPCreateMethodResponse as ft, ToolListResponse as g, Oauth1FailedConnectionData as gn, MCPGetServerParamsSchema as gt, ToolListParamsSchema as h, Oauth1ExpiredConnectionDataSchema as hn, MCPGetServerParams as ht, JSONSchemaPropertySchema as i, CustomConnectionData as in, CustomCreateResponseValidated as it, ToolkitVersionsSchema as j, Oauth2FailedConnectionDataSchema as jn, MCPToolkitConfigSchema as jt, ToolkitVersionSchema as k, Oauth2ExpiredConnectionDataSchema as kn, MCPSingleAppServerSchema as kt, ToolExecuteParams as l, CustomOauth2ConnectionDataSchema as ln, GenerateURLResponseValidated as lt, ToolListParams as m, Oauth1ExpiredConnectionData as mn, MCPGenerateURLParamsSchema as mt, CustomAuthParamsSchema as n, ConnectionStatusEnum as nn, CustomCreateResponse$1 as nt, Tool as o, CustomOauth1ConnectionData as on, GenerateURLParamsSchema as ot, ToolList as p, Oauth1ConnectionDataSchema as pn, MCPGenerateURLParams as pt, BaseNonAgenticProvider as q, McpUserConnectionStatus as qt, JSONSchemaProperty as r, ConnectionStatuses as rn, CustomCreateResponseSchema as rt, ToolExecuteMetaParams as s, CustomOauth1ConnectionDataSchema as sn, GenerateURLResponse$1 as st, CustomAuthParams as t, ConnectionDataSchema as tn, ConnectionStatus as tt, ToolExecuteParamsSchema as u, Oauth1ActiveConnectionData as un, MCPAuthOptions as ut, ToolProxyParams as v, Oauth1InactiveConnectionData as vn, MCPMultiAppServer as vt, ToolkitLatestVersionSchema as w, Oauth2ActiveConnectionData as wn, MCPServerListResponseSchema as wt, ToolSchema as x, Oauth1InitiatedConnectionDataSchema as xn, MCPServerCreateResponse as xt, ToolProxyParamsSchema as y, Oauth1InactiveConnectionDataSchema as yn, MCPMultiAppServerSchema as yt, TransformToolSchemaModifier as z, McpServerCreateResponse as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ComposioConfig } from "./composio-
|
|
1
|
+
import { K as BaseComposioProvider } from "./tool.types-C5DMrBdm.cjs";
|
|
2
|
+
import { n as ComposioConfig } from "./composio-ruMDVx1b.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/config-defaults/types.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as ComposioConfig } from "./composio-
|
|
1
|
+
import { K as BaseComposioProvider } from "./tool.types-BGrE7Vqc.mjs";
|
|
2
|
+
import { n as ComposioConfig } from "./composio-D8u53qsy.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/config-defaults/types.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../composio-
|
|
2
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import "../../composio-ruMDVx1b.cjs";
|
|
2
|
+
import { t as ConfigDefaults } from "../../types-DZaf5VcY.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/config-defaults/ConfigDefaults.node.d.ts
|
|
5
5
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../tool.types-
|
|
2
|
-
import "../../customTool.types-
|
|
3
|
-
import "../../composio-
|
|
4
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import "../../tool.types-BGrE7Vqc.mjs";
|
|
2
|
+
import "../../customTool.types-C6-M75bi.mjs";
|
|
3
|
+
import "../../composio-D8u53qsy.mjs";
|
|
4
|
+
import { t as ConfigDefaults } from "../../types-WkBTUiQh.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/config-defaults/ConfigDefaults.node.d.ts
|
|
7
7
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../composio-
|
|
2
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import "../../composio-ruMDVx1b.cjs";
|
|
2
|
+
import { t as ConfigDefaults } from "../../types-DZaf5VcY.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/config-defaults/ConfigDefaults.workerd.d.ts
|
|
5
5
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../tool.types-
|
|
2
|
-
import "../../customTool.types-
|
|
3
|
-
import "../../composio-
|
|
4
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import "../../tool.types-BGrE7Vqc.mjs";
|
|
2
|
+
import "../../customTool.types-C6-M75bi.mjs";
|
|
3
|
+
import "../../composio-D8u53qsy.mjs";
|
|
4
|
+
import { t as ConfigDefaults } from "../../types-WkBTUiQh.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/config-defaults/ConfigDefaults.workerd.d.ts
|
|
7
7
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|