@composio/core 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{BaseProvider-lCxnjFKQ.d.mts → BaseProvider-Dc5yKZhk.d.mts} +81 -82
  2. package/dist/{CustomTool-CmokRT9q.d.mts → CustomTool-4nVuwLzO.d.mts} +1 -2
  3. package/dist/{CustomTool-C_5NvBsX.mjs → CustomTool-l-j5HtEf.mjs} +1 -1
  4. package/dist/FileModifierErrors-B8V8_3VE.mjs +97 -0
  5. package/dist/{SsrfErrors-BQRozkeU.mjs → SsrfErrors-DNJt57GL.mjs} +5 -98
  6. package/dist/{Telemetry-llfvticE.mjs → Telemetry-CF0rNHu2.mjs} +2 -2
  7. package/dist/{cancellation-W65QRyj2.mjs → cancellation-BbJ-UQ__.mjs} +2 -2
  8. package/dist/{composio-6C8kHtqc.d.mts → composio-ChU3eD9F.d.mts} +260 -257
  9. package/dist/{customTool.types-kFhNYuzh.d.mts → customTool.types-CX2-LbfI.d.mts} +142 -109
  10. package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +2 -0
  11. package/dist/{errors-B165yJUQ.mjs → errors-BcEUHZbq.mjs} +2 -1
  12. package/dist/experimental/index.d.mts +2 -2
  13. package/dist/experimental/index.mjs +1 -1
  14. package/dist/{fileUtils.node-iPFi2o4i.mjs → fileUtils.node-DOkW4PBg.mjs} +5 -153
  15. package/dist/index.d.mts +1585 -753
  16. package/dist/index.mjs +14 -10
  17. package/dist/models/Files.node.d.mts +2 -11
  18. package/dist/models/Files.node.mjs +2 -2
  19. package/dist/models/Files.workerd.d.mts +0 -1
  20. package/dist/platform/node.d.mts +0 -1
  21. package/dist/platform/workerd.d.mts +0 -1
  22. package/dist/platform/workerd.mjs +27 -3
  23. package/dist/{sensitiveFileUploadPaths-B1OLsd8F.mjs → sensitiveFileUploadPaths-C43dHP7S.mjs} +52 -2
  24. package/dist/{types-yCrveqAj.d.mts → types-D5N60gUD.d.mts} +2 -3
  25. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -2
  26. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -2
  27. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -2
  28. package/dist/utils/modifiers/FileToolModifier.node.mjs +5 -4
  29. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -2
  30. package/dist/utils/ssrfGuard.node.d.mts +22 -0
  31. package/dist/utils/ssrfGuard.node.mjs +152 -0
  32. package/dist/utils/ssrfGuard.workerd.d.mts +9 -0
  33. package/dist/utils/ssrfGuard.workerd.mjs +17 -0
  34. package/package.json +14 -9
  35. package/src/errors/SsrfErrors.ts +4 -3
  36. package/src/models/ToolRouterSessionFileMount.ts +7 -3
  37. package/src/platform/workerd.ts +30 -3
  38. package/src/utils/fileUtils.node.ts +2 -2
  39. package/src/utils/readResponseBody.ts +63 -0
  40. package/src/utils/ssrfGuard.node.ts +6 -6
  41. package/src/utils/ssrfGuard.workerd.ts +19 -0
@@ -1,10 +1,9 @@
1
- import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-lCxnjFKQ.mjs";
1
+ import { dt as ConnectionDataSchema, n as BaseComposioProvider, rn as SessionMetaToolOptions } from "./BaseProvider-Dc5yKZhk.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";
5
5
  import { ConnectedAccountUpdateStatusParams as UpdateConnectedAccountParams } from "@composio/client/resources/connected-accounts";
