@composio/core 0.10.0 → 0.11.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/{tool.types-CB_4JKhV.d.mts → BaseProvider-BvHvJLXc.d.mts} +24346 -24345
- package/dist/{tool.types-CwbAy9l_.d.cts → BaseProvider-CVbQxTNa.d.cts} +24346 -24345
- package/dist/{CustomTool-aber890o.d.cts → CustomTool-C-IUByoU.d.cts} +1 -1
- package/dist/{CustomTool-DJUGNOer.d.mts → CustomTool-CChQSp44.d.mts} +1 -1
- package/dist/{CustomTool-CQ_YjABZ.cjs → CustomTool-D3-NreIm.cjs} +79 -79
- package/dist/{CustomTool-D7-1S2at.mjs → CustomTool-D5s-aADw.mjs} +74 -74
- package/dist/{FileToolModifier.utils.neutral-B7P7wn-b.mjs → FileToolModifier.utils.neutral-BpSceNK8.mjs} +1 -7
- package/dist/{FileToolModifier.utils.neutral-Dfwqgimk.cjs → FileToolModifier.utils.neutral-DSBQs9-i.cjs} +2 -8
- package/dist/{Telemetry-Dm-0sewu.cjs → Telemetry-BQ_pl5AK.cjs} +34 -9
- package/dist/{Telemetry-kgWlkavX.mjs → Telemetry-DQax33Gh.mjs} +34 -9
- package/dist/{composio-DRl6WCI9.d.mts → composio-BlASKqjQ.d.mts} +161 -208
- package/dist/{composio-CSMCZZgj.d.cts → composio-pcA13w87.d.cts} +161 -208
- package/dist/{customTool.types-CMOMgxoM.d.mts → customTool.types-DLIORcYN.d.mts} +43 -81
- package/dist/{customTool.types-BzEWHa0w.d.cts → customTool.types-QtkAZQma.d.cts} +43 -81
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +3 -3
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.cjs +476 -590
- package/dist/index.d.cts +406 -13
- package/dist/index.d.mts +406 -13
- package/dist/index.mjs +473 -588
- package/dist/models/Files.node.cjs +1 -1
- package/dist/models/Files.node.mjs +1 -1
- package/dist/{types-BTOPdg4d.d.mts → types-DRG5qLxI.d.cts} +2 -2
- package/dist/{types-DE7O6Z6S.d.cts → types-J2KCXP8R.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 +38 -21
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +38 -21
- package/dist/utils/modifiers/FileToolModifier.workerd.cjs +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
- package/package.json +11 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-CVbQxTNa.cjs";
|
|
2
2
|
import z$1, { z } from "zod/v3";
|
|
3
3
|
import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
|
|
4
4
|
import { Composio } from "@composio/client";
|
|
5
5
|
import { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
6
|
-
import { ToolExecuteResponse } from "@composio/client/resources/tools";
|
|
7
6
|
|
|
8
7
|
//#region src/types/connectedAccounts.types.d.ts
|
|
9
8
|
/**
|
|
@@ -397,8 +396,8 @@ declare const CreateConnectedAccountLinkOptionsSchema: z.ZodObject<{
|
|
|
397
396
|
/**
|
|
398
397
|
* The url to redirect the user to post connecting their account.
|
|
399
398
|
*
|
|
400
|
-
* For
|
|
401
|
-
* And for failed connections you will get a query param called
|
|
399
|
+
* For successful connections, you will get a query param called status=success
|
|
400
|
+
* And for failed connections you will get a query param called status=failed
|
|
402
401
|
*
|
|
403
402
|
* @example https://your-app.com/callback
|
|
404
403
|
*
|
|
@@ -1216,6 +1215,9 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1216
1215
|
customToolkits?: CustomToolkit[] | undefined;
|
|
1217
1216
|
}>>>;
|
|
1218
1217
|
}, "strip", z$1.ZodTypeAny, {
|
|
1218
|
+
preload?: {
|
|
1219
|
+
tools?: string[] | "all" | undefined;
|
|
1220
|
+
} | undefined;
|
|
1219
1221
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1220
1222
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1221
1223
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1235,9 +1237,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1235
1237
|
} | {
|
|
1236
1238
|
enable: string[];
|
|
1237
1239
|
} | undefined;
|
|
1238
|
-
preload?: {
|
|
1239
|
-
tools?: string[] | "all" | undefined;
|
|
1240
|
-
} | undefined;
|
|
1241
1240
|
experimental?: {
|
|
1242
1241
|
assistivePrompt?: {
|
|
1243
1242
|
userTimezone?: string | undefined;
|
|
@@ -1265,6 +1264,9 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1265
1264
|
requireExplicitSelection?: boolean | undefined;
|
|
1266
1265
|
} | undefined;
|
|
1267
1266
|
}, {
|
|
1267
|
+
preload?: {
|
|
1268
|
+
tools?: string[] | "all" | undefined;
|
|
1269
|
+
} | undefined;
|
|
1268
1270
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1269
1271
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1270
1272
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1284,9 +1286,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1284
1286
|
} | {
|
|
1285
1287
|
enable: string[];
|
|
1286
1288
|
} | undefined;
|
|
1287
|
-
preload?: {
|
|
1288
|
-
tools?: string[] | "all" | undefined;
|
|
1289
|
-
} | undefined;
|
|
1290
1289
|
experimental?: {
|
|
1291
1290
|
assistivePrompt?: {
|
|
1292
1291
|
userTimezone?: string | undefined;
|
|
@@ -1314,6 +1313,9 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1314
1313
|
requireExplicitSelection?: boolean | undefined;
|
|
1315
1314
|
} | undefined;
|
|
1316
1315
|
}>, {
|
|
1316
|
+
preload?: {
|
|
1317
|
+
tools?: string[] | "all" | undefined;
|
|
1318
|
+
} | undefined;
|
|
1317
1319
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
1318
1320
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
1319
1321
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -1333,9 +1335,6 @@ declare const ToolRouterCreateSessionConfigSchema: z$1.ZodEffects<z$1.ZodObject<
|
|
|
1333
1335
|
} | {
|
|
1334
1336
|
enable: string[];
|
|
1335
1337
|
} | undefined;
|
|
1336
|
-
preload?: {
|
|
1337
|
-
tools?: string[] | "all" | undefined;
|
|
1338
|
-
} | undefined;
|
|
1339
1338
|
experimental?: {
|
|
1340
1339
|
assistivePrompt?: {
|
|
1341
1340
|
userTimezone?: string | undefined;
|
|
@@ -1401,12 +1400,12 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1401
1400
|
isComposioManaged: z$1.ZodBoolean;
|
|
1402
1401
|
}, "strip", z$1.ZodTypeAny, {
|
|
1403
1402
|
id: string;
|
|
1404
|
-
isComposioManaged: boolean;
|
|
1405
1403
|
mode: string;
|
|
1404
|
+
isComposioManaged: boolean;
|
|
1406
1405
|
}, {
|
|
1407
1406
|
id: string;
|
|
1408
|
-
isComposioManaged: boolean;
|
|
1409
1407
|
mode: string;
|
|
1408
|
+
isComposioManaged: boolean;
|
|
1410
1409
|
}>>>;
|
|
1411
1410
|
connectedAccount: z$1.ZodOptional<z$1.ZodObject<{
|
|
1412
1411
|
id: z$1.ZodString;
|
|
@@ -1422,8 +1421,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1422
1421
|
isActive: boolean;
|
|
1423
1422
|
authConfig?: {
|
|
1424
1423
|
id: string;
|
|
1425
|
-
isComposioManaged: boolean;
|
|
1426
1424
|
mode: string;
|
|
1425
|
+
isComposioManaged: boolean;
|
|
1427
1426
|
} | null | undefined;
|
|
1428
1427
|
connectedAccount?: {
|
|
1429
1428
|
status: string;
|
|
@@ -1433,8 +1432,8 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1433
1432
|
isActive: boolean;
|
|
1434
1433
|
authConfig?: {
|
|
1435
1434
|
id: string;
|
|
1436
|
-
isComposioManaged: boolean;
|
|
1437
1435
|
mode: string;
|
|
1436
|
+
isComposioManaged: boolean;
|
|
1438
1437
|
} | null | undefined;
|
|
1439
1438
|
connectedAccount?: {
|
|
1440
1439
|
status: string;
|
|
@@ -1442,16 +1441,16 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1442
1441
|
} | undefined;
|
|
1443
1442
|
}>>;
|
|
1444
1443
|
}, "strip", z$1.ZodTypeAny, {
|
|
1445
|
-
slug: string;
|
|
1446
1444
|
name: string;
|
|
1445
|
+
slug: string;
|
|
1447
1446
|
isNoAuth: boolean;
|
|
1448
1447
|
logo?: string | undefined;
|
|
1449
1448
|
connection?: {
|
|
1450
1449
|
isActive: boolean;
|
|
1451
1450
|
authConfig?: {
|
|
1452
1451
|
id: string;
|
|
1453
|
-
isComposioManaged: boolean;
|
|
1454
1452
|
mode: string;
|
|
1453
|
+
isComposioManaged: boolean;
|
|
1455
1454
|
} | null | undefined;
|
|
1456
1455
|
connectedAccount?: {
|
|
1457
1456
|
status: string;
|
|
@@ -1459,16 +1458,16 @@ declare const ToolkitConnectionStateSchema: z$1.ZodObject<{
|
|
|
1459
1458
|
} | undefined;
|
|
1460
1459
|
} | undefined;
|
|
1461
1460
|
}, {
|
|
1462
|
-
slug: string;
|
|
1463
1461
|
name: string;
|
|
1462
|
+
slug: string;
|
|
1464
1463
|
logo?: string | undefined;
|
|
1465
1464
|
isNoAuth?: boolean | undefined;
|
|
1466
1465
|
connection?: {
|
|
1467
1466
|
isActive: boolean;
|
|
1468
1467
|
authConfig?: {
|
|
1469
1468
|
id: string;
|
|
1470
|
-
isComposioManaged: boolean;
|
|
1471
1469
|
mode: string;
|
|
1470
|
+
isComposioManaged: boolean;
|
|
1472
1471
|
} | null | undefined;
|
|
1473
1472
|
connectedAccount?: {
|
|
1474
1473
|
status: string;
|
|
@@ -1490,12 +1489,12 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1490
1489
|
isComposioManaged: z$1.ZodBoolean;
|
|
1491
1490
|
}, "strip", z$1.ZodTypeAny, {
|
|
1492
1491
|
id: string;
|
|
1493
|
-
isComposioManaged: boolean;
|
|
1494
1492
|
mode: string;
|
|
1493
|
+
isComposioManaged: boolean;
|
|
1495
1494
|
}, {
|
|
1496
1495
|
id: string;
|
|
1497
|
-
isComposioManaged: boolean;
|
|
1498
1496
|
mode: string;
|
|
1497
|
+
isComposioManaged: boolean;
|
|
1499
1498
|
}>>>;
|
|
1500
1499
|
connectedAccount: z$1.ZodOptional<z$1.ZodObject<{
|
|
1501
1500
|
id: z$1.ZodString;
|
|
@@ -1511,8 +1510,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1511
1510
|
isActive: boolean;
|
|
1512
1511
|
authConfig?: {
|
|
1513
1512
|
id: string;
|
|
1514
|
-
isComposioManaged: boolean;
|
|
1515
1513
|
mode: string;
|
|
1514
|
+
isComposioManaged: boolean;
|
|
1516
1515
|
} | null | undefined;
|
|
1517
1516
|
connectedAccount?: {
|
|
1518
1517
|
status: string;
|
|
@@ -1522,8 +1521,8 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1522
1521
|
isActive: boolean;
|
|
1523
1522
|
authConfig?: {
|
|
1524
1523
|
id: string;
|
|
1525
|
-
isComposioManaged: boolean;
|
|
1526
1524
|
mode: string;
|
|
1525
|
+
isComposioManaged: boolean;
|
|
1527
1526
|
} | null | undefined;
|
|
1528
1527
|
connectedAccount?: {
|
|
1529
1528
|
status: string;
|
|
@@ -1531,16 +1530,16 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1531
1530
|
} | undefined;
|
|
1532
1531
|
}>>;
|
|
1533
1532
|
}, "strip", z$1.ZodTypeAny, {
|
|
1534
|
-
slug: string;
|
|
1535
1533
|
name: string;
|
|
1534
|
+
slug: string;
|
|
1536
1535
|
isNoAuth: boolean;
|
|
1537
1536
|
logo?: string | undefined;
|
|
1538
1537
|
connection?: {
|
|
1539
1538
|
isActive: boolean;
|
|
1540
1539
|
authConfig?: {
|
|
1541
1540
|
id: string;
|
|
1542
|
-
isComposioManaged: boolean;
|
|
1543
1541
|
mode: string;
|
|
1542
|
+
isComposioManaged: boolean;
|
|
1544
1543
|
} | null | undefined;
|
|
1545
1544
|
connectedAccount?: {
|
|
1546
1545
|
status: string;
|
|
@@ -1548,16 +1547,16 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1548
1547
|
} | undefined;
|
|
1549
1548
|
} | undefined;
|
|
1550
1549
|
}, {
|
|
1551
|
-
slug: string;
|
|
1552
1550
|
name: string;
|
|
1551
|
+
slug: string;
|
|
1553
1552
|
logo?: string | undefined;
|
|
1554
1553
|
isNoAuth?: boolean | undefined;
|
|
1555
1554
|
connection?: {
|
|
1556
1555
|
isActive: boolean;
|
|
1557
1556
|
authConfig?: {
|
|
1558
1557
|
id: string;
|
|
1559
|
-
isComposioManaged: boolean;
|
|
1560
1558
|
mode: string;
|
|
1559
|
+
isComposioManaged: boolean;
|
|
1561
1560
|
} | null | undefined;
|
|
1562
1561
|
connectedAccount?: {
|
|
1563
1562
|
status: string;
|
|
@@ -1569,16 +1568,16 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1569
1568
|
totalPages: z$1.ZodNumber;
|
|
1570
1569
|
}, "strip", z$1.ZodTypeAny, {
|
|
1571
1570
|
items: {
|
|
1572
|
-
slug: string;
|
|
1573
1571
|
name: string;
|
|
1572
|
+
slug: string;
|
|
1574
1573
|
isNoAuth: boolean;
|
|
1575
1574
|
logo?: string | undefined;
|
|
1576
1575
|
connection?: {
|
|
1577
1576
|
isActive: boolean;
|
|
1578
1577
|
authConfig?: {
|
|
1579
1578
|
id: string;
|
|
1580
|
-
isComposioManaged: boolean;
|
|
1581
1579
|
mode: string;
|
|
1580
|
+
isComposioManaged: boolean;
|
|
1582
1581
|
} | null | undefined;
|
|
1583
1582
|
connectedAccount?: {
|
|
1584
1583
|
status: string;
|
|
@@ -1590,16 +1589,16 @@ declare const ToolkitConnectionsDetailsSchema: z$1.ZodObject<{
|
|
|
1590
1589
|
cursor?: string | undefined;
|
|
1591
1590
|
}, {
|
|
1592
1591
|
items: {
|
|
1593
|
-
slug: string;
|
|
1594
1592
|
name: string;
|
|
1593
|
+
slug: string;
|
|
1595
1594
|
logo?: string | undefined;
|
|
1596
1595
|
isNoAuth?: boolean | undefined;
|
|
1597
1596
|
connection?: {
|
|
1598
1597
|
isActive: boolean;
|
|
1599
1598
|
authConfig?: {
|
|
1600
1599
|
id: string;
|
|
1601
|
-
isComposioManaged: boolean;
|
|
1602
1600
|
mode: string;
|
|
1601
|
+
isComposioManaged: boolean;
|
|
1603
1602
|
} | null | undefined;
|
|
1604
1603
|
connectedAccount?: {
|
|
1605
1604
|
status: string;
|
|
@@ -1801,12 +1800,12 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1801
1800
|
instructions: z$1.ZodString;
|
|
1802
1801
|
}, "strip", z$1.ZodTypeAny, {
|
|
1803
1802
|
id: string;
|
|
1804
|
-
generateId: boolean;
|
|
1805
1803
|
instructions: string;
|
|
1804
|
+
generateId: boolean;
|
|
1806
1805
|
}, {
|
|
1807
1806
|
id: string;
|
|
1808
|
-
generateId: boolean;
|
|
1809
1807
|
instructions: string;
|
|
1808
|
+
generateId: boolean;
|
|
1810
1809
|
}>;
|
|
1811
1810
|
timeInfo: z$1.ZodObject<{
|
|
1812
1811
|
currentTimeUtc: z$1.ZodString;
|
|
@@ -1868,8 +1867,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1868
1867
|
nextStepsGuidance: string[];
|
|
1869
1868
|
session: {
|
|
1870
1869
|
id: string;
|
|
1871
|
-
generateId: boolean;
|
|
1872
1870
|
instructions: string;
|
|
1871
|
+
generateId: boolean;
|
|
1873
1872
|
};
|
|
1874
1873
|
timeInfo: {
|
|
1875
1874
|
message: string;
|
|
@@ -1923,8 +1922,8 @@ declare const ToolRouterSessionSearchResponseSchema: z$1.ZodObject<{
|
|
|
1923
1922
|
nextStepsGuidance: string[];
|
|
1924
1923
|
session: {
|
|
1925
1924
|
id: string;
|
|
1926
|
-
generateId: boolean;
|
|
1927
1925
|
instructions: string;
|
|
1926
|
+
generateId: boolean;
|
|
1928
1927
|
};
|
|
1929
1928
|
timeInfo: {
|
|
1930
1929
|
message: string;
|
|
@@ -2174,6 +2173,9 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2174
2173
|
tools?: string[] | "all" | undefined;
|
|
2175
2174
|
}>>>;
|
|
2176
2175
|
}, "strip", z$1.ZodTypeAny, {
|
|
2176
|
+
preload?: {
|
|
2177
|
+
tools?: string[] | "all" | undefined;
|
|
2178
|
+
} | undefined;
|
|
2177
2179
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2178
2180
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2179
2181
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -2193,9 +2195,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2193
2195
|
} | {
|
|
2194
2196
|
enable: string[];
|
|
2195
2197
|
} | undefined;
|
|
2196
|
-
preload?: {
|
|
2197
|
-
tools?: string[] | "all" | undefined;
|
|
2198
|
-
} | undefined;
|
|
2199
2198
|
authConfigs?: Record<string, string> | undefined;
|
|
2200
2199
|
connectedAccounts?: Record<string, string[]> | undefined;
|
|
2201
2200
|
manageConnections?: boolean | {
|
|
@@ -2215,6 +2214,9 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2215
2214
|
requireExplicitSelection?: boolean | undefined;
|
|
2216
2215
|
} | null | undefined;
|
|
2217
2216
|
}, {
|
|
2217
|
+
preload?: {
|
|
2218
|
+
tools?: string[] | "all" | undefined;
|
|
2219
|
+
} | undefined;
|
|
2218
2220
|
tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
|
|
2219
2221
|
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
2220
2222
|
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
@@ -2234,9 +2236,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z$1.ZodObject<{
|
|
|
2234
2236
|
} | {
|
|
2235
2237
|
enable: string[];
|
|
2236
2238
|
} | undefined;
|
|
2237
|
-
preload?: {
|
|
2238
|
-
tools?: string[] | "all" | undefined;
|
|
2239
|
-
} | undefined;
|
|
2240
2239
|
authConfigs?: Record<string, string> | undefined;
|
|
2241
2240
|
connectedAccounts?: Record<string, string | string[]> | undefined;
|
|
2242
2241
|
manageConnections?: boolean | {
|
|
@@ -2290,43 +2289,6 @@ interface Session<TToolCollection, TTool, TProvider extends BaseComposioProvider
|
|
|
2290
2289
|
}
|
|
2291
2290
|
//#endregion
|
|
2292
2291
|
//#region src/types/customTool.types.d.ts
|
|
2293
|
-
type BaseCustomToolOptions<T extends z.ZodType> = {
|
|
2294
|
-
name: string;
|
|
2295
|
-
description?: string;
|
|
2296
|
-
slug: string;
|
|
2297
|
-
inputParams: T;
|
|
2298
|
-
};
|
|
2299
|
-
type ToolkitBasedExecute<T extends z.ZodType> = {
|
|
2300
|
-
execute: (input: z.infer<T>, connectionConfig: ConnectionData | null, executeToolRequest: (data: ToolProxyParams) => Promise<ToolExecuteResponse>) => Promise<ToolExecuteResponse>;
|
|
2301
|
-
toolkitSlug: string;
|
|
2302
|
-
};
|
|
2303
|
-
type StandaloneExecute<T extends z.ZodType> = {
|
|
2304
|
-
execute: (input: z.infer<T>) => Promise<ToolExecuteResponse>;
|
|
2305
|
-
toolkitSlug?: never;
|
|
2306
|
-
};
|
|
2307
|
-
type CustomToolOptions<T extends z.ZodType> = BaseCustomToolOptions<T> & (ToolkitBasedExecute<T> | StandaloneExecute<T>);
|
|
2308
|
-
type CustomToolRegistry = Map<string, {
|
|
2309
|
-
options: CustomToolOptions<CustomToolInputParameter>;
|
|
2310
|
-
schema: Tool;
|
|
2311
|
-
}>;
|
|
2312
|
-
type InputParamsSchema = {
|
|
2313
|
-
definitions: {
|
|
2314
|
-
input: {
|
|
2315
|
-
type: string;
|
|
2316
|
-
properties: Record<string, unknown>;
|
|
2317
|
-
required?: string[];
|
|
2318
|
-
};
|
|
2319
|
-
};
|
|
2320
|
-
};
|
|
2321
|
-
type CustomToolInputParameter = z.ZodType;
|
|
2322
|
-
interface CustomToolRegistryItem {
|
|
2323
|
-
options: CustomToolOptions<CustomToolInputParameter>;
|
|
2324
|
-
schema: Tool;
|
|
2325
|
-
}
|
|
2326
|
-
interface ExecuteMetadata {
|
|
2327
|
-
userId: string;
|
|
2328
|
-
connectedAccountId?: string;
|
|
2329
|
-
}
|
|
2330
2292
|
/**
|
|
2331
2293
|
* Session context injected into custom tool execute functions at runtime.
|
|
2332
2294
|
* Provides identity context and methods to call other tools or proxy API requests.
|
|
@@ -2510,4 +2472,4 @@ type CustomToolResponse = SessionCreateResponse.Experimental.CustomTool;
|
|
|
2510
2472
|
/** Custom toolkit as returned in the session create response (has prefixed slugs + original_slugs). */
|
|
2511
2473
|
type CustomToolkitResponse = SessionCreateResponse.Experimental.CustomToolkit;
|
|
2512
2474
|
//#endregion
|
|
2513
|
-
export {
|
|
2475
|
+
export { ToolRouterSessionWarning as $, ConnectedAccountStatus as $t, ToolRouterAuthorizeFn as A, ToolRouterSessionFilesMountUploadOptions as At, ToolRouterManageConnectionsConfigSchema as B, ConnectedAccountExperimental as Bt, SandboxSize as C, RemoteFileDataSchema as Ct, SessionPreset as D, ToolRouterSessionFilesMountDownloadOptionsSchema as Dt, SessionExperimental as E, ToolRouterSessionFilesMountDownloadOptions as Et, ToolRouterConfigToolsSchema as F, ConnectedAccountAclConfigResponse as Ft, ToolRouterSessionMetadata as G, ConnectedAccountListParamsSchema as Gt, ToolRouterSessionExecuteOptions as H, ConnectedAccountExperimentalResponseSchema as Ht, ToolRouterCreateSessionConfig as I, ConnectedAccountAclConfigResponseSchema as It, ToolRouterSessionProxyExecuteResponse as J, ConnectedAccountListResponseSchema as Jt, ToolRouterSessionPreloadConfig as K, ConnectedAccountListResponse as Kt, ToolRouterCreateSessionConfigSchema as L, ConnectedAccountAclConfigSchema as Lt, ToolRouterConfigTags as M, ConnectionRequest as Mt, ToolRouterConfigTagsSchema as N, ConnectionRequestState as Nt, SessionProxyExecuteParams as O, ToolRouterSessionFilesMountListOptions as Ot, ToolRouterConfigTools as P, ConnectedAccountAclConfig as Pt, ToolRouterSessionUpdateFn as Q, ConnectedAccountRetrieveResponseSchema as Qt, ToolRouterMCPServerConfig as R, ConnectedAccountAuthConfig as Rt, MCPServerTypeSchema as S, RemoteFileData as St, Session as T, ToolRouterSessionFilesMountDeleteOptionsSchema as Tt, ToolRouterSessionExecuteResponse as U, ConnectedAccountExperimentalSchema as Ut, ToolRouterSessionExecuteFn as V, ConnectedAccountExperimentalResponse as Vt, ToolRouterSessionExecuteResponseSchema as W, ConnectedAccountListParams as Wt, ToolRouterSessionSearchResponse as X, ConnectedAccountRefreshOptionsSchema as Xt, ToolRouterSessionSearchFn as Y, ConnectedAccountRefreshOptions as Yt, ToolRouterSessionSearchResponseSchema as Z, ConnectedAccountRetrieveResponse as Zt, InlineCustomToolsWirePayload as _, UpdateConnectedAccountAclParams as _n, RemoteFile as _t, CustomTool as a, ConnectedAccountTypes as an, ToolRouterToolkitsOptions as at, SessionContext as b, UpdateConnectedAccountParamsSchema as bn, FileListResponse as bt, CustomToolResponse as c, CreateConnectedAccountLinkResponse as cn, ToolRouterToolsFn as ct, CustomToolkit as d, CreateConnectedAccountOptionsSchema as dn, ToolRouterUpdateSessionConfig as dt, ConnectedAccountStatusEnum as en, ToolRouterTagsEnableDisableSchema as et, CustomToolkitDefinition as f, CreateConnectedAccountParams as fn, ToolRouterUpdateSessionConfigSchema as ft, CustomToolsMapEntry as g, DefaultCreateConnectedAccountParamsSchema as gn, ToolkitConnectionsDetailsSchema as gt, CustomToolsMap as h, CreateConnectedAccountResponseSchema as hn, ToolkitConnectionsDetails as ht, CreateCustomToolkitParams as i, ConnectedAccountTypeSchema as in, ToolRouterToolkitsFn as it, ToolRouterConfigManageConnectionsSchema as j, ToolRouterSessionFilesMountUploadOptionsSchema as jt, SessionProxyExecuteParamsSchema as k, ToolRouterSessionFilesMountListOptionsSchema as kt, CustomToolSlugSchema as l, CreateConnectedAccountLinkResponseSchema as ln, ToolRouterToolsParam as lt, CustomToolkitWireDefinition as m, CreateConnectedAccountResponse as mn, ToolkitConnectionStateSchema as mt, CreateCustomToolParams as n, ConnectedAccountStatuses as nn, ToolRouterToolkitsDisabledConfigSchema as nt, CustomToolDefinition as o, CreateConnectedAccountLinkOptions as on, ToolRouterToolkitsOptionsSchema as ot, CustomToolkitResponse as p, CreateConnectedAccountParamsSchema as pn, ToolkitConnectionState as pt, ToolRouterSessionProxyExecuteFn as q, ConnectedAccountListResponseItem as qt, CreateCustomToolkitBaseSchema as r, ConnectedAccountType as rn, ToolRouterToolkitsEnabledConfigSchema as rt, CustomToolExecuteFn as s, CreateConnectedAccountLinkOptionsSchema as sn, ToolRouterToolkitsParamSchema as st, CreateCustomToolBaseSchema as t, ConnectedAccountStatusSchema as tn, ToolRouterTagsParamSchema as tt, CustomToolWireDefinition as u, CreateConnectedAccountOptions as un, ToolRouterToolsParamSchema as ut, RegisteredCustomTool as v, UpdateConnectedAccountAclParamsSchema as vn, FileDeleteResponse as vt, SandboxSizeSchema as w, ToolRouterSessionFilesMountDeleteOptions as wt, MCPServerType as x, FileListResponseSchema as xt, RegisteredCustomToolkit as y, UpdateConnectedAccountParams as yn, FileDeleteResponseSchema as yt, ToolRouterMCPServerConfigSchema as z, ConnectedAccountAuthConfigSchema as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require('../FileModifierErrors-BYJBHiay.cjs');
|
|
2
|
-
const require_CustomTool = require('../CustomTool-
|
|
2
|
+
const require_CustomTool = require('../CustomTool-D3-NreIm.cjs');
|
|
3
3
|
|
|
4
4
|
exports.experimental_createTool = require_CustomTool.createCustomTool;
|
|
5
5
|
exports.experimental_createToolkit = require_CustomTool.createCustomToolkit;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-
|
|
1
|
+
import { a as CustomTool, b as SessionContext, d as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-QtkAZQma.cjs";
|
|
2
|
+
import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-C-IUByoU.cjs";
|
|
3
3
|
export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import {
|
|
3
|
-
import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-
|
|
1
|
+
import "../BaseProvider-BvHvJLXc.mjs";
|
|
2
|
+
import { a as CustomTool, b as SessionContext, d as CustomToolkit, i as CreateCustomToolkitParams, n as CreateCustomToolParams, s as CustomToolExecuteFn } from "../customTool.types-DLIORcYN.mjs";
|
|
3
|
+
import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-CChQSp44.mjs";
|
|
4
4
|
export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-CWQeghP5.mjs";
|
|
2
2
|
import "../FileModifierErrors-C7z16Dfi.mjs";
|
|
3
|
-
import { a as createCustomToolkit, i as createCustomTool } from "../CustomTool-
|
|
3
|
+
import { a as createCustomToolkit, i as createCustomTool } from "../CustomTool-D5s-aADw.mjs";
|
|
4
4
|
|
|
5
5
|
export { createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
|