@composio/core 0.14.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseProvider-Dc5yKZhk.d.mts → BaseProvider-BN2-Nktx.d.mts} +303 -258
- package/dist/{CustomTool-4nVuwLzO.d.mts → CustomTool-zjeDpZ91.d.mts} +1 -1
- package/dist/{Telemetry-CF0rNHu2.mjs → Telemetry-DuGJSwUt.mjs} +2 -2
- package/dist/{composio-ChU3eD9F.d.mts → composio-Bf8hnBBq.d.mts} +250 -250
- package/dist/{customTool.types-CX2-LbfI.d.mts → customTool.types-Bhom9a2R.d.mts} +88 -88
- package/dist/experimental/index.d.mts +2 -2
- package/dist/{fileUtils.node-DOkW4PBg.mjs → fileUtils.node-BQ0fWge3.mjs} +5 -2
- package/dist/index.d.mts +8 -7
- package/dist/index.mjs +28 -13
- package/dist/models/Files.node.mjs +2 -2
- package/dist/platform/node.d.mts +1 -1
- package/dist/platform/node.mjs +24 -0
- package/dist/platform/workerd.d.mts +1 -1
- package/dist/platform/workerd.mjs +3 -0
- package/dist/{sensitiveFileUploadPaths-C43dHP7S.mjs → sensitiveFileUploadPaths-BVEt0peg.mjs} +12 -7
- package/dist/{types-D5N60gUD.d.mts → types-CePuCfD-.d.mts} +2 -2
- package/dist/{types-DY1r-kN9.d.mts → types-D5A2wzBl.d.mts} +8 -0
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/dist/utils/ssrfGuard.node.d.mts +2 -2
- package/dist/utils/ssrfGuard.node.mjs +3 -2
- package/package.json +6 -5
- package/src/models/ToolRouterSessionFileMount.ts +3 -0
- package/src/platform/node.ts +40 -0
- package/src/platform/types.ts +9 -0
- package/src/platform/workerd.ts +5 -0
- package/src/telemetry/redact.ts +6 -1
- package/src/types/tool.types.ts +52 -8
- package/src/utils/fileUtils.node.ts +3 -0
- package/src/utils/modifiers/FileToolModifier.node.ts +3 -3
- package/src/utils/modifiers/FileToolModifier.utils.neutral.ts +6 -4
- package/src/utils/sdk.ts +2 -2
- package/src/utils/sensitiveFileUploadPaths.ts +12 -9
- package/src/utils/ssrfGuard.node.ts +6 -2
- package/src/utils/version.ts +21 -20
|
@@ -1,4 +1,4 @@
|
|
|
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-BN2-Nktx.mjs";
|
|
2
2
|
import { Composio } from "@composio/client";
|
|
3
3
|
import z, { z as z$1 } from "zod/v3";
|
|
4
4
|
import { z as z$2 } from "zod/v4";
|
|
@@ -211,12 +211,12 @@ declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
|
|
|
211
211
|
redirectUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
212
212
|
}, "strip", z$1.ZodTypeAny, {
|
|
213
213
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
214
|
-
id: string;
|
|
215
214
|
redirectUrl: string | null;
|
|
215
|
+
id: string;
|
|
216
216
|
}, {
|
|
217
217
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
|
|
218
|
-
id: string;
|
|
219
218
|
redirectUrl: string | null;
|
|
219
|
+
id: string;
|
|
220
220
|
}>;
|
|
221
221
|
type CreateConnectedAccountResponse = z$1.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
222
222
|
declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
|
|
@@ -279,19 +279,19 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
|
279
279
|
*/
|
|
280
280
|
accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
|
|
281
281
|
}, "strip", z$1.ZodTypeAny, {
|
|
282
|
-
|
|
282
|
+
limit?: number | null | undefined;
|
|
283
283
|
authConfigIds?: string[] | null | undefined;
|
|
284
|
+
userIds?: string[] | null | undefined;
|
|
284
285
|
cursor?: string | null | undefined;
|
|
285
|
-
limit?: number | null | undefined;
|
|
286
286
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
287
287
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
288
288
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
289
289
|
toolkitSlugs?: string[] | null | undefined;
|
|
290
290
|
}, {
|
|
291
|
-
|
|
291
|
+
limit?: number | null | undefined;
|
|
292
292
|
authConfigIds?: string[] | null | undefined;
|
|
293
|
+
userIds?: string[] | null | undefined;
|
|
293
294
|
cursor?: string | null | undefined;
|
|
294
|
-
limit?: number | null | undefined;
|
|
295
295
|
accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
|
|
296
296
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
297
297
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
|
|
@@ -608,12 +608,12 @@ declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
|
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
mountId: string;
|
|
610
610
|
path?: string | undefined;
|
|
611
|
-
cursor?: string | undefined;
|
|
612
611
|
limit?: number | undefined;
|
|
612
|
+
cursor?: string | undefined;
|
|
613
613
|
}, {
|
|
614
614
|
path?: string | undefined;
|
|
615
|
-
cursor?: string | undefined;
|
|
616
615
|
limit?: number | undefined;
|
|
616
|
+
cursor?: string | undefined;
|
|
617
617
|
mountId?: string | undefined;
|
|
618
618
|
}>;
|
|
619
619
|
type ToolRouterSessionFilesMountListOptions = z.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
|
|
@@ -1295,6 +1295,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1295
1295
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1296
1296
|
}>>>;
|
|
1297
1297
|
}, "strip", z.ZodTypeAny, {
|
|
1298
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1299
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1300
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1301
|
+
} | undefined;
|
|
1298
1302
|
tools?: Record<string, string[] | {
|
|
1299
1303
|
enable: string[];
|
|
1300
1304
|
} | {
|
|
@@ -1310,14 +1314,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1310
1314
|
} | {
|
|
1311
1315
|
enable: string[];
|
|
1312
1316
|
} | undefined;
|
|
1313
|
-
|
|
1314
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1315
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1316
|
-
} | undefined;
|
|
1317
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1317
1318
|
preload?: {
|
|
1318
1319
|
tools?: string[] | "all" | undefined;
|
|
1319
1320
|
} | undefined;
|
|
1320
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1321
1321
|
sessionPreset?: "direct_tools" | undefined;
|
|
1322
1322
|
mcp?: boolean | undefined;
|
|
1323
1323
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1351,6 +1351,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1351
1351
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1352
1352
|
} | undefined;
|
|
1353
1353
|
}, {
|
|
1354
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1355
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1356
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1357
|
+
} | undefined;
|
|
1354
1358
|
tools?: Record<string, string[] | {
|
|
1355
1359
|
enable: string[];
|
|
1356
1360
|
} | {
|
|
@@ -1366,14 +1370,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1366
1370
|
} | {
|
|
1367
1371
|
enable: string[];
|
|
1368
1372
|
} | undefined;
|
|
1369
|
-
|
|
1370
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1371
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1372
|
-
} | undefined;
|
|
1373
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1373
1374
|
preload?: {
|
|
1374
1375
|
tools?: string[] | "all" | undefined;
|
|
1375
1376
|
} | undefined;
|
|
1376
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1377
1377
|
sessionPreset?: "direct_tools" | undefined;
|
|
1378
1378
|
mcp?: boolean | undefined;
|
|
1379
1379
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1407,6 +1407,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1407
1407
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1408
1408
|
} | undefined;
|
|
1409
1409
|
}>, {
|
|
1410
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1411
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1412
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1413
|
+
} | undefined;
|
|
1410
1414
|
tools?: Record<string, string[] | {
|
|
1411
1415
|
enable: string[];
|
|
1412
1416
|
} | {
|
|
@@ -1422,14 +1426,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1422
1426
|
} | {
|
|
1423
1427
|
enable: string[];
|
|
1424
1428
|
} | undefined;
|
|
1425
|
-
|
|
1426
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1427
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1428
|
-
} | undefined;
|
|
1429
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1429
1430
|
preload?: {
|
|
1430
1431
|
tools?: string[] | "all" | undefined;
|
|
1431
1432
|
} | undefined;
|
|
1432
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1433
1433
|
sessionPreset?: "direct_tools" | undefined;
|
|
1434
1434
|
mcp?: boolean | undefined;
|
|
1435
1435
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1463,6 +1463,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1463
1463
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1464
1464
|
} | undefined;
|
|
1465
1465
|
}, {
|
|
1466
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1467
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1468
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1469
|
+
} | undefined;
|
|
1466
1470
|
tools?: Record<string, string[] | {
|
|
1467
1471
|
enable: string[];
|
|
1468
1472
|
} | {
|
|
@@ -1478,14 +1482,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1478
1482
|
} | {
|
|
1479
1483
|
enable: string[];
|
|
1480
1484
|
} | undefined;
|
|
1481
|
-
|
|
1482
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1483
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1484
|
-
} | undefined;
|
|
1485
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1485
1486
|
preload?: {
|
|
1486
1487
|
tools?: string[] | "all" | undefined;
|
|
1487
1488
|
} | undefined;
|
|
1488
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1489
1489
|
sessionPreset?: "direct_tools" | undefined;
|
|
1490
1490
|
mcp?: boolean | undefined;
|
|
1491
1491
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1519,6 +1519,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1519
1519
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1520
1520
|
} | undefined;
|
|
1521
1521
|
}>, {
|
|
1522
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1523
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1524
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1525
|
+
} | undefined;
|
|
1522
1526
|
tools?: Record<string, string[] | {
|
|
1523
1527
|
enable: string[];
|
|
1524
1528
|
} | {
|
|
@@ -1534,14 +1538,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
|
|
|
1534
1538
|
} | {
|
|
1535
1539
|
enable: string[];
|
|
1536
1540
|
} | undefined;
|
|
1537
|
-
|
|
1538
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1539
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1540
|
-
} | undefined;
|
|
1541
|
+
authConfigs?: Record<string, string> | undefined;
|
|
1541
1542
|
preload?: {
|
|
1542
1543
|
tools?: string[] | "all" | undefined;
|
|
1543
1544
|
} | undefined;
|
|
1544
|
-
authConfigs?: Record<string, string> | undefined;
|
|
1545
1545
|
sessionPreset?: "direct_tools" | undefined;
|
|
1546
1546
|
mcp?: boolean | undefined;
|
|
1547
1547
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
@@ -1614,12 +1614,12 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1614
1614
|
isComposioManaged: z.ZodBoolean;
|
|
1615
1615
|
}, "strip", z.ZodTypeAny, {
|
|
1616
1616
|
id: string;
|
|
1617
|
-
isComposioManaged: boolean;
|
|
1618
1617
|
mode: string;
|
|
1618
|
+
isComposioManaged: boolean;
|
|
1619
1619
|
}, {
|
|
1620
1620
|
id: string;
|
|
1621
|
-
isComposioManaged: boolean;
|
|
1622
1621
|
mode: string;
|
|
1622
|
+
isComposioManaged: boolean;
|
|
1623
1623
|
}>>>;
|
|
1624
1624
|
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1625
1625
|
id: z.ZodString;
|
|
@@ -1635,8 +1635,8 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1635
1635
|
isActive: boolean;
|
|
1636
1636
|
authConfig?: {
|
|
1637
1637
|
id: string;
|
|
1638
|
-
isComposioManaged: boolean;
|
|
1639
1638
|
mode: string;
|
|
1639
|
+
isComposioManaged: boolean;
|
|
1640
1640
|
} | null | undefined;
|
|
1641
1641
|
connectedAccount?: {
|
|
1642
1642
|
status: string;
|
|
@@ -1646,8 +1646,8 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1646
1646
|
isActive: boolean;
|
|
1647
1647
|
authConfig?: {
|
|
1648
1648
|
id: string;
|
|
1649
|
-
isComposioManaged: boolean;
|
|
1650
1649
|
mode: string;
|
|
1650
|
+
isComposioManaged: boolean;
|
|
1651
1651
|
} | null | undefined;
|
|
1652
1652
|
connectedAccount?: {
|
|
1653
1653
|
status: string;
|
|
@@ -1655,16 +1655,16 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1655
1655
|
} | undefined;
|
|
1656
1656
|
}>>;
|
|
1657
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1658
|
-
name: string;
|
|
1659
1658
|
slug: string;
|
|
1659
|
+
name: string;
|
|
1660
1660
|
isNoAuth: boolean;
|
|
1661
1661
|
logo?: string | undefined;
|
|
1662
1662
|
connection?: {
|
|
1663
1663
|
isActive: boolean;
|
|
1664
1664
|
authConfig?: {
|
|
1665
1665
|
id: string;
|
|
1666
|
-
isComposioManaged: boolean;
|
|
1667
1666
|
mode: string;
|
|
1667
|
+
isComposioManaged: boolean;
|
|
1668
1668
|
} | null | undefined;
|
|
1669
1669
|
connectedAccount?: {
|
|
1670
1670
|
status: string;
|
|
@@ -1672,16 +1672,16 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
|
|
|
1672
1672
|
} | undefined;
|
|
1673
1673
|
} | undefined;
|
|
1674
1674
|
}, {
|
|
1675
|
-
name: string;
|
|
1676
1675
|
slug: string;
|
|
1676
|
+
name: string;
|
|
1677
1677
|
logo?: string | undefined;
|
|
1678
1678
|
isNoAuth?: boolean | undefined;
|
|
1679
1679
|
connection?: {
|
|
1680
1680
|
isActive: boolean;
|
|
1681
1681
|
authConfig?: {
|
|
1682
1682
|
id: string;
|
|
1683
|
-
isComposioManaged: boolean;
|
|
1684
1683
|
mode: string;
|
|
1684
|
+
isComposioManaged: boolean;
|
|
1685
1685
|
} | null | undefined;
|
|
1686
1686
|
connectedAccount?: {
|
|
1687
1687
|
status: string;
|
|
@@ -1703,12 +1703,12 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1703
1703
|
isComposioManaged: z.ZodBoolean;
|
|
1704
1704
|
}, "strip", z.ZodTypeAny, {
|
|
1705
1705
|
id: string;
|
|
1706
|
-
isComposioManaged: boolean;
|
|
1707
1706
|
mode: string;
|
|
1707
|
+
isComposioManaged: boolean;
|
|
1708
1708
|
}, {
|
|
1709
1709
|
id: string;
|
|
1710
|
-
isComposioManaged: boolean;
|
|
1711
1710
|
mode: string;
|
|
1711
|
+
isComposioManaged: boolean;
|
|
1712
1712
|
}>>>;
|
|
1713
1713
|
connectedAccount: z.ZodOptional<z.ZodObject<{
|
|
1714
1714
|
id: z.ZodString;
|
|
@@ -1724,8 +1724,8 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1724
1724
|
isActive: boolean;
|
|
1725
1725
|
authConfig?: {
|
|
1726
1726
|
id: string;
|
|
1727
|
-
isComposioManaged: boolean;
|
|
1728
1727
|
mode: string;
|
|
1728
|
+
isComposioManaged: boolean;
|
|
1729
1729
|
} | null | undefined;
|
|
1730
1730
|
connectedAccount?: {
|
|
1731
1731
|
status: string;
|
|
@@ -1735,8 +1735,8 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1735
1735
|
isActive: boolean;
|
|
1736
1736
|
authConfig?: {
|
|
1737
1737
|
id: string;
|
|
1738
|
-
isComposioManaged: boolean;
|
|
1739
1738
|
mode: string;
|
|
1739
|
+
isComposioManaged: boolean;
|
|
1740
1740
|
} | null | undefined;
|
|
1741
1741
|
connectedAccount?: {
|
|
1742
1742
|
status: string;
|
|
@@ -1744,16 +1744,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1744
1744
|
} | undefined;
|
|
1745
1745
|
}>>;
|
|
1746
1746
|
}, "strip", z.ZodTypeAny, {
|
|
1747
|
-
name: string;
|
|
1748
1747
|
slug: string;
|
|
1748
|
+
name: string;
|
|
1749
1749
|
isNoAuth: boolean;
|
|
1750
1750
|
logo?: string | undefined;
|
|
1751
1751
|
connection?: {
|
|
1752
1752
|
isActive: boolean;
|
|
1753
1753
|
authConfig?: {
|
|
1754
1754
|
id: string;
|
|
1755
|
-
isComposioManaged: boolean;
|
|
1756
1755
|
mode: string;
|
|
1756
|
+
isComposioManaged: boolean;
|
|
1757
1757
|
} | null | undefined;
|
|
1758
1758
|
connectedAccount?: {
|
|
1759
1759
|
status: string;
|
|
@@ -1761,16 +1761,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1761
1761
|
} | undefined;
|
|
1762
1762
|
} | undefined;
|
|
1763
1763
|
}, {
|
|
1764
|
-
name: string;
|
|
1765
1764
|
slug: string;
|
|
1765
|
+
name: string;
|
|
1766
1766
|
logo?: string | undefined;
|
|
1767
1767
|
isNoAuth?: boolean | undefined;
|
|
1768
1768
|
connection?: {
|
|
1769
1769
|
isActive: boolean;
|
|
1770
1770
|
authConfig?: {
|
|
1771
1771
|
id: string;
|
|
1772
|
-
isComposioManaged: boolean;
|
|
1773
1772
|
mode: string;
|
|
1773
|
+
isComposioManaged: boolean;
|
|
1774
1774
|
} | null | undefined;
|
|
1775
1775
|
connectedAccount?: {
|
|
1776
1776
|
status: string;
|
|
@@ -1782,16 +1782,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1782
1782
|
totalPages: z.ZodNumber;
|
|
1783
1783
|
}, "strip", z.ZodTypeAny, {
|
|
1784
1784
|
items: {
|
|
1785
|
-
name: string;
|
|
1786
1785
|
slug: string;
|
|
1786
|
+
name: string;
|
|
1787
1787
|
isNoAuth: boolean;
|
|
1788
1788
|
logo?: string | undefined;
|
|
1789
1789
|
connection?: {
|
|
1790
1790
|
isActive: boolean;
|
|
1791
1791
|
authConfig?: {
|
|
1792
1792
|
id: string;
|
|
1793
|
-
isComposioManaged: boolean;
|
|
1794
1793
|
mode: string;
|
|
1794
|
+
isComposioManaged: boolean;
|
|
1795
1795
|
} | null | undefined;
|
|
1796
1796
|
connectedAccount?: {
|
|
1797
1797
|
status: string;
|
|
@@ -1803,16 +1803,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
|
|
|
1803
1803
|
cursor?: string | undefined;
|
|
1804
1804
|
}, {
|
|
1805
1805
|
items: {
|
|
1806
|
-
name: string;
|
|
1807
1806
|
slug: string;
|
|
1807
|
+
name: string;
|
|
1808
1808
|
logo?: string | undefined;
|
|
1809
1809
|
isNoAuth?: boolean | undefined;
|
|
1810
1810
|
connection?: {
|
|
1811
1811
|
isActive: boolean;
|
|
1812
1812
|
authConfig?: {
|
|
1813
1813
|
id: string;
|
|
1814
|
-
isComposioManaged: boolean;
|
|
1815
1814
|
mode: string;
|
|
1815
|
+
isComposioManaged: boolean;
|
|
1816
1816
|
} | null | undefined;
|
|
1817
1817
|
connectedAccount?: {
|
|
1818
1818
|
status: string;
|
|
@@ -1852,15 +1852,15 @@ declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
|
1852
1852
|
search: z.ZodOptional<z.ZodString>;
|
|
1853
1853
|
}, "strip", z.ZodTypeAny, {
|
|
1854
1854
|
toolkits?: string[] | undefined;
|
|
1855
|
-
cursor?: string | undefined;
|
|
1856
1855
|
limit?: number | undefined;
|
|
1857
1856
|
search?: string | undefined;
|
|
1857
|
+
cursor?: string | undefined;
|
|
1858
1858
|
isConnected?: boolean | undefined;
|
|
1859
1859
|
}, {
|
|
1860
1860
|
toolkits?: string[] | undefined;
|
|
1861
|
-
cursor?: string | undefined;
|
|
1862
1861
|
limit?: number | undefined;
|
|
1863
1862
|
search?: string | undefined;
|
|
1863
|
+
cursor?: string | undefined;
|
|
1864
1864
|
isConnected?: boolean | undefined;
|
|
1865
1865
|
}>;
|
|
1866
1866
|
type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
|
|
@@ -1993,15 +1993,15 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
1993
1993
|
connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1994
1994
|
currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1995
1995
|
}, "strip", z.ZodTypeAny, {
|
|
1996
|
-
toolkit: string;
|
|
1997
1996
|
description: string;
|
|
1997
|
+
toolkit: string;
|
|
1998
1998
|
hasActiveConnection: boolean;
|
|
1999
1999
|
statusMessage: string;
|
|
2000
2000
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
2001
2001
|
currentUserInfo?: Record<string, unknown> | undefined;
|
|
2002
2002
|
}, {
|
|
2003
|
-
toolkit: string;
|
|
2004
2003
|
description: string;
|
|
2004
|
+
toolkit: string;
|
|
2005
2005
|
hasActiveConnection: boolean;
|
|
2006
2006
|
statusMessage: string;
|
|
2007
2007
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2071,8 +2071,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
2071
2071
|
} | undefined;
|
|
2072
2072
|
}>;
|
|
2073
2073
|
toolkitConnectionStatuses: {
|
|
2074
|
-
toolkit: string;
|
|
2075
2074
|
description: string;
|
|
2075
|
+
toolkit: string;
|
|
2076
2076
|
hasActiveConnection: boolean;
|
|
2077
2077
|
statusMessage: string;
|
|
2078
2078
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2126,8 +2126,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
|
|
|
2126
2126
|
} | undefined;
|
|
2127
2127
|
}>;
|
|
2128
2128
|
toolkitConnectionStatuses: {
|
|
2129
|
-
toolkit: string;
|
|
2130
2129
|
description: string;
|
|
2130
|
+
toolkit: string;
|
|
2131
2131
|
hasActiveConnection: boolean;
|
|
2132
2132
|
statusMessage: string;
|
|
2133
2133
|
connectionDetails?: Record<string, unknown> | undefined;
|
|
@@ -2151,12 +2151,12 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
|
|
|
2151
2151
|
error: z.ZodNullable<z.ZodString>;
|
|
2152
2152
|
logId: z.ZodString;
|
|
2153
2153
|
}, "strip", z.ZodTypeAny, {
|
|
2154
|
-
error: string | null;
|
|
2155
2154
|
data: Record<string, unknown>;
|
|
2155
|
+
error: string | null;
|
|
2156
2156
|
logId: string;
|
|
2157
2157
|
}, {
|
|
2158
|
-
error: string | null;
|
|
2159
2158
|
data: Record<string, unknown>;
|
|
2159
|
+
error: string | null;
|
|
2160
2160
|
logId: string;
|
|
2161
2161
|
}>;
|
|
2162
2162
|
type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
|
|
@@ -2230,12 +2230,12 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
|
2230
2230
|
name: z.ZodString;
|
|
2231
2231
|
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
2232
2232
|
}, "strip", z.ZodTypeAny, {
|
|
2233
|
-
value: string | number;
|
|
2234
2233
|
name: string;
|
|
2234
|
+
value: string | number;
|
|
2235
2235
|
in: "query" | "header";
|
|
2236
2236
|
}, {
|
|
2237
|
-
value: string | number;
|
|
2238
2237
|
name: string;
|
|
2238
|
+
value: string | number;
|
|
2239
2239
|
in: "query" | "header";
|
|
2240
2240
|
}>, "many">>;
|
|
2241
2241
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2244,8 +2244,8 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
|
2244
2244
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2245
2245
|
body?: unknown;
|
|
2246
2246
|
parameters?: {
|
|
2247
|
-
value: string | number;
|
|
2248
2247
|
name: string;
|
|
2248
|
+
value: string | number;
|
|
2249
2249
|
in: "query" | "header";
|
|
2250
2250
|
}[] | undefined;
|
|
2251
2251
|
}, {
|
|
@@ -2254,8 +2254,8 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
|
|
|
2254
2254
|
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
2255
2255
|
body?: unknown;
|
|
2256
2256
|
parameters?: {
|
|
2257
|
-
value: string | number;
|
|
2258
2257
|
name: string;
|
|
2258
|
+
value: string | number;
|
|
2259
2259
|
in: "query" | "header";
|
|
2260
2260
|
}[] | undefined;
|
|
2261
2261
|
}>;
|
|
@@ -2405,6 +2405,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2405
2405
|
tools?: string[] | "all" | undefined;
|
|
2406
2406
|
}>>>;
|
|
2407
2407
|
}, "strip", z.ZodTypeAny, {
|
|
2408
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2409
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2410
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2411
|
+
} | undefined;
|
|
2408
2412
|
tools?: Record<string, string[] | {
|
|
2409
2413
|
enable: string[];
|
|
2410
2414
|
} | {
|
|
@@ -2420,14 +2424,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2420
2424
|
} | {
|
|
2421
2425
|
enable: string[];
|
|
2422
2426
|
} | undefined;
|
|
2423
|
-
|
|
2424
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2425
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2426
|
-
} | undefined;
|
|
2427
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2427
2428
|
preload?: {
|
|
2428
2429
|
tools?: string[] | "all" | undefined;
|
|
2429
2430
|
} | undefined;
|
|
2430
|
-
authConfigs?: Record<string, string> | undefined;
|
|
2431
2431
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2432
2432
|
manageConnections?: boolean | {
|
|
2433
2433
|
enable?: boolean | undefined;
|
|
@@ -2452,6 +2452,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2452
2452
|
requireExplicitSelection?: boolean | undefined;
|
|
2453
2453
|
} | null | undefined;
|
|
2454
2454
|
}, {
|
|
2455
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2456
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2457
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2458
|
+
} | undefined;
|
|
2455
2459
|
tools?: Record<string, string[] | {
|
|
2456
2460
|
enable: string[];
|
|
2457
2461
|
} | {
|
|
@@ -2467,14 +2471,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2467
2471
|
} | {
|
|
2468
2472
|
enable: string[];
|
|
2469
2473
|
} | undefined;
|
|
2470
|
-
|
|
2471
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2472
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2473
|
-
} | undefined;
|
|
2474
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2474
2475
|
preload?: {
|
|
2475
2476
|
tools?: string[] | "all" | undefined;
|
|
2476
2477
|
} | undefined;
|
|
2477
|
-
authConfigs?: Record<string, string> | undefined;
|
|
2478
2478
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2479
2479
|
manageConnections?: boolean | {
|
|
2480
2480
|
enable?: boolean | undefined;
|
|
@@ -2499,6 +2499,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2499
2499
|
requireExplicitSelection?: boolean | undefined;
|
|
2500
2500
|
} | null | undefined;
|
|
2501
2501
|
}>, {
|
|
2502
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2503
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2504
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2505
|
+
} | undefined;
|
|
2502
2506
|
tools?: Record<string, string[] | {
|
|
2503
2507
|
enable: string[];
|
|
2504
2508
|
} | {
|
|
@@ -2514,14 +2518,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2514
2518
|
} | {
|
|
2515
2519
|
enable: string[];
|
|
2516
2520
|
} | undefined;
|
|
2517
|
-
|
|
2518
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2519
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2520
|
-
} | undefined;
|
|
2521
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2521
2522
|
preload?: {
|
|
2522
2523
|
tools?: string[] | "all" | undefined;
|
|
2523
2524
|
} | undefined;
|
|
2524
|
-
authConfigs?: Record<string, string> | undefined;
|
|
2525
2525
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2526
2526
|
manageConnections?: boolean | {
|
|
2527
2527
|
enable?: boolean | undefined;
|
|
@@ -2546,6 +2546,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2546
2546
|
requireExplicitSelection?: boolean | undefined;
|
|
2547
2547
|
} | null | undefined;
|
|
2548
2548
|
}, {
|
|
2549
|
+
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2550
|
+
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2551
|
+
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2552
|
+
} | undefined;
|
|
2549
2553
|
tools?: Record<string, string[] | {
|
|
2550
2554
|
enable: string[];
|
|
2551
2555
|
} | {
|
|
@@ -2561,14 +2565,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2561
2565
|
} | {
|
|
2562
2566
|
enable: string[];
|
|
2563
2567
|
} | undefined;
|
|
2564
|
-
|
|
2565
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2566
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2567
|
-
} | undefined;
|
|
2568
|
+
authConfigs?: Record<string, string> | undefined;
|
|
2568
2569
|
preload?: {
|
|
2569
2570
|
tools?: string[] | "all" | undefined;
|
|
2570
2571
|
} | undefined;
|
|
2571
|
-
authConfigs?: Record<string, string> | undefined;
|
|
2572
2572
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2573
2573
|
manageConnections?: boolean | {
|
|
2574
2574
|
enable?: boolean | undefined;
|
|
@@ -2599,11 +2599,11 @@ declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
|
|
|
2599
2599
|
sessionId: z.ZodString;
|
|
2600
2600
|
deleted: z.ZodLiteral<true>;
|
|
2601
2601
|
}, "strip", z.ZodTypeAny, {
|
|
2602
|
-
deleted: true;
|
|
2603
2602
|
sessionId: string;
|
|
2604
|
-
}, {
|
|
2605
2603
|
deleted: true;
|
|
2604
|
+
}, {
|
|
2606
2605
|
sessionId: string;
|
|
2606
|
+
deleted: true;
|
|
2607
2607
|
}>;
|
|
2608
2608
|
type ToolRouterSessionDeleteResponse = z.infer<typeof ToolRouterSessionDeleteResponseSchema>;
|
|
2609
2609
|
type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as SessionContext, a as CreateCustomToolkitParams, c as CustomToolExecuteFn, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams } from "../customTool.types-
|
|
2
|
-
import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-
|
|
1
|
+
import { S as SessionContext, a as CreateCustomToolkitParams, c as CustomToolExecuteFn, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams } from "../customTool.types-Bhom9a2R.mjs";
|
|
2
|
+
import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-zjeDpZ91.mjs";
|
|
3
3
|
export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as COMPOSIO_DIR, i as logger, u as TEMP_FILES_DIRECTORY_NAME } from "./SsrfErrors-DNJt57GL.mjs";
|
|
2
2
|
import { i as ComposioFileUploadPathNotAllowedError, t as ComposioFileNotFoundError } from "./FileModifierErrors-B8V8_3VE.mjs";
|
|
3
|
-
import { c as getRandomShortId, i as readResponseBodyWithLimit, n as assertSafeFileUploadPath, o as base64ToUint8Array, s as uint8ArrayToBase64 } from "./sensitiveFileUploadPaths-
|
|
3
|
+
import { c as getRandomShortId, i as readResponseBodyWithLimit, n as assertSafeFileUploadPath, o as base64ToUint8Array, s as uint8ArrayToBase64 } from "./sensitiveFileUploadPaths-BVEt0peg.mjs";
|
|
4
4
|
import { ssrfSafeFetch } from "./utils/ssrfGuard.node.mjs";
|
|
5
5
|
import { platform } from "#platform";
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -252,7 +252,10 @@ const readFileContent = async (filePath) => {
|
|
|
252
252
|
};
|
|
253
253
|
const readFileContentFromURL = async (path, signal) => {
|
|
254
254
|
const response = await ssrfSafeFetch(path, { signal });
|
|
255
|
-
if (!response.ok)
|
|
255
|
+
if (!response.ok) {
|
|
256
|
+
await response.body?.cancel().catch(() => void 0);
|
|
257
|
+
throw new Error(`Failed to fetch file: ${response.statusText}`);
|
|
258
|
+
}
|
|
256
259
|
const content = await readResponseBodyWithLimit(response);
|
|
257
260
|
const mimeType = response.headers.get("content-type") || "application/octet-stream";
|
|
258
261
|
const pathname = new URL(path).pathname;
|