6
6
  import { SessionCreateParams, SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
7
-
8
7
  //#region src/types/connectedAccounts.types.d.ts
9
8
  /**
10
9
  * Connected Account create parameters
@@ -212,16 +211,17 @@ declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
212
211
  redirectUrl: z$1.ZodNullable<z$1.ZodString>;
213
212
  }, "strip", z$1.ZodTypeAny, {
214
213
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
215
- redirectUrl: string | null;
216
214
  id: string;
215
+ redirectUrl: string | null;
217
216
  }, {
218
217
  status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED";
219
- redirectUrl: string | null;
220
218
  id: string;
219
+ redirectUrl: string | null;
221
220
  }>;
222
221
  type CreateConnectedAccountResponse = z$1.infer<typeof CreateConnectedAccountResponseSchema>;
223
222
  declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
224
- id: z$1.ZodString; /** @deprecated Use `connectedAccount.state.authScheme` instead. */
223
+ id: z$1.ZodString;
224
+ /** @deprecated Use `connectedAccount.state.authScheme` instead. */
225
225
  authScheme: z$1.ZodOptional<z$1.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
226
226
  isComposioManaged: z$1.ZodBoolean;
227
227
  isDisabled: z$1.ZodBoolean;
@@ -241,8 +241,10 @@ declare const ConnectedAccountRetrieveResponseSchema: z$1.ZodType<{
241
241
  id: string;
242
242
  authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
243
243
  wordId?: string | null;
244
- alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
245
- data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
244
+ alias?: string | null;
245
+ /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
246
+ data?: Record<string, unknown>;
247
+ /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
246
248
  params?: Record<string, unknown>;
247
249
  status: ConnectedAccountStatusEnum;
248
250
  statusReason: string | null;
@@ -277,19 +279,19 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
277
279
  */
278
280
  accountType: z$1.ZodOptional<z$1.ZodEnum<["PRIVATE", "SHARED", "ALL"]>>;
279
281
  }, "strip", z$1.ZodTypeAny, {
280
- limit?: number | null | undefined;
281
- authConfigIds?: string[] | null | undefined;
282
282
  userIds?: string[] | null | undefined;
283
+ authConfigIds?: string[] | null | undefined;
283
284
  cursor?: string | null | undefined;
285
+ limit?: number | null | undefined;
284
286
  accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
285
287
  orderBy?: "created_at" | "updated_at" | undefined;
286
288
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
287
289
  toolkitSlugs?: string[] | null | undefined;
288
290
  }, {
289
- limit?: number | null | undefined;
290
- authConfigIds?: string[] | null | undefined;
291
291
  userIds?: string[] | null | undefined;
292
+ authConfigIds?: string[] | null | undefined;
292
293
  cursor?: string | null | undefined;
294
+ limit?: number | null | undefined;
293
295
  accountType?: "PRIVATE" | "SHARED" | "ALL" | undefined;
294
296
  orderBy?: "created_at" | "updated_at" | undefined;
295
297
  statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE" | "REVOKED")[] | null | undefined;
@@ -301,8 +303,10 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
301
303
  id: string;
302
304
  authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
303
305
  wordId?: string | null;
304
- alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
305
- data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
306
+ alias?: string | null;
307
+ /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
308
+ data?: Record<string, unknown>;
309
+ /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
306
310
  params?: Record<string, unknown>;
307
311
  status: ConnectedAccountStatusEnum;
308
312
  statusReason: string | null;
@@ -319,8 +323,10 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
319
323
  id: string;
320
324
  authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
321
325
  wordId?: string | null;
322
- alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
323
- data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
326
+ alias?: string | null;
327
+ /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
328
+ data?: Record<string, unknown>;
329
+ /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
324
330
  params?: Record<string, unknown>;
325
331
  status: ConnectedAccountStatusEnum;
326
332
  statusReason: string | null;
@@ -341,8 +347,10 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
341
347
  id: string;
342
348
  authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
343
349
  wordId?: string | null;
344
- alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
345
- data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
350
+ alias?: string | null;
351
+ /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
352
+ data?: Record<string, unknown>;
353
+ /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
346
354
  params?: Record<string, unknown>;
347
355
  status: ConnectedAccountStatusEnum;
348
356
  statusReason: string | null;
@@ -363,8 +371,10 @@ declare const ConnectedAccountListResponseSchema: z$1.ZodObject<{
363
371
  id: string;
364
372
  authConfig: z$1.infer<typeof ConnectedAccountAuthConfigSchema>;
365
373
  wordId?: string | null;
366
- alias?: string | null; /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
367
- data?: Record<string, unknown>; /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
374
+ alias?: string | null;
375
+ /** @deprecated Use `connectedAccount.state` instead — `data` is a legacy raw credential field. */
376
+ data?: Record<string, unknown>;
377
+ /** @deprecated Use `connectedAccount.state` instead — `params` is a legacy raw credential field. */
368
378
  params?: Record<string, unknown>;
369
379
  status: ConnectedAccountStatusEnum;
370
380
  statusReason: string | null;
@@ -590,18 +600,20 @@ type ComposioRequestOptions = {
590
600
  //#region src/types/ToolRouterSessionFilesMount.types.d.ts
591
601
  declare const ToolRouterSessionFilesMountListOptionsSchema: z.ZodObject<{
592
602
  path: z.ZodOptional<z.ZodString>;
593
- mountId: z.ZodDefault<z.ZodString>; /** Pagination cursor from the previous response nextCursor field */
594
- cursor: z.ZodOptional<z.ZodString>; /** Maximum number of files to return per page (1-500) */
603
+ mountId: z.ZodDefault<z.ZodString>;
604
+ /** Pagination cursor from the previous response nextCursor field */
605
+ cursor: z.ZodOptional<z.ZodString>;
606
+ /** Maximum number of files to return per page (1-500) */
595
607
  limit: z.ZodOptional<z.ZodNumber>;
596
608
  }, "strip", z.ZodTypeAny, {
597
609
  mountId: string;
598
610
  path?: string | undefined;
599
- limit?: number | undefined;
600
611
  cursor?: string | undefined;
612
+ limit?: number | undefined;
601
613
  }, {
602
614
  path?: string | undefined;
603
- limit?: number | undefined;
604
615
  cursor?: string | undefined;
616
+ limit?: number | undefined;
605
617
  mountId?: string | undefined;
606
618
  }>;
607
619
  type ToolRouterSessionFilesMountListOptions = z.input<typeof ToolRouterSessionFilesMountListOptionsSchema>;
@@ -658,8 +670,10 @@ declare const FileListResponseSchema: z.ZodEffects<z.ZodObject<{
658
670
  }>;
659
671
  type FileListResponse = z.infer<typeof FileListResponseSchema>;
660
672
  declare const ToolRouterSessionFilesMountUploadOptionsSchema: z.ZodObject<{
661
- /** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */remotePath: z.ZodOptional<z.ZodString>;
662
- mountId: z.ZodDefault<z.ZodString>; /** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
673
+ /** Remote path/filename on the mount. When passing a buffer, either mimetype or remotePath is required. */
674
+ remotePath: z.ZodOptional<z.ZodString>;
675
+ mountId: z.ZodDefault<z.ZodString>;
676
+ /** MIME type. When passing a buffer, either mimetype or remotePath is required. Ignored when passing File (uses file.type). */
663
677
  mimetype: z.ZodOptional<z.ZodString>;
664
678
  }, "strip", z.ZodTypeAny, {
665
679
  mountId: string;
@@ -854,6 +868,8 @@ declare class ToolRouterSessionFilesMount {
854
868
  *
855
869
  * Accepts a file path (local or URL), a native File object, or a raw buffer.
856
870
  * The file is stored in the virtual filesystem associated with the tool router session.
871
+ * URL inputs require a Node.js or Bun runtime so the destination can be DNS-validated;
872
+ * edge runtimes must fetch the file themselves and pass a File or ArrayBuffer.
857
873
  *
858
874
  * @param input - File path (string), native File, or raw buffer (ArrayBuffer | Uint8Array).
859
875
  * @param options - Optional configuration. When passing a buffer, remotePath is required.
@@ -1279,10 +1295,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1279
1295
  customToolkits?: CustomToolkit[] | undefined;
1280
1296
  }>>>;
1281
1297
  }, "strip", z.ZodTypeAny, {
1282
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1283
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1284
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1285
- } | undefined;
1286
1298
  tools?: Record<string, string[] | {
1287
1299
  enable: string[];
1288
1300
  } | {
@@ -1298,6 +1310,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1298
1310
  } | {
1299
1311
  enable: string[];
1300
1312
  } | undefined;
1313
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1314
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1315
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1316
+ } | undefined;
1301
1317
  preload?: {
1302
1318
  tools?: string[] | "all" | undefined;
1303
1319
  } | undefined;
@@ -1335,10 +1351,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1335
1351
  customToolkits?: CustomToolkit[] | undefined;
1336
1352
  } | undefined;
1337
1353
  }, {
1338
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1339
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1340
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1341
- } | undefined;
1342
1354
  tools?: Record<string, string[] | {
1343
1355
  enable: string[];
1344
1356
  } | {
@@ -1354,6 +1366,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1354
1366
  } | {
1355
1367
  enable: string[];
1356
1368
  } | undefined;
1369
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1370
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1371
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1372
+ } | undefined;
1357
1373
  preload?: {
1358
1374
  tools?: string[] | "all" | undefined;
1359
1375
  } | undefined;
@@ -1391,10 +1407,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1391
1407
  customToolkits?: CustomToolkit[] | undefined;
1392
1408
  } | undefined;
1393
1409
  }>, {
1394
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1395
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1396
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1397
- } | undefined;
1398
1410
  tools?: Record<string, string[] | {
1399
1411
  enable: string[];
1400
1412
  } | {
@@ -1410,6 +1422,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1410
1422
  } | {
1411
1423
  enable: string[];
1412
1424
  } | undefined;
1425
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1426
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1427
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1428
+ } | undefined;
1413
1429
  preload?: {
1414
1430
  tools?: string[] | "all" | undefined;
1415
1431
  } | undefined;
@@ -1447,10 +1463,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1447
1463
  customToolkits?: CustomToolkit[] | undefined;
1448
1464
  } | undefined;
1449
1465
  }, {
1450
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1451
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1452
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1453
- } | undefined;
1454
1466
  tools?: Record<string, string[] | {
1455
1467
  enable: string[];
1456
1468
  } | {
@@ -1466,6 +1478,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1466
1478
  } | {
1467
1479
  enable: string[];
1468
1480
  } | undefined;
1481
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1482
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1483
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1484
+ } | undefined;
1469
1485
  preload?: {
1470
1486
  tools?: string[] | "all" | undefined;
1471
1487
  } | undefined;
@@ -1503,10 +1519,6 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1503
1519
  customToolkits?: CustomToolkit[] | undefined;
1504
1520
  } | undefined;
1505
1521
  }>, {
1506
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1507
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1508
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1509
- } | undefined;
1510
1522
  tools?: Record<string, string[] | {
1511
1523
  enable: string[];
1512
1524
  } | {
@@ -1522,6 +1534,10 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
1522
1534
  } | {
1523
1535
  enable: string[];
1524
1536
  } | undefined;
1537
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
1538
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1539
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
1540
+ } | undefined;
1525
1541
  preload?: {
1526
1542
  tools?: string[] | "all" | undefined;
1527
1543
  } | undefined;
@@ -1598,12 +1614,12 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
1598
1614
  isComposioManaged: z.ZodBoolean;
1599
1615
  }, "strip", z.ZodTypeAny, {
1600
1616
  id: string;
1601
- mode: string;
1602
1617
  isComposioManaged: boolean;
1618
+ mode: string;
1603
1619
  }, {
1604
1620
  id: string;
1605
- mode: string;
1606
1621
  isComposioManaged: boolean;
1622
+ mode: string;
1607
1623
  }>>>;
1608
1624
  connectedAccount: z.ZodOptional<z.ZodObject<{
1609
1625
  id: z.ZodString;
@@ -1619,8 +1635,8 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
1619
1635
  isActive: boolean;
1620
1636
  authConfig?: {
1621
1637
  id: string;
1622
- mode: string;
1623
1638
  isComposioManaged: boolean;
1639
+ mode: string;
1624
1640
  } | null | undefined;
1625
1641
  connectedAccount?: {
1626
1642
  status: string;
@@ -1630,8 +1646,8 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
1630
1646
  isActive: boolean;
1631
1647
  authConfig?: {
1632
1648
  id: string;
1633
- mode: string;
1634
1649
  isComposioManaged: boolean;
1650
+ mode: string;
1635
1651
  } | null | undefined;
1636
1652
  connectedAccount?: {
1637
1653
  status: string;
@@ -1639,16 +1655,16 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
1639
1655
  } | undefined;
1640
1656
  }>>;
1641
1657
  }, "strip", z.ZodTypeAny, {
1642
- slug: string;
1643
1658
  name: string;
1659
+ slug: string;
1644
1660
  isNoAuth: boolean;
1645
1661
  logo?: string | undefined;
1646
1662
  connection?: {
1647
1663
  isActive: boolean;
1648
1664
  authConfig?: {
1649
1665
  id: string;
1650
- mode: string;
1651
1666
  isComposioManaged: boolean;
1667
+ mode: string;
1652
1668
  } | null | undefined;
1653
1669
  connectedAccount?: {
1654
1670
  status: string;
@@ -1656,16 +1672,16 @@ declare const ToolkitConnectionStateSchema: z.ZodObject<{
1656
1672
  } | undefined;
1657
1673
  } | undefined;
1658
1674
  }, {
1659
- slug: string;
1660
1675
  name: string;
1676
+ slug: string;
1661
1677
  logo?: string | undefined;
1662
1678
  isNoAuth?: boolean | undefined;
1663
1679
  connection?: {
1664
1680
  isActive: boolean;
1665
1681
  authConfig?: {
1666
1682
  id: string;
1667
- mode: string;
1668
1683
  isComposioManaged: boolean;
1684
+ mode: string;
1669
1685
  } | null | undefined;
1670
1686
  connectedAccount?: {
1671
1687
  status: string;
@@ -1687,12 +1703,12 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1687
1703
  isComposioManaged: z.ZodBoolean;
1688
1704
  }, "strip", z.ZodTypeAny, {
1689
1705
  id: string;
1690
- mode: string;
1691
1706
  isComposioManaged: boolean;
1707
+ mode: string;
1692
1708
  }, {
1693
1709
  id: string;
1694
- mode: string;
1695
1710
  isComposioManaged: boolean;
1711
+ mode: string;
1696
1712
  }>>>;
1697
1713
  connectedAccount: z.ZodOptional<z.ZodObject<{
1698
1714
  id: z.ZodString;
@@ -1708,8 +1724,8 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1708
1724
  isActive: boolean;
1709
1725
  authConfig?: {
1710
1726
  id: string;
1711
- mode: string;
1712
1727
  isComposioManaged: boolean;
1728
+ mode: string;
1713
1729
  } | null | undefined;
1714
1730
  connectedAccount?: {
1715
1731
  status: string;
@@ -1719,8 +1735,8 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1719
1735
  isActive: boolean;
1720
1736
  authConfig?: {
1721
1737
  id: string;
1722
- mode: string;
1723
1738
  isComposioManaged: boolean;
1739
+ mode: string;
1724
1740
  } | null | undefined;
1725
1741
  connectedAccount?: {
1726
1742
  status: string;
@@ -1728,16 +1744,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1728
1744
  } | undefined;
1729
1745
  }>>;
1730
1746
  }, "strip", z.ZodTypeAny, {
1731
- slug: string;
1732
1747
  name: string;
1748
+ slug: string;
1733
1749
  isNoAuth: boolean;
1734
1750
  logo?: string | undefined;
1735
1751
  connection?: {
1736
1752
  isActive: boolean;
1737
1753
  authConfig?: {
1738
1754
  id: string;
1739
- mode: string;
1740
1755
  isComposioManaged: boolean;
1756
+ mode: string;
1741
1757
  } | null | undefined;
1742
1758
  connectedAccount?: {
1743
1759
  status: string;
@@ -1745,16 +1761,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1745
1761
  } | undefined;
1746
1762
  } | undefined;
1747
1763
  }, {
1748
- slug: string;
1749
1764
  name: string;
1765
+ slug: string;
1750
1766
  logo?: string | undefined;
1751
1767
  isNoAuth?: boolean | undefined;
1752
1768
  connection?: {
1753
1769
  isActive: boolean;
1754
1770
  authConfig?: {
1755
1771
  id: string;
1756
- mode: string;
1757
1772
  isComposioManaged: boolean;
1773
+ mode: string;
1758
1774
  } | null | undefined;
1759
1775
  connectedAccount?: {
1760
1776
  status: string;
@@ -1766,16 +1782,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1766
1782
  totalPages: z.ZodNumber;
1767
1783
  }, "strip", z.ZodTypeAny, {
1768
1784
  items: {
1769
- slug: string;
1770
1785
  name: string;
1786
+ slug: string;
1771
1787
  isNoAuth: boolean;
1772
1788
  logo?: string | undefined;
1773
1789
  connection?: {
1774
1790
  isActive: boolean;
1775
1791
  authConfig?: {
1776
1792
  id: string;
1777
- mode: string;
1778
1793
  isComposioManaged: boolean;
1794
+ mode: string;
1779
1795
  } | null | undefined;
1780
1796
  connectedAccount?: {
1781
1797
  status: string;
@@ -1787,16 +1803,16 @@ declare const ToolkitConnectionsDetailsSchema: z.ZodObject<{
1787
1803
  cursor?: string | undefined;
1788
1804
  }, {
1789
1805
  items: {
1790
- slug: string;
1791
1806
  name: string;
1807
+ slug: string;
1792
1808
  logo?: string | undefined;
1793
1809
  isNoAuth?: boolean | undefined;
1794
1810
  connection?: {
1795
1811
  isActive: boolean;
1796
1812
  authConfig?: {
1797
1813
  id: string;
1798
- mode: string;
1799
1814
  isComposioManaged: boolean;
1815
+ mode: string;
1800
1816
  } | null | undefined;
1801
1817
  connectedAccount?: {
1802
1818
  status: string;
@@ -1836,15 +1852,15 @@ declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
1836
1852
  search: z.ZodOptional<z.ZodString>;
1837
1853
  }, "strip", z.ZodTypeAny, {
1838
1854
  toolkits?: string[] | undefined;
1855
+ cursor?: string | undefined;
1839
1856
  limit?: number | undefined;
1840
1857
  search?: string | undefined;
1841
- cursor?: string | undefined;
1842
1858
  isConnected?: boolean | undefined;
1843
1859
  }, {
1844
1860
  toolkits?: string[] | undefined;
1861
+ cursor?: string | undefined;
1845
1862
  limit?: number | undefined;
1846
1863
  search?: string | undefined;
1847
- cursor?: string | undefined;
1848
1864
  isConnected?: boolean | undefined;
1849
1865
  }>;
1850
1866
  type ToolRouterToolkitsOptions = z.infer<typeof ToolRouterToolkitsOptionsSchema>;
@@ -1977,15 +1993,15 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
1977
1993
  connectionDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1978
1994
  currentUserInfo: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1979
1995
  }, "strip", z.ZodTypeAny, {
1980
- description: string;
1981
1996
  toolkit: string;
1997
+ description: string;
1982
1998
  hasActiveConnection: boolean;
1983
1999
  statusMessage: string;
1984
2000
  connectionDetails?: Record<string, unknown> | undefined;
1985
2001
  currentUserInfo?: Record<string, unknown> | undefined;
1986
2002
  }, {
1987
- description: string;
1988
2003
  toolkit: string;
2004
+ description: string;
1989
2005
  hasActiveConnection: boolean;
1990
2006
  statusMessage: string;
1991
2007
  connectionDetails?: Record<string, unknown> | undefined;
@@ -2055,8 +2071,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
2055
2071
  } | undefined;
2056
2072
  }>;
2057
2073
  toolkitConnectionStatuses: {
2058
- description: string;
2059
2074
  toolkit: string;
2075
+ description: string;
2060
2076
  hasActiveConnection: boolean;
2061
2077
  statusMessage: string;
2062
2078
  connectionDetails?: Record<string, unknown> | undefined;
@@ -2110,8 +2126,8 @@ declare const ToolRouterSessionSearchResponseSchema: z.ZodObject<{
2110
2126
  } | undefined;
2111
2127
  }>;
2112
2128
  toolkitConnectionStatuses: {
2113
- description: string;
2114
2129
  toolkit: string;
2130
+ description: string;
2115
2131
  hasActiveConnection: boolean;
2116
2132
  statusMessage: string;
2117
2133
  connectionDetails?: Record<string, unknown> | undefined;
@@ -2135,12 +2151,12 @@ declare const ToolRouterSessionExecuteResponseSchema: z.ZodObject<{
2135
2151
  error: z.ZodNullable<z.ZodString>;
2136
2152
  logId: z.ZodString;
2137
2153
  }, "strip", z.ZodTypeAny, {
2138
- data: Record<string, unknown>;
2139
2154
  error: string | null;
2155
+ data: Record<string, unknown>;
2140
2156
  logId: string;
2141
2157
  }, {
2142
- data: Record<string, unknown>;
2143
2158
  error: string | null;
2159
+ data: Record<string, unknown>;
2144
2160
  logId: string;
2145
2161
  }>;
2146
2162
  type ToolRouterSessionExecuteResponse = z.infer<typeof ToolRouterSessionExecuteResponseSchema>;
@@ -2200,21 +2216,26 @@ interface ToolRouterSessionMetadata {
2200
2216
  inlineCustomToolsPayload?: InlineCustomToolsWirePayload;
2201
2217
  }
2202
2218
  declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
2203
- /** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */toolkit: z.ZodString; /** The API endpoint URL to call */
2204
- endpoint: z.ZodString; /** HTTP method */
2205
- method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>; /** Request body (for POST/PUT/PATCH) */
2206
- body: z.ZodOptional<z.ZodUnknown>; /** Query params or headers to include */
2219
+ /** The toolkit whose connected account to use for auth (e.g. 'gmail', 'github') */
2220
+ toolkit: z.ZodString;
2221
+ /** The API endpoint URL to call */
2222
+ endpoint: z.ZodString;
2223
+ /** HTTP method */
2224
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>;
2225
+ /** Request body (for POST/PUT/PATCH) */
2226
+ body: z.ZodOptional<z.ZodUnknown>;
2227
+ /** Query params or headers to include */
2207
2228
  parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2208
2229
  in: z.ZodEnum<["query", "header"]>;
2209
2230
  name: z.ZodString;
2210
2231
  value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
2211
2232
  }, "strip", z.ZodTypeAny, {
2212
- name: string;
2213
2233
  value: string | number;
2234
+ name: string;
2214
2235
  in: "query" | "header";
2215
2236
  }, {
2216
- name: string;
2217
2237
  value: string | number;
2238
+ name: string;
2218
2239
  in: "query" | "header";
2219
2240
  }>, "many">>;
2220
2241
  }, "strip", z.ZodTypeAny, {
@@ -2223,8 +2244,8 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
2223
2244
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2224
2245
  body?: unknown;
2225
2246
  parameters?: {
2226
- name: string;
2227
2247
  value: string | number;
2248
+ name: string;
2228
2249
  in: "query" | "header";
2229
2250
  }[] | undefined;
2230
2251
  }, {
@@ -2233,8 +2254,8 @@ declare const SessionProxyExecuteParamsSchema: z.ZodObject<{
2233
2254
  method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
2234
2255
  body?: unknown;
2235
2256
  parameters?: {
2236
- name: string;
2237
2257
  value: string | number;
2258
+ name: string;
2238
2259
  in: "query" | "header";
2239
2260
  }[] | undefined;
2240
2261
  }>;
@@ -2384,10 +2405,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2384
2405
  tools?: string[] | "all" | undefined;
2385
2406
  }>>>;
2386
2407
  }, "strip", z.ZodTypeAny, {
2387
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2388
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2389
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2390
- } | undefined;
2391
2408
  tools?: Record<string, string[] | {
2392
2409
  enable: string[];
2393
2410
  } | {
@@ -2403,6 +2420,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2403
2420
  } | {
2404
2421
  enable: string[];
2405
2422
  } | undefined;
2423
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2424
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2425
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2426
+ } | undefined;
2406
2427
  preload?: {
2407
2428
  tools?: string[] | "all" | undefined;
2408
2429
  } | undefined;
@@ -2431,10 +2452,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2431
2452
  requireExplicitSelection?: boolean | undefined;
2432
2453
  } | null | undefined;
2433
2454
  }, {
2434
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2435
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2436
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2437
- } | undefined;
2438
2455
  tools?: Record<string, string[] | {
2439
2456
  enable: string[];
2440
2457
  } | {
@@ -2450,6 +2467,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2450
2467
  } | {
2451
2468
  enable: string[];
2452
2469
  } | undefined;
2470
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2471
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2472
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2473
+ } | undefined;
2453
2474
  preload?: {
2454
2475
  tools?: string[] | "all" | undefined;
2455
2476
  } | undefined;
@@ -2478,10 +2499,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2478
2499
  requireExplicitSelection?: boolean | undefined;
2479
2500
  } | null | undefined;
2480
2501
  }>, {
2481
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2482
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2483
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2484
- } | undefined;
2485
2502
  tools?: Record<string, string[] | {
2486
2503
  enable: string[];
2487
2504
  } | {
@@ -2497,6 +2514,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2497
2514
  } | {
2498
2515
  enable: string[];
2499
2516
  } | undefined;
2517
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2518
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2519
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2520
+ } | undefined;
2500
2521
  preload?: {
2501
2522
  tools?: string[] | "all" | undefined;
2502
2523
  } | undefined;
@@ -2525,10 +2546,6 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2525
2546
  requireExplicitSelection?: boolean | undefined;
2526
2547
  } | null | undefined;
2527
2548
  }, {
2528
- tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2529
- disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2530
- enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2531
- } | undefined;
2532
2549
  tools?: Record<string, string[] | {
2533
2550
  enable: string[];
2534
2551
  } | {
@@ -2544,6 +2561,10 @@ declare const ToolRouterUpdateSessionConfigSchema: z.ZodEffects<z.ZodObject<{
2544
2561
  } | {
2545
2562
  enable: string[];
2546
2563
  } | undefined;
2564
+ tags?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | {
2565
+ disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2566
+ enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
2567
+ } | undefined;
2547
2568
  preload?: {
2548
2569
  tools?: string[] | "all" | undefined;
2549
2570
  } | undefined;
@@ -2578,11 +2599,11 @@ declare const ToolRouterSessionDeleteResponseSchema: z.ZodObject<{
2578
2599
  sessionId: z.ZodString;
2579
2600
  deleted: z.ZodLiteral<true>;
2580
2601
  }, "strip", z.ZodTypeAny, {
2581
- sessionId: string;
2582
2602
  deleted: true;
2583
- }, {
2584
2603
  sessionId: string;
2604
+ }, {
2585
2605
  deleted: true;
2606
+ sessionId: string;
2586
2607
  }>;
2587
2608
  type ToolRouterSessionDeleteResponse = z.infer<typeof ToolRouterSessionDeleteResponseSchema>;
2588
2609
  type ToolRouterSessionDeleteFn = (requestOptions?: ComposioRequestOptions) => Promise<ToolRouterSessionDeleteResponse>;
@@ -2708,8 +2729,11 @@ declare const CreateCustomToolBaseSchema: z$1.ZodObject<{
2708
2729
  }>;
2709
2730
  /** Options for creating a custom tool via `createCustomTool()`. */
2710
2731
  type CreateCustomToolParams<T extends AnyZodSchema> = z$1.infer<typeof CreateCustomToolBaseSchema> & {
2711
- /** Zod schema for input parameters */inputParams: T; /** Optional Zod schema for output parameters (sent to backend for documentation) */
2712
- outputParams?: AnyZodSchema; /** The function that executes the tool */
2732
+ /** Zod schema for input parameters */
2733
+ inputParams: T;
2734
+ /** Optional Zod schema for output parameters (sent to backend for documentation) */
2735
+ outputParams?: AnyZodSchema;
2736
+ /** The function that executes the tool */
2713
2737
  execute: CustomToolExecuteFn<T>;
2714
2738
  };
2715
2739
  /**
@@ -2761,7 +2785,8 @@ declare const CreateCustomToolkitBaseSchema: z$1.ZodObject<{
2761
2785
  }>;
2762
2786
  /** Options for creating a custom toolkit via `createCustomToolkit()`. */
2763
2787
  type CreateCustomToolkitParams = z$1.infer<typeof CreateCustomToolkitBaseSchema> & {
2764
- /** Tools to include in this toolkit. Must not have `extendsToolkit` set. */tools: CustomTool[];
2788
+ /** Tools to include in this toolkit. Must not have `extendsToolkit` set. */
2789
+ tools: CustomTool[];
2765
2790
  };
2766
2791
  /**
2767
2792
  * Custom toolkit definition returned from `createCustomToolkit()`.
@@ -2787,17 +2812,25 @@ interface InlineCustomToolsWirePayload {
2787
2812
  }
2788
2813
  /** @internal Entry in the per-session custom tools routing map. */
2789
2814
  type CustomToolsMapEntry = {
2790
- handle: CustomTool; /** @internal The final slug assigned by the prefixing rules (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
2791
- finalSlug: string; /** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
2815
+ handle: CustomTool;
2816
+ /** @internal The final slug assigned by the prefixing rules (e.g. LOCAL_GREP, LOCAL_GMAIL_GET_EMAILS) */
2817
+ finalSlug: string;
2818
+ /** Resolved toolkit — from extendsToolkit, parent custom toolkit, or undefined for standalone */
2792
2819
  toolkit?: string;
2793
2820
  };
2794
2821
  /** @internal Lookup maps used by ToolRouterSession for routing custom tools. */
2795
2822
  type CustomToolsMap = {
2796
- /** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */byFinalSlug: Map<string, CustomToolsMapEntry>; /** Lookup by unique original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
2797
- byOriginalSlug: Map<string, CustomToolsMapEntry>; /** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
2798
- byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>; /** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
2799
- ambiguousOriginalSlugs?: Set<string>; /** The original custom toolkits passed at session creation — used for session.customToolkits() */
2800
- toolkits?: CustomToolkit[]; /** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
2823
+ /** Lookup by final slug (e.g. LOCAL_GET_USER_CONTEXT) — used for agent execution path */
2824
+ byFinalSlug: Map<string, CustomToolsMapEntry>;
2825
+ /** Lookup by unique original slug (e.g. GET_USER_CONTEXT) — used for programmatic session.execute() */
2826
+ byOriginalSlug: Map<string, CustomToolsMapEntry>;
2827
+ /** Lookup by resolved toolkit + original slug — used when multiple custom toolkits reuse tool names */
2828
+ byToolkitAndOriginalSlug?: Map<string, CustomToolsMapEntry>;
2829
+ /** Original slugs that appear in multiple toolkits and cannot be resolved safely without the final slug */
2830
+ ambiguousOriginalSlugs?: Set<string>;
2831
+ /** The original custom toolkits passed at session creation — used for session.customToolkits() */
2832
+ toolkits?: CustomToolkit[];
2833
+ /** The original standalone custom tools passed at session creation — kept for inline re-injection on later requests. */
2801
2834
  tools?: CustomTool[];
2802
2835
  };
2803
2836
  /** A custom tool as registered in a session, with its final resolved slug. */