@composio/core 0.25.0 → 0.26.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.
Files changed (30) hide show
  1. package/dist/{CustomTool-DZY1yLHN.d.mts → CustomTool-DfP4ldQl.d.mts} +1 -1
  2. package/dist/{cancellation-D-tMPk48.mjs → cancellation-ZoRh6EJQ.mjs} +54 -2
  3. package/dist/{composio-B8AENilE.d.mts → composio-BMDH-1Qj.d.mts} +19 -11
  4. package/dist/{customTool.types-Bi6-keZC.d.mts → customTool.types-BoOELgJF.d.mts} +20 -20
  5. package/dist/experimental/index.d.mts +2 -2
  6. package/dist/index.d.mts +11 -6
  7. package/dist/index.mjs +400 -61
  8. package/dist/{types-BGDMkEUl.d.mts → types-DHNV_T_z.d.mts} +2 -2
  9. package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
  10. package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
  11. package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
  12. package/dist/utils/modifiers/FileToolModifier.node.mjs +1 -1
  13. package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
  14. package/package.json +3 -3
  15. package/src/composio.ts +68 -57
  16. package/src/lib/toolRouterMcp.ts +2 -0
  17. package/src/models/ConnectedAccounts.ts +7 -16
  18. package/src/models/ToolRouter.ts +3 -1
  19. package/src/models/Tools.ts +1 -4
  20. package/src/models/Triggers.ts +6 -1
  21. package/src/services/internal/InternalService.ts +3 -4
  22. package/src/services/pusher/Pusher.ts +11 -4
  23. package/src/types/connectedAccountAuthStates.types.ts +2 -1
  24. package/src/types/requestOptions.types.ts +1 -10
  25. package/src/types/toolRouter.types.ts +1 -1
  26. package/src/utils/jsonSchema.ts +76 -4
  27. package/src/utils/sdk.ts +172 -11
  28. package/src/utils/toolkitDeprecation.ts +271 -0
  29. package/src/utils/transformers/connectedAccounts.ts +9 -20
  30. package/src/utils/transformers/mcp.ts +3 -10
@@ -1,4 +1,4 @@
1
- import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-Bi6-keZC.mjs";
1
+ import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-BoOELgJF.mjs";
2
2
  import { SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
3
3
  //#region src/models/CustomTool.d.ts
4
4
  /**
@@ -354,6 +354,24 @@ function jsonSchemaToZodSchema(jsonSchema, { strict } = { strict: false }) {
354
354
  const MAX_STRICT_CHANGES = 50;
355
355
  /** Annotation-only keywords OpenAI structured outputs rejects; safe to strip. */
356
356
  const STRICT_STRIP_KEYWORDS = /* @__PURE__ */ new Set(["examples", "default"]);
357
+ /**
358
+ * The `format` values OpenAI structured outputs accepts on a string schema,
359
+ * matched case-sensitively; any other value there is rejected with a 400.
360
+ * Formats on number and integer schemas are not checked.
361
+ */
362
+ const STRICT_STRING_FORMATS = /* @__PURE__ */ new Set([
363
+ "date-time",
364
+ "time",
365
+ "date",
366
+ "duration",
367
+ "email",
368
+ "hostname",
369
+ "ipv4",
370
+ "ipv6",
371
+ "uuid"
372
+ ]);
373
+ /** Whether a `type` value admits strings; an absent `type` admits every type. */
374
+ const admitsString = (type) => type === void 0 || type === "string" || Array.isArray(type) && type.includes("string");
357
375
  /** Keywords OpenAI structured outputs reject and that have no lossless rewrite. */
358
376
  const STRICT_UNSUPPORTED_KEYWORDS = [
359
377
  "allOf",
@@ -454,6 +472,11 @@ function resolveLocalRefs(node, root) {
454
472
  * the one it was given: the rewrite types every node that declares
455
473
  * `properties` as an object, so such a node stops accepting null.
456
474
  *
475
+ * `followRefs: false` makes every `$ref` reject null without resolving it.
476
+ * Folding `nullable` needs that, because a `$ref` can lead back to the node
477
+ * being folded, whose source still accepts null. It costs at most a
478
+ * redundant null branch.
479
+ *
457
480
  * One check serves a whole document, and an answer is computed once per node.
458
481
  * A reference cycle never yields a null by itself, so a node met again while
459
482
  * it is being evaluated counts as rejecting. An answer that leans on that is
@@ -466,7 +489,7 @@ function resolveLocalRefs(node, root) {
466
489
  * went through stay marked as unproven, so a later check that reaches one of
467
490
  * them neither repeats the work nor trusts the answer.
468
491
  */
469
- function createNullCheck(root, strictOutput = false) {
492
+ function createNullCheck(root, strictOutput = false, followRefs = true) {
470
493
  const NOTHING = 65;
471
494
  const A_BOUND = -1;
472
495
  const answers = /* @__PURE__ */ new Map();
@@ -531,12 +554,14 @@ function createNullCheck(root, strictOutput = false) {
531
554
  return answer;
532
555
  };
533
556
  const keywordsAccept = (node) => {
557
+ if (node.nullable === true) return true;
534
558
  if (typeof node.type === "string" && node.type !== "null") return false;
535
559
  if (Array.isArray(node.type) && !node.type.includes("null")) return false;
536
560
  if (strictOutput && !("type" in node) && isPlainObject(node.properties)) return false;
537
561
  if (Array.isArray(node.enum) && !node.enum.includes(null)) return false;
538
562
  if ("const" in node && node.const !== null) return false;
539
563
  if ("$ref" in node) {
564
+ if (!followRefs) return false;
540
565
  const resolution = typeof node.$ref === "string" ? tryResolvePointer(root, node.$ref) : void 0;
541
566
  if (resolution === void 0 || resolution.kind === "unresolved") return false;
542
567
  if (!accepts(resolution.value)) return false;
@@ -569,7 +594,9 @@ function createNullCheck(root, strictOutput = false) {
569
594
  * sends for such a property means "omitted"; the strict providers drop it
570
595
  * before executing the tool (see {@link omitNullToolArguments});
571
596
  * - `type` arrays are kept as-is (the API accepts them); `oneOf` becomes
572
- * `anyOf`; `default` and `examples` are stripped;
597
+ * `anyOf`; `default`, `examples`, and a string `format` the API does
598
+ * not accept are stripped; OpenAPI `nullable` is stripped too, and a
599
+ * node that set it to `true` is widened to accept `null`;
573
600
  * - local `$ref`s into `$defs`/`definitions` are kept (the API supports
574
601
  * them, including recursion) and the definitions themselves are
575
602
  * normalized; an optional `$ref` property is widened with an `anyOf`
@@ -597,6 +624,7 @@ function toStrictJsonSchema(schema) {
597
624
  };
598
625
  const root = isPlainObject(schema) ? schema : {};
599
626
  const acceptsNullInOutput = createNullCheck(root, true);
627
+ const acceptsNullWithoutRefs = createNullCheck(root, true, false);
600
628
  function walkChildren(node, mode, depth, path) {
601
629
  const clone = {};
602
630
  for (const [key, child] of Object.entries(node)) {
@@ -626,6 +654,7 @@ function toStrictJsonSchema(schema) {
626
654
  if (!isPlainObject(value) || mode === "value") return value;
627
655
  const node = {};
628
656
  for (const [key, child] of Object.entries(value)) {
657
+ if (key === "nullable") continue;
629
658
  if (STRICT_STRIP_KEYWORDS.has(key)) {
630
659
  recordChange({
631
660
  path,
@@ -634,6 +663,14 @@ function toStrictJsonSchema(schema) {
634
663
  });
635
664
  continue;
636
665
  }
666
+ if (key === "format" && typeof child === "string" && !STRICT_STRING_FORMATS.has(child) && admitsString(value.type)) {
667
+ recordChange({
668
+ path,
669
+ reason: "unsupported-keyword-stripped",
670
+ detail: `format "${child}" removed`
671
+ });
672
+ continue;
673
+ }
637
674
  setOwn(node, key, child);
638
675
  }
639
676
  if (Array.isArray(node.oneOf) && node.anyOf === void 0) {
@@ -670,6 +707,21 @@ function toStrictJsonSchema(schema) {
670
707
  keyword: "properties",
671
708
  detail: "properties is not an object"
672
709
  });
710
+ const normalized = normalizeNode(node, mode, depth, path);
711
+ if (!("nullable" in value)) return normalized;
712
+ const widened = value.nullable === true ? widenToNullable(normalized, acceptsNullWithoutRefs) : normalized;
713
+ recordChange(widened === normalized ? {
714
+ path,
715
+ reason: "unsupported-keyword-stripped",
716
+ detail: "keyword \"nullable\" removed"
717
+ } : {
718
+ path,
719
+ reason: "nullable-converted",
720
+ detail: "nullable became a null type"
721
+ });
722
+ return widened;
723
+ }
724
+ function normalizeNode(node, mode, depth, path) {
673
725
  const out = walkChildren(node, mode, depth, path);
674
726
  if (typeof node.$ref === "string") {
675
727
  if ((node.$ref === "#" || node.$ref.startsWith("#/") ? tryResolvePointer(root, node.$ref) : {
@@ -1,4 +1,4 @@
1
- import { $n as CreateConnectedAccountOptions, Aa as ToolExecuteParams, Cn as ConnectedAccountCompleteAuthResponse, D as Session, Da as Tool, Ea as SchemaModifierOptions, Fa as ToolListParams, In as ConnectedAccountRetrieveResponse, Ja as ToolkitVersionParam, M as SessionWithoutMcp, Ma as ToolExecuteResponse, Oa as ToolExecuteMetaParams, Pa as ToolList, Pn as ConnectedAccountRefreshOptions, Rn as ConnectedAccountRevokeResponse, Va as ToolRetrievalOptions, Yn as CreateConnectedAccountLinkOptions, ai as McpServerGetResponse, cr as UpdateConnectedAccountParams, dr as BaseComposioProvider, f as CustomToolkit, fa as ProviderOptions, fn as ComposioRequestOptions, fr as BaseNonAgenticProvider, jn as ConnectedAccountListResponse, kn as ConnectedAccountListParams, mi as ExecuteToolFnOptions, o as CustomTool, or as UpdateConnectedAccountAclParams, pa as SessionExecuteMetaModifiers, pn as ConnectionRequest, rt as ToolRouterSessionDeleteResponse, ua as ExecuteToolModifiers, ui as McpUrlResponse, vi as ToolCallSession, xn as ConnectedAccountCompleteAuthParams, z as ToolRouterCreateSessionConfig, za as ToolProxyParams } from "./customTool.types-Bi6-keZC.mjs";
1
+ import { $n as CreateConnectedAccountOptions, Aa as ToolExecuteParams, Cn as ConnectedAccountCompleteAuthResponse, D as Session, Da as Tool, Ea as SchemaModifierOptions, Fa as ToolListParams, In as ConnectedAccountRetrieveResponse, Ja as ToolkitVersionParam, M as SessionWithoutMcp, Ma as ToolExecuteResponse, Oa as ToolExecuteMetaParams, Pa as ToolList, Pn as ConnectedAccountRefreshOptions, Rn as ConnectedAccountRevokeResponse, Va as ToolRetrievalOptions, Yn as CreateConnectedAccountLinkOptions, ai as McpServerGetResponse, cr as UpdateConnectedAccountParams, dr as BaseComposioProvider, f as CustomToolkit, fa as ProviderOptions, fn as ComposioRequestOptions, fr as BaseNonAgenticProvider, jn as ConnectedAccountListResponse, kn as ConnectedAccountListParams, mi as ExecuteToolFnOptions, o as CustomTool, or as UpdateConnectedAccountAclParams, pa as SessionExecuteMetaModifiers, pn as ConnectionRequest, rt as ToolRouterSessionDeleteResponse, ua as ExecuteToolModifiers, ui as McpUrlResponse, vi as ToolCallSession, xn as ConnectedAccountCompleteAuthParams, z as ToolRouterCreateSessionConfig, za as ToolProxyParams } from "./customTool.types-BoOELgJF.mjs";
2
2
  import ComposioClient, { Composio } from "@composio/client";
3
3
  import z, { z as z$1 } from "zod/v3";
4
4
  import { Files } from "#files";
@@ -5254,24 +5254,24 @@ declare const UsageBreakdownParamsSchema: z$1.ZodObject<{
5254
5254
  }>>;
5255
5255
  }, "strip", z$1.ZodTypeAny, {
5256
5256
  limit?: number | undefined;
5257
- orderBy?: "key" | "total_quantity" | "event_count" | undefined;
5258
5257
  from?: number | undefined;
5259
5258
  to?: number | undefined;
5260
5259
  filters?: {
5261
5260
  userId?: string[] | null | undefined;
5262
5261
  sessionId?: string[] | null | undefined;
5263
5262
  } | undefined;
5263
+ orderBy?: "key" | "total_quantity" | "event_count" | undefined;
5264
5264
  groupBy?: string | undefined;
5265
5265
  orderDirection?: "asc" | "desc" | undefined;
5266
5266
  }, {
5267
5267
  limit?: number | undefined;
5268
- orderBy?: "key" | "total_quantity" | "event_count" | undefined;
5269
5268
  from?: number | undefined;
5270
5269
  to?: number | undefined;
5271
5270
  filters?: {
5272
5271
  userId?: string[] | null | undefined;
5273
5272
  sessionId?: string[] | null | undefined;
5274
5273
  } | undefined;
5274
+ orderBy?: "key" | "total_quantity" | "event_count" | undefined;
5275
5275
  groupBy?: string | undefined;
5276
5276
  orderDirection?: "asc" | "desc" | undefined;
5277
5277
  }>;
@@ -8355,7 +8355,8 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
8355
8355
  /**
8356
8356
  * Derives the MCP config for a session from the auth context the session
8357
8357
  * request was made with: the project key when one is configured, otherwise
8358
- * the resolved user API key, plus the org/project scope when configured.
8358
+ * the resolved user API key, otherwise the organization API key, plus the
8359
+ * org/project scope when configured.
8359
8360
  * Headers are only attached when the MCP URL shares the client's API
8360
8361
  * origin. Any other destination throws when the caller passed `mcp: true`
8361
8362
  * and otherwise yields empty headers plus a warning; see
@@ -8473,8 +8474,10 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
8473
8474
  * project key; the SDK throws instead of sending it.
8474
8475
  * - `null`: disables project-key authentication entirely, including both fallbacks. The SDK
8475
8476
  * then requires another credential (`userApiKey`, `orgApiKey`, or an `x-user-api-key`
8476
- * entry in `defaultHeaders`) and sends no `x-api-key`; an `x-api-key` entry in
8477
- * `defaultHeaders` is rejected, also on `createSession()` clones.
8477
+ * or `x-org-api-key` entry in `defaultHeaders`) and sends no `x-api-key`; an `x-api-key` entry in
8478
+ * `defaultHeaders` is rejected, also on `createSession()` clones. The user API key
8479
+ * then authenticates every request; the organization API key does when it is the
8480
+ * only credential held.
8478
8481
  *
8479
8482
  * @example 'ak_1234567890'
8480
8483
  */
@@ -8495,7 +8498,8 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
8495
8498
  * Sent as `x-org-api-key` only on operations whose security scheme accepts
8496
8499
  * it, never alongside the project key. Falls back to
8497
8500
  * `process.env['COMPOSIO_ORG_API_KEY']`; `null` disables that fallback.
8498
- * Combine with `apiKey: null` to authenticate with the organization key alone.
8501
+ * Combine with `apiKey: null` (and no user API key) to authenticate every
8502
+ * request with the organization key alone.
8499
8503
  * @example 'oak_1234567890'
8500
8504
  */
8501
8505
  orgApiKey?: string | null;
@@ -8592,10 +8596,14 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
8592
8596
  /**
8593
8597
  * Default headers attached to every request made through this instance.
8594
8598
  *
8595
- * `x-user-api-key` is the one header the SDK treats as a credential: together
8596
- * with `apiKey: null` it authenticates requests with a Composio user API key
8597
- * instead of a project key. The project key is only ever set from `apiKey`:
8598
- * an `x-api-key` entry is rejected when `apiKey` is `null`.
8599
+ * Credential and scope headers are not forwarded as headers: the SDK folds
8600
+ * them into its own options, which `getConfig()` then reports.
8601
+ * A non-empty `x-user-api-key` (or `x-org-api-key`) entry becomes the
8602
+ * credential every request carries, in place of the configured keys; together
8603
+ * with `apiKey: null` it authenticates with that key instead of a project key.
8604
+ * An `x-api-key` entry replaces the project key, and is rejected when `apiKey`
8605
+ * is `null`. At most one of the three may be set. `x-org-id` / `x-project-id`
8606
+ * entries supply `orgId` / `projectId`.
8599
8607
  *
8600
8608
  * The SDK reports itself through the API client's identity headers
8601
8609
  * (`x-client-provenance`, `x-client-version`, `x-client-library`,
@@ -1111,7 +1111,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1111
1111
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
1112
1112
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
1113
1113
  } & {
1114
- access_token: z$1.ZodOptional<z$1.ZodString>;
1114
+ access_token: z$1.ZodString;
1115
1115
  id_token: z$1.ZodOptional<z$1.ZodString>;
1116
1116
  token_type: z$1.ZodOptional<z$1.ZodString>;
1117
1117
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -1150,7 +1150,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1150
1150
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
1151
1151
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
1152
1152
  } & {
1153
- access_token: z$1.ZodOptional<z$1.ZodString>;
1153
+ access_token: z$1.ZodString;
1154
1154
  id_token: z$1.ZodOptional<z$1.ZodString>;
1155
1155
  token_type: z$1.ZodOptional<z$1.ZodString>;
1156
1156
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -1189,7 +1189,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1189
1189
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
1190
1190
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
1191
1191
  } & {
1192
- access_token: z$1.ZodOptional<z$1.ZodString>;
1192
+ access_token: z$1.ZodString;
1193
1193
  id_token: z$1.ZodOptional<z$1.ZodString>;
1194
1194
  token_type: z$1.ZodOptional<z$1.ZodString>;
1195
1195
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -1200,6 +1200,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1200
1200
  authScheme: "S2S_OAUTH2";
1201
1201
  toolkitSlug: string;
1202
1202
  val: {
1203
+ access_token: string;
1203
1204
  version?: string | undefined;
1204
1205
  "your-domain"?: string | undefined;
1205
1206
  subdomain?: string | undefined;
@@ -1231,7 +1232,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1231
1232
  registration_access_token?: string | undefined;
1232
1233
  registration_client_uri?: string | undefined;
1233
1234
  composio_link_redirect_url?: string | undefined;
1234
- access_token?: string | undefined;
1235
1235
  id_token?: string | undefined;
1236
1236
  token_type?: string | undefined;
1237
1237
  refresh_token?: string | null | undefined;
@@ -1244,6 +1244,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1244
1244
  authScheme: "S2S_OAUTH2";
1245
1245
  toolkitSlug: string;
1246
1246
  val: {
1247
+ access_token: string;
1247
1248
  version?: string | undefined;
1248
1249
  "your-domain"?: string | undefined;
1249
1250
  subdomain?: string | undefined;
@@ -1275,7 +1276,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
1275
1276
  registration_access_token?: string | undefined;
1276
1277
  registration_client_uri?: string | undefined;
1277
1278
  composio_link_redirect_url?: string | undefined;
1278
- access_token?: string | undefined;
1279
1279
  id_token?: string | undefined;
1280
1280
  token_type?: string | undefined;
1281
1281
  refresh_token?: string | null | undefined;
@@ -2868,6 +2868,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
2868
2868
  authScheme: "S2S_OAUTH2";
2869
2869
  toolkitSlug: string;
2870
2870
  val: {
2871
+ access_token: string;
2871
2872
  version?: string | undefined;
2872
2873
  "your-domain"?: string | undefined;
2873
2874
  subdomain?: string | undefined;
@@ -2899,7 +2900,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
2899
2900
  registration_access_token?: string | undefined;
2900
2901
  registration_client_uri?: string | undefined;
2901
2902
  composio_link_redirect_url?: string | undefined;
2902
- access_token?: string | undefined;
2903
2903
  id_token?: string | undefined;
2904
2904
  token_type?: string | undefined;
2905
2905
  refresh_token?: string | null | undefined;
@@ -3299,6 +3299,7 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
3299
3299
  authScheme: "S2S_OAUTH2";
3300
3300
  toolkitSlug: string;
3301
3301
  val: {
3302
+ access_token: string;
3302
3303
  version?: string | undefined;
3303
3304
  "your-domain"?: string | undefined;
3304
3305
  subdomain?: string | undefined;
@@ -3330,7 +3331,6 @@ declare const ToolExecuteParamsSchema: z$1.ZodObject<{
3330
3331
  registration_access_token?: string | undefined;
3331
3332
  registration_client_uri?: string | undefined;
3332
3333
  composio_link_redirect_url?: string | undefined;
3333
- access_token?: string | undefined;
3334
3334
  id_token?: string | undefined;
3335
3335
  token_type?: string | undefined;
3336
3336
  refresh_token?: string | null | undefined;
@@ -4021,7 +4021,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4021
4021
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
4022
4022
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
4023
4023
  } & {
4024
- access_token: z$1.ZodOptional<z$1.ZodString>;
4024
+ access_token: z$1.ZodString;
4025
4025
  id_token: z$1.ZodOptional<z$1.ZodString>;
4026
4026
  token_type: z$1.ZodOptional<z$1.ZodString>;
4027
4027
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -4060,7 +4060,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4060
4060
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
4061
4061
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
4062
4062
  } & {
4063
- access_token: z$1.ZodOptional<z$1.ZodString>;
4063
+ access_token: z$1.ZodString;
4064
4064
  id_token: z$1.ZodOptional<z$1.ZodString>;
4065
4065
  token_type: z$1.ZodOptional<z$1.ZodString>;
4066
4066
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -4099,7 +4099,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4099
4099
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
4100
4100
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
4101
4101
  } & {
4102
- access_token: z$1.ZodOptional<z$1.ZodString>;
4102
+ access_token: z$1.ZodString;
4103
4103
  id_token: z$1.ZodOptional<z$1.ZodString>;
4104
4104
  token_type: z$1.ZodOptional<z$1.ZodString>;
4105
4105
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -4110,6 +4110,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4110
4110
  authScheme: "S2S_OAUTH2";
4111
4111
  toolkitSlug: string;
4112
4112
  val: {
4113
+ access_token: string;
4113
4114
  version?: string | undefined;
4114
4115
  "your-domain"?: string | undefined;
4115
4116
  subdomain?: string | undefined;
@@ -4141,7 +4142,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4141
4142
  registration_access_token?: string | undefined;
4142
4143
  registration_client_uri?: string | undefined;
4143
4144
  composio_link_redirect_url?: string | undefined;
4144
- access_token?: string | undefined;
4145
4145
  id_token?: string | undefined;
4146
4146
  token_type?: string | undefined;
4147
4147
  refresh_token?: string | null | undefined;
@@ -4154,6 +4154,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4154
4154
  authScheme: "S2S_OAUTH2";
4155
4155
  toolkitSlug: string;
4156
4156
  val: {
4157
+ access_token: string;
4157
4158
  version?: string | undefined;
4158
4159
  "your-domain"?: string | undefined;
4159
4160
  subdomain?: string | undefined;
@@ -4185,7 +4186,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
4185
4186
  registration_access_token?: string | undefined;
4186
4187
  registration_client_uri?: string | undefined;
4187
4188
  composio_link_redirect_url?: string | undefined;
4188
- access_token?: string | undefined;
4189
4189
  id_token?: string | undefined;
4190
4190
  token_type?: string | undefined;
4191
4191
  refresh_token?: string | null | undefined;
@@ -5770,6 +5770,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
5770
5770
  authScheme: "S2S_OAUTH2";
5771
5771
  toolkitSlug: string;
5772
5772
  val: {
5773
+ access_token: string;
5773
5774
  version?: string | undefined;
5774
5775
  "your-domain"?: string | undefined;
5775
5776
  subdomain?: string | undefined;
@@ -5801,7 +5802,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
5801
5802
  registration_access_token?: string | undefined;
5802
5803
  registration_client_uri?: string | undefined;
5803
5804
  composio_link_redirect_url?: string | undefined;
5804
- access_token?: string | undefined;
5805
5805
  id_token?: string | undefined;
5806
5806
  token_type?: string | undefined;
5807
5807
  refresh_token?: string | null | undefined;
@@ -6195,6 +6195,7 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
6195
6195
  authScheme: "S2S_OAUTH2";
6196
6196
  toolkitSlug: string;
6197
6197
  val: {
6198
+ access_token: string;
6198
6199
  version?: string | undefined;
6199
6200
  "your-domain"?: string | undefined;
6200
6201
  subdomain?: string | undefined;
@@ -6226,7 +6227,6 @@ declare const ToolProxyParamsSchema: z$1.ZodObject<{
6226
6227
  registration_access_token?: string | undefined;
6227
6228
  registration_client_uri?: string | undefined;
6228
6229
  composio_link_redirect_url?: string | undefined;
6229
- access_token?: string | undefined;
6230
6230
  id_token?: string | undefined;
6231
6231
  token_type?: string | undefined;
6232
6232
  refresh_token?: string | null | undefined;
@@ -26882,7 +26882,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26882
26882
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
26883
26883
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
26884
26884
  } & {
26885
- access_token: z$1.ZodOptional<z$1.ZodString>;
26885
+ access_token: z$1.ZodString;
26886
26886
  id_token: z$1.ZodOptional<z$1.ZodString>;
26887
26887
  token_type: z$1.ZodOptional<z$1.ZodString>;
26888
26888
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -26921,7 +26921,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26921
26921
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
26922
26922
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
26923
26923
  } & {
26924
- access_token: z$1.ZodOptional<z$1.ZodString>;
26924
+ access_token: z$1.ZodString;
26925
26925
  id_token: z$1.ZodOptional<z$1.ZodString>;
26926
26926
  token_type: z$1.ZodOptional<z$1.ZodString>;
26927
26927
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -26960,7 +26960,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26960
26960
  registration_client_uri: z$1.ZodOptional<z$1.ZodString>;
26961
26961
  composio_link_redirect_url: z$1.ZodOptional<z$1.ZodString>;
26962
26962
  } & {
26963
- access_token: z$1.ZodOptional<z$1.ZodString>;
26963
+ access_token: z$1.ZodString;
26964
26964
  id_token: z$1.ZodOptional<z$1.ZodString>;
26965
26965
  token_type: z$1.ZodOptional<z$1.ZodString>;
26966
26966
  refresh_token: z$1.ZodOptional<z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>>;
@@ -26971,6 +26971,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
26971
26971
  authScheme: "S2S_OAUTH2";
26972
26972
  toolkitSlug: string;
26973
26973
  val: {
26974
+ access_token: string;
26974
26975
  version?: string | undefined;
26975
26976
  "your-domain"?: string | undefined;
26976
26977
  subdomain?: string | undefined;
@@ -27002,7 +27003,6 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
27002
27003
  registration_access_token?: string | undefined;
27003
27004
  registration_client_uri?: string | undefined;
27004
27005
  composio_link_redirect_url?: string | undefined;
27005
- access_token?: string | undefined;
27006
27006
  id_token?: string | undefined;
27007
27007
  token_type?: string | undefined;
27008
27008
  refresh_token?: string | null | undefined;
@@ -27015,6 +27015,7 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
27015
27015
  authScheme: "S2S_OAUTH2";
27016
27016
  toolkitSlug: string;
27017
27017
  val: {
27018
+ access_token: string;
27018
27019
  version?: string | undefined;
27019
27020
  "your-domain"?: string | undefined;
27020
27021
  subdomain?: string | undefined;
@@ -27046,7 +27047,6 @@ declare const CustomConnectionDataSchema: z$1.ZodDiscriminatedUnion<"authScheme"
27046
27047
  registration_access_token?: string | undefined;
27047
27048
  registration_client_uri?: string | undefined;
27048
27049
  composio_link_redirect_url?: string | undefined;
27049
- access_token?: string | undefined;
27050
27050
  id_token?: string | undefined;
27051
27051
  token_type?: string | undefined;
27052
27052
  refresh_token?: string | null | undefined;
@@ -31590,7 +31590,7 @@ declare const ToolRouterCreateSessionConfigSchema: z.ZodEffects<z.ZodEffects<z.Z
31590
31590
  * @param {SessionPreset} [sessionPreset] - Shortcut that exposes every tool allowed by the session filters directly in session.tools() and the MCP tool list. Disables search, multi-execute, manage-connections, and sandbox by default; explicit overrides for supported fields still win. Without this preset, ToolRouter uses the default configuration with meta tools enabled.
31591
31591
  * @param {ToolRouterToolkitsParamSchema | ToolRouterToolkitsDisabledConfigSchema | ToolRouterToolkitsEnabledConfigSchema} toolkits - The toolkits to use in the tool router session
31592
31592
  * @param {Record<string, ToolRouterToolsParam | ToolRouterConfigTools>} tools - The tools to configure per toolkit (key is toolkit slug)
31593
- * @param {Array<'readOnlyHint' | 'destructiveHint' | 'idempotentHint' | 'openWorldHint'>} tags - Global tags to filter tools by behavior
31593
+ * @param {Array<'readOnlyHint' | 'createHint' | 'updateHint' | 'destructiveHint'>} tags - Global tags to filter tools by the type of action they take
31594
31594
  * @param {Record<string, string>} authConfigs - The auth configs to use in the tool router session
31595
31595
  * @param {Record<string, string | string[]>} connectedAccounts - The connected accounts to use in the tool router session. A single string is coerced to a single-element array before being sent to the backend.
31596
31596
  * @param {ToolRouterInstant} [instant] - Experimental Instant usage policy. The project must allow Instant usage.
@@ -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-Bi6-keZC.mjs";
2
- import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-DZY1yLHN.mjs";
1
+ import { S as SessionContext, a as CreateCustomToolkitParams, c as CustomToolExecuteFn, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams } from "../customTool.types-BoOELgJF.mjs";
2
+ import { n as createCustomToolkit, t as createCustomTool } from "../CustomTool-DfP4ldQl.mjs";
3
3
  export { type CreateCustomToolParams, type CreateCustomToolkitParams, type CustomTool, type CustomToolExecuteFn, type CustomToolkit, type SessionContext, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as ToolRouterSessionConfig, $i as Oauth2InactiveConnectionData, $n as CreateConnectedAccountOptions, $r as McpDeleteResponseSchema, $t as FileDeleteResponseSchema, A as SessionProxyExecuteParams, Aa as ToolExecuteParams, Ai as CustomOauth2ConnectionDataSchema, An as ConnectedAccountListParamsSchema, Ar as MCPAuthOptionsSchema, At as ToolRouterTagsEnableDisableSchema, B as ToolRouterCreateSessionConfigSchema, Ba as ToolProxyParamsSchema, Bi as Oauth1InactiveConnectionDataSchema, Bn as ConnectedAccountRevokedToken, Br as MCPServerCreateResponse, Bt as ToolRouterToolsParamSchema, C as MCPServerType, Ca as CustomAuthParamsSchema, Ci as ConnectionStatusEnum, Cn as ConnectedAccountCompleteAuthResponse, Cr as CustomCreateResponseValidated, Ct as ToolRouterSessionProxyExecuteResponse, D as Session, Da as Tool, Di as CustomOauth1ConnectionData, Dn as ConnectedAccountExperimentalResponseSchema, Dr as GenerateURLResponseSchema, Dt as ToolRouterSessionUpdateFn, E as SandboxSizeSchema, Ea as SchemaModifierOptions, Ei as CustomConnectionDataSchema, En as ConnectedAccountExperimentalResponse, Er as GenerateURLResponse, Et as ToolRouterSessionSearchResponseSchema, F as ToolRouterConfigTags, Fa as ToolListParams, Fi as Oauth1ExpiredConnectionData, Fn as ConnectedAccountRefreshOptionsSchema, Fr as MCPGetServerParamsSchema, Ft as ToolRouterToolkitsOptions, G as ToolRouterMCPServerConfigSchema, Ga as ToolkitLatestVersionSchema, Gi as Oauth2ActiveConnectionData, Gn as ConnectedAccountStatuses, Gr as MCPServerUpdateParams, Gt as ToolRouterUpdateSessionConfig, H as ToolRouterInstant, Ha as ToolSchema, Hi as Oauth1InitiatedConnectionDataSchema, Hn as ConnectedAccountStatus, Hr as MCPServerListResponse, Ht as ToolRouterUpdateExperimentalSchema, I as ToolRouterConfigTagsSchema, Ia as ToolListParamsSchema, Ii as Oauth1ExpiredConnectionDataSchema, In as ConnectedAccountRetrieveResponse, Ir as MCPInstanceParams, It as ToolRouterToolkitsOptionsSchema, J as ToolRouterProxyExecuteConfig, Ja as ToolkitVersionParam, Ji as Oauth2ConnectionDataSchema, Jn as ConnectedAccountTypes, Jr as MCPSingleAppServerSchema, Jt as ToolkitConnectionStateSchema, K as ToolRouterManageConnectionsConfigSchema, Ka as ToolkitSchema, Ki as Oauth2ActiveConnectionDataSchema, Kn as ConnectedAccountType, Kr as MCPServerUpdateParamsSchema, Kt as ToolRouterUpdateSessionConfigSchema, L as ToolRouterConfigTools, La as ToolListResponse, Li as Oauth1FailedConnectionData, Ln as ConnectedAccountRetrieveResponseSchema, Lr as MCPMultiAppServer, Lt as ToolRouterToolkitsParamSchema, M as SessionWithoutMcp, Ma as ToolExecuteResponse, Mi as Oauth1ActiveConnectionDataSchema, Mn as ConnectedAccountListResponseItem, Mr as MCPGenerateURLParams, Mt as ToolRouterToolkitsDisabledConfigSchema, N as ToolRouterAuthorizeFn, Na as ToolExecuteResponseSchema, Ni as Oauth1ConnectionData, Nn as ConnectedAccountListResponseSchema, Nr as MCPGenerateURLParamsSchema, Nt as ToolRouterToolkitsEnabledConfigSchema, O as SessionExperimental, Oa as ToolExecuteMetaParams, Oi as CustomOauth1ConnectionDataSchema, On as ConnectedAccountExperimentalSchema, Or as GenerateURLResponseValidated, Ot as ToolRouterSessionWarning, P as ToolRouterConfigManageConnectionsSchema, Pa as ToolList, Pi as Oauth1ConnectionDataSchema, Pn as ConnectedAccountRefreshOptions, Pr as MCPGetServerParams, Pt as ToolRouterToolkitsFn, Q as ToolRouterSandboxConfigSchema, Qa as ToolkitVersionsSchema, Qi as Oauth2FailedConnectionDataSchema, Qn as CreateConnectedAccountLinkResponseSchema, Qr as McpDeleteResponse, Qt as FileDeleteResponse, R as ToolRouterConfigToolsSchema, Ra as ToolListResponseSchema, Ri as Oauth1FailedConnectionDataSchema, Rn as ConnectedAccountRevokeResponse, Rr as MCPMultiAppServerSchema, Rt as ToolRouterToolsFn, S as SessionContext, Sa as CustomAuthParams, Si as ConnectionDataSchema, Sn as ConnectedAccountCompleteAuthParamsSchema, Sr as CustomCreateResponseSchema, St as ToolRouterSessionProxyExecuteFn, T as SandboxSize, Ta as JSONSchemaPropertySchema, Ti as CustomConnectionData, Tn as ConnectedAccountExperimental, Tr as GenerateURLParamsSchema, Tt as ToolRouterSessionSearchResponse, U as ToolRouterInstantSchema, Ua as Toolkit, Ui as Oauth1InitiatingConnectionData, Un as ConnectedAccountStatusEnum, Ur as MCPServerListResponseSchema, Ut as ToolRouterUpdateManageConnectionsConfig, V as ToolRouterInputResponse, Va as ToolRetrievalOptions, Vi as Oauth1InitiatedConnectionData, Vn as ConnectedAccountRevokedTokenSchema, Vr as MCPServerCreateResponseSchema, Vt as ToolRouterUpdateExperimentalConfig, W as ToolRouterMCPServerConfig, Wa as ToolkitLatestVersion, Wi as Oauth1InitiatingConnectionDataSchema, Wn as ConnectedAccountStatusSchema, Wr as MCPServerSchema, Wt as ToolRouterUpdateManageConnectionsSchema, X as ToolRouterProxyExecuteSchema, Xa as ToolkitVersionSchema, Xi as Oauth2ExpiredConnectionDataSchema, Xn as CreateConnectedAccountLinkOptionsSchema, Xr as MCPToolkitConfigSchema, Xt as ToolkitConnectionsDetailsSchema, Y as ToolRouterProxyExecuteConfigSchema, Ya as ToolkitVersionParamSchema, Yi as Oauth2ExpiredConnectionData, Yn as CreateConnectedAccountLinkOptions, Yr as MCPToolkitConfig, Yt as ToolkitConnectionsDetails, Z as ToolRouterSandboxConfig, Za as ToolkitVersions, Zi as Oauth2FailedConnectionData, Zn as CreateConnectedAccountLinkResponse, Zr as MCPToolkitConfigsArraySchema, Zt as RemoteFile, _ as CustomToolsMapEntry, _a as afterExecuteMetaModifier, _i as ToolCallExecutionTarget, _n as ConnectedAccountAclConfigResponseSchema, _r as ComposioMcpListResponseSchema, _t as ToolRouterSessionListConfigHistoryOptionsSchema, a as CreateCustomToolkitParams, aa as Oauth2RevokedConnectionData, ai as McpServerGetResponse, an as ToolRouterSessionFilesMountDeleteOptionsSchema, ar as DefaultCreateConnectedAccountParamsSchema, at as ToolRouterSessionEnsureConnectedFn, b as RegisteredCustomTool, ba as beforeExecuteModifier, bi as BillcomAuthConnectionDataSchema, bn as ConnectedAccountAuthConfigSchema, br as ConnectionStatus, bt as ToolRouterSessionMetadata, c as CustomToolExecuteFn, ca as AgenticToolOptions, ci as McpUpdateResponse, cn as ToolRouterSessionFilesMountListOptions, cr as UpdateConnectedAccountParams, ct as ToolRouterSessionEnsureConnectedResult, d as CustomToolWireDefinition, da as MetaToolArguments, di as McpUrlResponseCamelCase, dn as ToolRouterSessionFilesMountUploadOptionsSchema, dr as BaseComposioProvider, dt as ToolRouterSessionExecuteMetaOptions, ea as Oauth2InactiveConnectionDataSchema, ei as McpListResponse, en as FileListResponse, er as CreateConnectedAccountOptionsSchema, et as ToolRouterSessionConfigHistoryConfig, f as CustomToolkit, fa as ProviderOptions, fi as McpUserConnectionStatus, fn as ComposioRequestOptions, fr as BaseNonAgenticProvider, ft as ToolRouterSessionExecuteOptions, g as CustomToolsMap, ga as TransformToolSchemaModifier, gi as Provider, gn as ConnectedAccountAclConfigResponse, gr as ComposioMcpDeleteResponseSchema, gt as ToolRouterSessionListConfigHistoryOptions, h as CustomToolkitWireDefinition, ha as ToolOptions, hi as GlobalExecuteToolFn, hn as ConnectedAccountAclConfig, hr as ComposioGenerateURLResponseSchema, ht as ToolRouterSessionListConfigHistoryFn, i as CreateCustomToolkitBaseSchema, ia as Oauth2InitiatingConnectionDataSchema, ii as McpServerCreateResponse, in as ToolRouterSessionFilesMountDeleteOptions, ir as CreateConnectedAccountResponseSchema, it as ToolRouterSessionDeleteResponseSchema, j as SessionProxyExecuteParamsSchema, ja as ToolExecuteParamsSchema, ji as Oauth1ActiveConnectionData, jn as ConnectedAccountListResponse, jr as MCPCreateMethodResponse, jt as ToolRouterTagsParamSchema, k as SessionPreset, ka as ToolExecuteMetaParamsSchema, ki as CustomOauth2ConnectionData, kn as ConnectedAccountListParams, kr as MCPAuthOptions, kt as ToolRouterSessionWorkbenchConfig, l as CustomToolResponse, la as BeforeFileUploadSource, li as McpUpdateResponseSchema, ln as ToolRouterSessionFilesMountListOptionsSchema, lr as UpdateConnectedAccountParamsSchema, lt as ToolRouterSessionExecuteFn, m as CustomToolkitResponse, ma as SessionMetaToolOptions, mi as ExecuteToolFnOptions, mn as ConnectionRequestState, mr as ComposioGenerateURLParamsSchema, mt as ToolRouterSessionExecuteResponseSchema, n as CreateCustomToolBaseSchema, na as Oauth2InitiatedConnectionDataSchema, ni as McpRetrieveResponse, nn as RemoteFileData, nr as CreateConnectedAccountParamsSchema, nt as ToolRouterSessionDeleteFn, o as CustomTool, oa as Oauth2RevokedConnectionDataSchema, oi as McpServerUrlInfo, on as ToolRouterSessionFilesMountDownloadOptions, or as UpdateConnectedAccountAclParams, ot as ToolRouterSessionEnsureConnectedOptions, p as CustomToolkitDefinition, pa as SessionExecuteMetaModifiers, pi as ExecuteToolFn, pn as ConnectionRequest, pr as ComposioCustomCreateResponseSchema, pt as ToolRouterSessionExecuteResponse, q as ToolRouterProxyExecute, qa as ToolkitVersion, qi as Oauth2ConnectionData, qn as ConnectedAccountTypeSchema, qr as MCPSingleAppServer, qt as ToolkitConnectionState, r as CreateCustomToolParams, ra as Oauth2InitiatingConnectionData, ri as McpRetrieveResponseSchema, rn as RemoteFileDataSchema, rr as CreateConnectedAccountResponse, rt as ToolRouterSessionDeleteResponse, s as CustomToolDefinition, sa as RedirectableAuthSchemeSchema, si as McpToolkitConnectionStatus, sn as ToolRouterSessionFilesMountDownloadOptionsSchema, sr as UpdateConnectedAccountAclParamsSchema, st as ToolRouterSessionEnsureConnectedOptionsSchema, t as AnyZodSchema, ta as Oauth2InitiatedConnectionData, ti as McpListResponseSchema, tn as FileListResponseSchema, tr as CreateConnectedAccountParams, tt as ToolRouterSessionConfigHistoryItem, u as CustomToolSlugSchema, ua as ExecuteToolModifiers, ui as McpUrlResponse, un as ToolRouterSessionFilesMountUploadOptions, ur as BaseAgenticProvider, ut as ToolRouterSessionExecuteMetaFn, v as InferZodSchema, va as afterExecuteModifier, vi as ToolCallSession, vn as ConnectedAccountAclConfigSchema, vr as ComposioMcpRetrieveResponseSchema, vt as ToolRouterSessionListConfigHistoryResponse, w as MCPServerTypeSchema, wa as JSONSchemaProperty, wi as ConnectionStatuses, wn as ConnectedAccountCompleteAuthResponseSchema, wr as GenerateURLParams, wt as ToolRouterSessionSearchFn, x as RegisteredCustomToolkit, xa as beforeFileUploadModifier, xi as ConnectionData, xn as ConnectedAccountCompleteAuthParams, xr as CustomCreateResponse, xt as ToolRouterSessionPreloadConfig, y as InlineCustomToolsWirePayload, ya as beforeExecuteMetaModifier, yi as BaseConnectionFields, yn as ConnectedAccountAuthConfig, yr as ComposioMcpUpdateResponseSchema, yt as ToolRouterSessionMetaToolSlug, z as ToolRouterCreateSessionConfig, za as ToolProxyParams, zi as Oauth1InactiveConnectionData, zn as ConnectedAccountRevokeResponseSchema, zr as MCPServer, zt as ToolRouterToolsParam } from "./customTool.types-Bi6-keZC.mjs";
2
- import { n as createCustomToolkit, t as createCustomTool } from "./CustomTool-DZY1yLHN.mjs";
3
- import { $ as WebhookEndpointListItemSchema, $n as WebhookRequestLike, $r as ToolkitListGrantContextsParamsSchema, $t as UsageOrderBySchema, A as LogSearchFilterSchema, An as TriggerStatusEnum, Ar as ToolKitListResponse, At as CustomToolkitAuthScheme, B as ToolExecutionLogLevelSchema, Bn as TriggersTypeListResponseSchema, Br as ToolkitCategory, Bt as CustomToolkitUpsertResponse, C as SessionConfigSummarySchema, Cn as TriggerInstanceManageUpdateParamsSchema, Cr as CreateAuthConfigParamsSchema, Ct as WebhookSubscriptionSetParamsSchema, D as LogSearchFilterFieldSchema, Dn as TriggerInstanceUpsertParamsSchema, Dr as CreateCustomAuthConfigParamsSchema, Dt as MCP, E as LogSearchFilterField, En as TriggerInstanceUpsertParams, Er as CreateComposioManagedAuthConfigParamsSchema, Et as WebhookVersionSchema, F as LogSearchTimeRange, Fn as TriggerType, Fr as ToolkitAuthConfigDetailsSchema, Ft as CustomToolkitSyncParamsSchema, G as ToolExecutionLogStatusSchema, Gn as WebhookPayload, Gr as ToolkitChangelogResponseSchema, Gt as UsageBreakdownParams, H as ToolExecutionLogMetadataSchema, Hn as VerifyWebhookParams, Hr as ToolkitChangelogItem, Ht as Usage, I as LogSearchTimeRangeSchema, In as TriggerTypeSchema, Ir as ToolkitAuthField, It as CustomToolkitSyncResponse, J as Webhooks, Jn as WebhookPayloadV1Schema, Jr as ToolkitGetManyParams, Jt as UsageBreakdownResponseSchema, K as WebhookEndpoints, Kn as WebhookPayloadSchema, Kr as ToolkitConditionalScope, Kt as UsageBreakdownParamsSchema, L as ToolExecutionLog, Ln as TriggersTypeListParams, Lr as ToolkitAuthFieldSchema, Lt as CustomToolkitSyncResponseSchema, M as LogSearchParamsSchema, Mn as TriggerStatuses, Mr as ToolKitMeta, Mt as CustomToolkitDeleteResponse, N as LogSearchResponse, Nn as TriggerSubscribeParamSchema, Nr as ToolKitMetaSchema, Nt as CustomToolkitDeleteResponseSchema, O as LogSearchFilterOperator, On as TriggerInstanceUpsertResponse, Or as ToolKitItem, Ot as Experimental, P as LogSearchResponseSchema, Pn as TriggerSubscribeParams, Pr as ToolkitAuthConfigDetails, Pt as CustomToolkitSyncParams, Q as WebhookEndpointListItem, Qn as WebhookPayloadV3Schema, Qr as ToolkitListGrantContextsParams, Qt as UsageFiltersSchema, R as ToolExecutionLogDetail, Rn as TriggersTypeListParamsSchema, Rr as ToolkitAuthFieldsResponse, Rt as CustomToolkitUpsertParams, S as SessionConfigSummary, Sn as TriggerInstanceManageUpdateParams, Sr as CreateAuthConfigParams, St as WebhookSubscriptionSetParams, T as LogSearchFilter, Tn as TriggerInstanceManageUpdateResponseSchema, Tr as CreateAuthConfigResponseSchema, Tt as WebhookSubscriptionUpdateParamsSchema, U as ToolExecutionLogParentSchema, Un as VerifyWebhookParamsSchema, Ur as ToolkitChangelogItemSchema, Ut as UsageBreakdownGroup, V as ToolExecutionLogMetadata, Vn as TriggersTypeRetrieveResponse, Vr as ToolkitCategorySchema, Vt as CustomToolkitUpsertResponseSchema, W as ToolExecutionLogSchema, Wn as VerifyWebhookResult, Wr as ToolkitChangelogResponse, Wt as UsageBreakdownGroupSchema, X as WebhookEndpointCreateParams, Xn as WebhookPayloadV2Schema, Xr as ToolkitGrantContextDimension, Xt as UsageEntitySummarySchema, Y as WebhookEndpoint, Yn as WebhookPayloadV2, Yr as ToolkitGetManySlugsSchema, Yt as UsageEntitySummary, Z as WebhookEndpointCreateParamsSchema, Zn as WebhookPayloadV3, Zr as ToolkitGrantContextDimensionSchema, Zt as UsageFilters, _ as SessionConfigListResponse, _i as ToolkitsGetManyParamsSchema, _n as TriggerInstanceListActiveResponseItem, _r as AuthCustomConfigUpdateParamsSchema, _t as WebhookSubscriptionListResponse, a as ComposioLogger, ai as ToolkitRecommendScopesParams, an as DefaultWebhookSubscriptionEvents, ar as AuthConfigCreationToolAccessConfigSchema, at as WebhookEndpointReplaceParamsSchema, b as SessionConfigPolicySchema, bn as TriggerInstanceManageDeleteResponse, br as AuthSchemeType, bt as WebhookSubscriptionRotateSecretResponseSchema, c as Keyring, ci as ToolkitRecommendScopesResponseSchema, cn as ParseWebhookOptions, cr as AuthConfigListResponse, ct as WebhookEndpointUpdateParamsSchema, d as KeyringTransferKeysResponse, di as ToolkitRetrieveResponse, dn as TriggerData, dr as AuthConfigRetrieveResponseSchema, dt as WebhookSubscriptionEventType, ei as ToolkitListGrantContextsResponse, en as UsageOrderDirectionSchema, er as WebhookSubscription, et as WebhookEndpointListParams, f as KeyringTransferKeysResponseSchema, fi as ToolkitRetrieveResponseSchema, fn as TriggerEvent, fr as AuthConfigToolAccessConfigSchema, ft as WebhookSubscriptionEventTypeSchema, g as SessionConfigListParamsSchema, gi as ToolkitVersionChangelogSchema, gn as TriggerInstanceListActiveResponse, gr as AuthConfigUpdateParamsSchema, gt as WebhookSubscriptionListParamsSchema, h as SessionConfigListParams, hi as ToolkitVersionChangelog, hn as TriggerInstanceListActiveParamsSchema, hr as AuthConfigUpdateParams, ht as WebhookSubscriptionListParams, i as OpenAIProvider, ii as ToolkitMangedByEnumSchema, in as UsageSummaryResponseSchema, ir as WebhookVersions, it as WebhookEndpointReplaceParams, j as LogSearchParams, jn as TriggerStatusType, jr as ToolKitListResponseSchema, jt as CustomToolkitAuthSchemeSchema, k as LogSearchFilterOperatorSchema, kn as TriggerInstanceUpsertResponseSchema, kr as ToolKitItemSchema, kt as CustomToolkits, l as KeyringTransferKey, li as ToolkitRetrieveCategoriesResponse, ln as SetWebhookSubscriptionParams, lr as AuthConfigListResponseSchema, lt as WebhookSubscriptionDeleteResponse, m as SessionConfig, mi as ToolkitSortByEnumSchema, mn as TriggerInstanceListActiveParams, mr as AuthConfigTypes, mt as WebhookSubscriptionEventTypesResponseSchema, n as ComposioConfig, ni as ToolkitListParams, nn as UsageSummaryParamsSchema, nr as WebhookTriggerPayloadV3Schema, nt as WebhookEndpointListResponse, o as LogLevel, oi as ToolkitRecommendScopesParamsSchema, on as IncomingTriggerPayload, or as AuthConfigListParams, ot as WebhookEndpointSchema, p as SessionConfigs, pi as ToolkitSortByEnum, pn as TriggerEventData, pr as AuthConfigType, pt as WebhookSubscriptionEventTypesResponse, q as WebhookSubscriptions, qn as WebhookPayloadV1, qr as ToolkitConditionalScopeSchema, qt as UsageBreakdownResponse, r as Sessions, ri as ToolkitMangedByEnum, rn as UsageSummaryResponse, rr as WebhookVersion, rt as WebhookEndpointListResponseSchema, s as logger, si as ToolkitRecommendScopesResponse, sn as IncomingTriggerPayloadSchema, sr as AuthConfigListParamsSchema, st as WebhookEndpointUpdateParams, t as Composio, ti as ToolkitListGrantContextsResponseSchema, tn as UsageSummaryParams, tr as WebhookTriggerPayloadV3, tt as WebhookEndpointListParamsSchema, u as KeyringTransferKeySchema, ui as ToolkitRetrieveCategoriesResponseSchema, un as SetWebhookSubscriptionParamsSchema, ur as AuthConfigRetrieveResponse, ut as WebhookSubscriptionDeleteResponseSchema, v as SessionConfigListResponseSchema, vi as ToolkitsListParamsSchema, vn as TriggerInstanceListActiveResponseItemSchema, vr as AuthDefaultConfigUpdateParamsSchema, vt as WebhookSubscriptionListResponseSchema, w as Logs, wn as TriggerInstanceManageUpdateResponse, wr as CreateAuthConfigResponse, wt as WebhookSubscriptionUpdateParams, x as SessionConfigSchema, xn as TriggerInstanceManageDeleteResponseSchema, xr as AuthSchemeTypes, xt as WebhookSubscriptionSchema, y as SessionConfigPolicy, yn as TriggerInstanceListActiveResponseSchema, yr as AuthSchemeEnum, yt as WebhookSubscriptionRotateSecretResponse, z as ToolExecutionLogDetailSchema, zn as TriggersTypeListResponse, zr as ToolkitAuthFieldsResponseSchema, zt as CustomToolkitUpsertParamsSchema } from "./composio-B8AENilE.mjs";
1
+ import { $ as ToolRouterSessionConfig, $i as Oauth2InactiveConnectionData, $n as CreateConnectedAccountOptions, $r as McpDeleteResponseSchema, $t as FileDeleteResponseSchema, A as SessionProxyExecuteParams, Aa as ToolExecuteParams, Ai as CustomOauth2ConnectionDataSchema, An as ConnectedAccountListParamsSchema, Ar as MCPAuthOptionsSchema, At as ToolRouterTagsEnableDisableSchema, B as ToolRouterCreateSessionConfigSchema, Ba as ToolProxyParamsSchema, Bi as Oauth1InactiveConnectionDataSchema, Bn as ConnectedAccountRevokedToken, Br as MCPServerCreateResponse, Bt as ToolRouterToolsParamSchema, C as MCPServerType, Ca as CustomAuthParamsSchema, Ci as ConnectionStatusEnum, Cn as ConnectedAccountCompleteAuthResponse, Cr as CustomCreateResponseValidated, Ct as ToolRouterSessionProxyExecuteResponse, D as Session, Da as Tool, Di as CustomOauth1ConnectionData, Dn as ConnectedAccountExperimentalResponseSchema, Dr as GenerateURLResponseSchema, Dt as ToolRouterSessionUpdateFn, E as SandboxSizeSchema, Ea as SchemaModifierOptions, Ei as CustomConnectionDataSchema, En as ConnectedAccountExperimentalResponse, Er as GenerateURLResponse, Et as ToolRouterSessionSearchResponseSchema, F as ToolRouterConfigTags, Fa as ToolListParams, Fi as Oauth1ExpiredConnectionData, Fn as ConnectedAccountRefreshOptionsSchema, Fr as MCPGetServerParamsSchema, Ft as ToolRouterToolkitsOptions, G as ToolRouterMCPServerConfigSchema, Ga as ToolkitLatestVersionSchema, Gi as Oauth2ActiveConnectionData, Gn as ConnectedAccountStatuses, Gr as MCPServerUpdateParams, Gt as ToolRouterUpdateSessionConfig, H as ToolRouterInstant, Ha as ToolSchema, Hi as Oauth1InitiatedConnectionDataSchema, Hn as ConnectedAccountStatus, Hr as MCPServerListResponse, Ht as ToolRouterUpdateExperimentalSchema, I as ToolRouterConfigTagsSchema, Ia as ToolListParamsSchema, Ii as Oauth1ExpiredConnectionDataSchema, In as ConnectedAccountRetrieveResponse, Ir as MCPInstanceParams, It as ToolRouterToolkitsOptionsSchema, J as ToolRouterProxyExecuteConfig, Ja as ToolkitVersionParam, Ji as Oauth2ConnectionDataSchema, Jn as ConnectedAccountTypes, Jr as MCPSingleAppServerSchema, Jt as ToolkitConnectionStateSchema, K as ToolRouterManageConnectionsConfigSchema, Ka as ToolkitSchema, Ki as Oauth2ActiveConnectionDataSchema, Kn as ConnectedAccountType, Kr as MCPServerUpdateParamsSchema, Kt as ToolRouterUpdateSessionConfigSchema, L as ToolRouterConfigTools, La as ToolListResponse, Li as Oauth1FailedConnectionData, Ln as ConnectedAccountRetrieveResponseSchema, Lr as MCPMultiAppServer, Lt as ToolRouterToolkitsParamSchema, M as SessionWithoutMcp, Ma as ToolExecuteResponse, Mi as Oauth1ActiveConnectionDataSchema, Mn as ConnectedAccountListResponseItem, Mr as MCPGenerateURLParams, Mt as ToolRouterToolkitsDisabledConfigSchema, N as ToolRouterAuthorizeFn, Na as ToolExecuteResponseSchema, Ni as Oauth1ConnectionData, Nn as ConnectedAccountListResponseSchema, Nr as MCPGenerateURLParamsSchema, Nt as ToolRouterToolkitsEnabledConfigSchema, O as SessionExperimental, Oa as ToolExecuteMetaParams, Oi as CustomOauth1ConnectionDataSchema, On as ConnectedAccountExperimentalSchema, Or as GenerateURLResponseValidated, Ot as ToolRouterSessionWarning, P as ToolRouterConfigManageConnectionsSchema, Pa as ToolList, Pi as Oauth1ConnectionDataSchema, Pn as ConnectedAccountRefreshOptions, Pr as MCPGetServerParams, Pt as ToolRouterToolkitsFn, Q as ToolRouterSandboxConfigSchema, Qa as ToolkitVersionsSchema, Qi as Oauth2FailedConnectionDataSchema, Qn as CreateConnectedAccountLinkResponseSchema, Qr as McpDeleteResponse, Qt as FileDeleteResponse, R as ToolRouterConfigToolsSchema, Ra as ToolListResponseSchema, Ri as Oauth1FailedConnectionDataSchema, Rn as ConnectedAccountRevokeResponse, Rr as MCPMultiAppServerSchema, Rt as ToolRouterToolsFn, S as SessionContext, Sa as CustomAuthParams, Si as ConnectionDataSchema, Sn as ConnectedAccountCompleteAuthParamsSchema, Sr as CustomCreateResponseSchema, St as ToolRouterSessionProxyExecuteFn, T as SandboxSize, Ta as JSONSchemaPropertySchema, Ti as CustomConnectionData, Tn as ConnectedAccountExperimental, Tr as GenerateURLParamsSchema, Tt as ToolRouterSessionSearchResponse, U as ToolRouterInstantSchema, Ua as Toolkit, Ui as Oauth1InitiatingConnectionData, Un as ConnectedAccountStatusEnum, Ur as MCPServerListResponseSchema, Ut as ToolRouterUpdateManageConnectionsConfig, V as ToolRouterInputResponse, Va as ToolRetrievalOptions, Vi as Oauth1InitiatedConnectionData, Vn as ConnectedAccountRevokedTokenSchema, Vr as MCPServerCreateResponseSchema, Vt as ToolRouterUpdateExperimentalConfig, W as ToolRouterMCPServerConfig, Wa as ToolkitLatestVersion, Wi as Oauth1InitiatingConnectionDataSchema, Wn as ConnectedAccountStatusSchema, Wr as MCPServerSchema, Wt as ToolRouterUpdateManageConnectionsSchema, X as ToolRouterProxyExecuteSchema, Xa as ToolkitVersionSchema, Xi as Oauth2ExpiredConnectionDataSchema, Xn as CreateConnectedAccountLinkOptionsSchema, Xr as MCPToolkitConfigSchema, Xt as ToolkitConnectionsDetailsSchema, Y as ToolRouterProxyExecuteConfigSchema, Ya as ToolkitVersionParamSchema, Yi as Oauth2ExpiredConnectionData, Yn as CreateConnectedAccountLinkOptions, Yr as MCPToolkitConfig, Yt as ToolkitConnectionsDetails, Z as ToolRouterSandboxConfig, Za as ToolkitVersions, Zi as Oauth2FailedConnectionData, Zn as CreateConnectedAccountLinkResponse, Zr as MCPToolkitConfigsArraySchema, Zt as RemoteFile, _ as CustomToolsMapEntry, _a as afterExecuteMetaModifier, _i as ToolCallExecutionTarget, _n as ConnectedAccountAclConfigResponseSchema, _r as ComposioMcpListResponseSchema, _t as ToolRouterSessionListConfigHistoryOptionsSchema, a as CreateCustomToolkitParams, aa as Oauth2RevokedConnectionData, ai as McpServerGetResponse, an as ToolRouterSessionFilesMountDeleteOptionsSchema, ar as DefaultCreateConnectedAccountParamsSchema, at as ToolRouterSessionEnsureConnectedFn, b as RegisteredCustomTool, ba as beforeExecuteModifier, bi as BillcomAuthConnectionDataSchema, bn as ConnectedAccountAuthConfigSchema, br as ConnectionStatus, bt as ToolRouterSessionMetadata, c as CustomToolExecuteFn, ca as AgenticToolOptions, ci as McpUpdateResponse, cn as ToolRouterSessionFilesMountListOptions, cr as UpdateConnectedAccountParams, ct as ToolRouterSessionEnsureConnectedResult, d as CustomToolWireDefinition, da as MetaToolArguments, di as McpUrlResponseCamelCase, dn as ToolRouterSessionFilesMountUploadOptionsSchema, dr as BaseComposioProvider, dt as ToolRouterSessionExecuteMetaOptions, ea as Oauth2InactiveConnectionDataSchema, ei as McpListResponse, en as FileListResponse, er as CreateConnectedAccountOptionsSchema, et as ToolRouterSessionConfigHistoryConfig, f as CustomToolkit, fa as ProviderOptions, fi as McpUserConnectionStatus, fn as ComposioRequestOptions, fr as BaseNonAgenticProvider, ft as ToolRouterSessionExecuteOptions, g as CustomToolsMap, ga as TransformToolSchemaModifier, gi as Provider, gn as ConnectedAccountAclConfigResponse, gr as ComposioMcpDeleteResponseSchema, gt as ToolRouterSessionListConfigHistoryOptions, h as CustomToolkitWireDefinition, ha as ToolOptions, hi as GlobalExecuteToolFn, hn as ConnectedAccountAclConfig, hr as ComposioGenerateURLResponseSchema, ht as ToolRouterSessionListConfigHistoryFn, i as CreateCustomToolkitBaseSchema, ia as Oauth2InitiatingConnectionDataSchema, ii as McpServerCreateResponse, in as ToolRouterSessionFilesMountDeleteOptions, ir as CreateConnectedAccountResponseSchema, it as ToolRouterSessionDeleteResponseSchema, j as SessionProxyExecuteParamsSchema, ja as ToolExecuteParamsSchema, ji as Oauth1ActiveConnectionData, jn as ConnectedAccountListResponse, jr as MCPCreateMethodResponse, jt as ToolRouterTagsParamSchema, k as SessionPreset, ka as ToolExecuteMetaParamsSchema, ki as CustomOauth2ConnectionData, kn as ConnectedAccountListParams, kr as MCPAuthOptions, kt as ToolRouterSessionWorkbenchConfig, l as CustomToolResponse, la as BeforeFileUploadSource, li as McpUpdateResponseSchema, ln as ToolRouterSessionFilesMountListOptionsSchema, lr as UpdateConnectedAccountParamsSchema, lt as ToolRouterSessionExecuteFn, m as CustomToolkitResponse, ma as SessionMetaToolOptions, mi as ExecuteToolFnOptions, mn as ConnectionRequestState, mr as ComposioGenerateURLParamsSchema, mt as ToolRouterSessionExecuteResponseSchema, n as CreateCustomToolBaseSchema, na as Oauth2InitiatedConnectionDataSchema, ni as McpRetrieveResponse, nn as RemoteFileData, nr as CreateConnectedAccountParamsSchema, nt as ToolRouterSessionDeleteFn, o as CustomTool, oa as Oauth2RevokedConnectionDataSchema, oi as McpServerUrlInfo, on as ToolRouterSessionFilesMountDownloadOptions, or as UpdateConnectedAccountAclParams, ot as ToolRouterSessionEnsureConnectedOptions, p as CustomToolkitDefinition, pa as SessionExecuteMetaModifiers, pi as ExecuteToolFn, pn as ConnectionRequest, pr as ComposioCustomCreateResponseSchema, pt as ToolRouterSessionExecuteResponse, q as ToolRouterProxyExecute, qa as ToolkitVersion, qi as Oauth2ConnectionData, qn as ConnectedAccountTypeSchema, qr as MCPSingleAppServer, qt as ToolkitConnectionState, r as CreateCustomToolParams, ra as Oauth2InitiatingConnectionData, ri as McpRetrieveResponseSchema, rn as RemoteFileDataSchema, rr as CreateConnectedAccountResponse, rt as ToolRouterSessionDeleteResponse, s as CustomToolDefinition, sa as RedirectableAuthSchemeSchema, si as McpToolkitConnectionStatus, sn as ToolRouterSessionFilesMountDownloadOptionsSchema, sr as UpdateConnectedAccountAclParamsSchema, st as ToolRouterSessionEnsureConnectedOptionsSchema, t as AnyZodSchema, ta as Oauth2InitiatedConnectionData, ti as McpListResponseSchema, tn as FileListResponseSchema, tr as CreateConnectedAccountParams, tt as ToolRouterSessionConfigHistoryItem, u as CustomToolSlugSchema, ua as ExecuteToolModifiers, ui as McpUrlResponse, un as ToolRouterSessionFilesMountUploadOptions, ur as BaseAgenticProvider, ut as ToolRouterSessionExecuteMetaFn, v as InferZodSchema, va as afterExecuteModifier, vi as ToolCallSession, vn as ConnectedAccountAclConfigSchema, vr as ComposioMcpRetrieveResponseSchema, vt as ToolRouterSessionListConfigHistoryResponse, w as MCPServerTypeSchema, wa as JSONSchemaProperty, wi as ConnectionStatuses, wn as ConnectedAccountCompleteAuthResponseSchema, wr as GenerateURLParams, wt as ToolRouterSessionSearchFn, x as RegisteredCustomToolkit, xa as beforeFileUploadModifier, xi as ConnectionData, xn as ConnectedAccountCompleteAuthParams, xr as CustomCreateResponse, xt as ToolRouterSessionPreloadConfig, y as InlineCustomToolsWirePayload, ya as beforeExecuteMetaModifier, yi as BaseConnectionFields, yn as ConnectedAccountAuthConfig, yr as ComposioMcpUpdateResponseSchema, yt as ToolRouterSessionMetaToolSlug, z as ToolRouterCreateSessionConfig, za as ToolProxyParams, zi as Oauth1InactiveConnectionData, zn as ConnectedAccountRevokeResponseSchema, zr as MCPServer, zt as ToolRouterToolsParam } from "./customTool.types-BoOELgJF.mjs";
2
+ import { n as createCustomToolkit, t as createCustomTool } from "./CustomTool-DfP4ldQl.mjs";
3
+ import { $ as WebhookEndpointListItemSchema, $n as WebhookRequestLike, $r as ToolkitListGrantContextsParamsSchema, $t as UsageOrderBySchema, A as LogSearchFilterSchema, An as TriggerStatusEnum, Ar as ToolKitListResponse, At as CustomToolkitAuthScheme, B as ToolExecutionLogLevelSchema, Bn as TriggersTypeListResponseSchema, Br as ToolkitCategory, Bt as CustomToolkitUpsertResponse, C as SessionConfigSummarySchema, Cn as TriggerInstanceManageUpdateParamsSchema, Cr as CreateAuthConfigParamsSchema, Ct as WebhookSubscriptionSetParamsSchema, D as LogSearchFilterFieldSchema, Dn as TriggerInstanceUpsertParamsSchema, Dr as CreateCustomAuthConfigParamsSchema, Dt as MCP, E as LogSearchFilterField, En as TriggerInstanceUpsertParams, Er as CreateComposioManagedAuthConfigParamsSchema, Et as WebhookVersionSchema, F as LogSearchTimeRange, Fn as TriggerType, Fr as ToolkitAuthConfigDetailsSchema, Ft as CustomToolkitSyncParamsSchema, G as ToolExecutionLogStatusSchema, Gn as WebhookPayload, Gr as ToolkitChangelogResponseSchema, Gt as UsageBreakdownParams, H as ToolExecutionLogMetadataSchema, Hn as VerifyWebhookParams, Hr as ToolkitChangelogItem, Ht as Usage, I as LogSearchTimeRangeSchema, In as TriggerTypeSchema, Ir as ToolkitAuthField, It as CustomToolkitSyncResponse, J as Webhooks, Jn as WebhookPayloadV1Schema, Jr as ToolkitGetManyParams, Jt as UsageBreakdownResponseSchema, K as WebhookEndpoints, Kn as WebhookPayloadSchema, Kr as ToolkitConditionalScope, Kt as UsageBreakdownParamsSchema, L as ToolExecutionLog, Ln as TriggersTypeListParams, Lr as ToolkitAuthFieldSchema, Lt as CustomToolkitSyncResponseSchema, M as LogSearchParamsSchema, Mn as TriggerStatuses, Mr as ToolKitMeta, Mt as CustomToolkitDeleteResponse, N as LogSearchResponse, Nn as TriggerSubscribeParamSchema, Nr as ToolKitMetaSchema, Nt as CustomToolkitDeleteResponseSchema, O as LogSearchFilterOperator, On as TriggerInstanceUpsertResponse, Or as ToolKitItem, Ot as Experimental, P as LogSearchResponseSchema, Pn as TriggerSubscribeParams, Pr as ToolkitAuthConfigDetails, Pt as CustomToolkitSyncParams, Q as WebhookEndpointListItem, Qn as WebhookPayloadV3Schema, Qr as ToolkitListGrantContextsParams, Qt as UsageFiltersSchema, R as ToolExecutionLogDetail, Rn as TriggersTypeListParamsSchema, Rr as ToolkitAuthFieldsResponse, Rt as CustomToolkitUpsertParams, S as SessionConfigSummary, Sn as TriggerInstanceManageUpdateParams, Sr as CreateAuthConfigParams, St as WebhookSubscriptionSetParams, T as LogSearchFilter, Tn as TriggerInstanceManageUpdateResponseSchema, Tr as CreateAuthConfigResponseSchema, Tt as WebhookSubscriptionUpdateParamsSchema, U as ToolExecutionLogParentSchema, Un as VerifyWebhookParamsSchema, Ur as ToolkitChangelogItemSchema, Ut as UsageBreakdownGroup, V as ToolExecutionLogMetadata, Vn as TriggersTypeRetrieveResponse, Vr as ToolkitCategorySchema, Vt as CustomToolkitUpsertResponseSchema, W as ToolExecutionLogSchema, Wn as VerifyWebhookResult, Wr as ToolkitChangelogResponse, Wt as UsageBreakdownGroupSchema, X as WebhookEndpointCreateParams, Xn as WebhookPayloadV2Schema, Xr as ToolkitGrantContextDimension, Xt as UsageEntitySummarySchema, Y as WebhookEndpoint, Yn as WebhookPayloadV2, Yr as ToolkitGetManySlugsSchema, Yt as UsageEntitySummary, Z as WebhookEndpointCreateParamsSchema, Zn as WebhookPayloadV3, Zr as ToolkitGrantContextDimensionSchema, Zt as UsageFilters, _ as SessionConfigListResponse, _i as ToolkitsGetManyParamsSchema, _n as TriggerInstanceListActiveResponseItem, _r as AuthCustomConfigUpdateParamsSchema, _t as WebhookSubscriptionListResponse, a as ComposioLogger, ai as ToolkitRecommendScopesParams, an as DefaultWebhookSubscriptionEvents, ar as AuthConfigCreationToolAccessConfigSchema, at as WebhookEndpointReplaceParamsSchema, b as SessionConfigPolicySchema, bn as TriggerInstanceManageDeleteResponse, br as AuthSchemeType, bt as WebhookSubscriptionRotateSecretResponseSchema, c as Keyring, ci as ToolkitRecommendScopesResponseSchema, cn as ParseWebhookOptions, cr as AuthConfigListResponse, ct as WebhookEndpointUpdateParamsSchema, d as KeyringTransferKeysResponse, di as ToolkitRetrieveResponse, dn as TriggerData, dr as AuthConfigRetrieveResponseSchema, dt as WebhookSubscriptionEventType, ei as ToolkitListGrantContextsResponse, en as UsageOrderDirectionSchema, er as WebhookSubscription, et as WebhookEndpointListParams, f as KeyringTransferKeysResponseSchema, fi as ToolkitRetrieveResponseSchema, fn as TriggerEvent, fr as AuthConfigToolAccessConfigSchema, ft as WebhookSubscriptionEventTypeSchema, g as SessionConfigListParamsSchema, gi as ToolkitVersionChangelogSchema, gn as TriggerInstanceListActiveResponse, gr as AuthConfigUpdateParamsSchema, gt as WebhookSubscriptionListParamsSchema, h as SessionConfigListParams, hi as ToolkitVersionChangelog, hn as TriggerInstanceListActiveParamsSchema, hr as AuthConfigUpdateParams, ht as WebhookSubscriptionListParams, i as OpenAIProvider, ii as ToolkitMangedByEnumSchema, in as UsageSummaryResponseSchema, ir as WebhookVersions, it as WebhookEndpointReplaceParams, j as LogSearchParams, jn as TriggerStatusType, jr as ToolKitListResponseSchema, jt as CustomToolkitAuthSchemeSchema, k as LogSearchFilterOperatorSchema, kn as TriggerInstanceUpsertResponseSchema, kr as ToolKitItemSchema, kt as CustomToolkits, l as KeyringTransferKey, li as ToolkitRetrieveCategoriesResponse, ln as SetWebhookSubscriptionParams, lr as AuthConfigListResponseSchema, lt as WebhookSubscriptionDeleteResponse, m as SessionConfig, mi as ToolkitSortByEnumSchema, mn as TriggerInstanceListActiveParams, mr as AuthConfigTypes, mt as WebhookSubscriptionEventTypesResponseSchema, n as ComposioConfig, ni as ToolkitListParams, nn as UsageSummaryParamsSchema, nr as WebhookTriggerPayloadV3Schema, nt as WebhookEndpointListResponse, o as LogLevel, oi as ToolkitRecommendScopesParamsSchema, on as IncomingTriggerPayload, or as AuthConfigListParams, ot as WebhookEndpointSchema, p as SessionConfigs, pi as ToolkitSortByEnum, pn as TriggerEventData, pr as AuthConfigType, pt as WebhookSubscriptionEventTypesResponse, q as WebhookSubscriptions, qn as WebhookPayloadV1, qr as ToolkitConditionalScopeSchema, qt as UsageBreakdownResponse, r as Sessions, ri as ToolkitMangedByEnum, rn as UsageSummaryResponse, rr as WebhookVersion, rt as WebhookEndpointListResponseSchema, s as logger, si as ToolkitRecommendScopesResponse, sn as IncomingTriggerPayloadSchema, sr as AuthConfigListParamsSchema, st as WebhookEndpointUpdateParams, t as Composio, ti as ToolkitListGrantContextsResponseSchema, tn as UsageSummaryParams, tr as WebhookTriggerPayloadV3, tt as WebhookEndpointListParamsSchema, u as KeyringTransferKeySchema, ui as ToolkitRetrieveCategoriesResponseSchema, un as SetWebhookSubscriptionParamsSchema, ur as AuthConfigRetrieveResponse, ut as WebhookSubscriptionDeleteResponseSchema, v as SessionConfigListResponseSchema, vi as ToolkitsListParamsSchema, vn as TriggerInstanceListActiveResponseItemSchema, vr as AuthDefaultConfigUpdateParamsSchema, vt as WebhookSubscriptionListResponseSchema, w as Logs, wn as TriggerInstanceManageUpdateResponse, wr as CreateAuthConfigResponse, wt as WebhookSubscriptionUpdateParams, x as SessionConfigSchema, xn as TriggerInstanceManageDeleteResponseSchema, xr as AuthSchemeTypes, xt as WebhookSubscriptionSchema, y as SessionConfigPolicy, yn as TriggerInstanceListActiveResponseSchema, yr as AuthSchemeEnum, yt as WebhookSubscriptionRotateSecretResponse, z as ToolExecutionLogDetailSchema, zn as TriggersTypeListResponse, zr as ToolkitAuthFieldsResponseSchema, zt as CustomToolkitUpsertParamsSchema } from "./composio-BMDH-1Qj.mjs";
4
4
  import { n as FileUploadData, t as FileDownloadData } from "./files.types-DeMC_mAW.mjs";
5
5
  import ComposioClient, { Composio as Composio$1 } from "@composio/client";
6
6
  import { z as z$1 } from "zod/v3";
@@ -161,10 +161,13 @@ export declare function jsonSchemaToZodSchema<T extends z$1.ZodTypeAny>(jsonSche
161
161
  * added to it and widened to accept `null`, the emulation of optional
162
162
  * fields that OpenAI structured outputs document.
163
163
  * - `unsupported-keyword-stripped` — an annotation keyword the API rejects
164
- * (`default`, `examples`) was removed.
164
+ * (`default`, `examples`, or a string `format` outside the accepted list)
165
+ * was removed.
165
166
  * - `one-of-converted` — `oneOf` (unsupported) became `anyOf`.
167
+ * - `nullable-converted` — OpenAPI `nullable: true`, which Anthropic rejects
168
+ * on an object, became a `null` member of `type` or a null branch.
166
169
  */
167
- type StrictSchemaChangeReason = 'optional-property-nullable' | 'unsupported-keyword-stripped' | 'one-of-converted';
170
+ type StrictSchemaChangeReason = 'optional-property-nullable' | 'unsupported-keyword-stripped' | 'one-of-converted' | 'nullable-converted';
168
171
  /** A single lossless rewrite applied by {@link toStrictJsonSchema}. */
169
172
  interface StrictSchemaChange {
170
173
  /** Path to the changed node relative to the root, e.g. `properties.cfg.items`. */
@@ -216,7 +219,9 @@ interface StrictJsonSchemaResult {
216
219
  * sends for such a property means "omitted"; the strict providers drop it
217
220
  * before executing the tool (see {@link omitNullToolArguments});
218
221
  * - `type` arrays are kept as-is (the API accepts them); `oneOf` becomes
219
- * `anyOf`; `default` and `examples` are stripped;
222
+ * `anyOf`; `default`, `examples`, and a string `format` the API does
223
+ * not accept are stripped; OpenAPI `nullable` is stripped too, and a
224
+ * node that set it to `true` is widened to accept `null`;
220
225
  * - local `$ref`s into `$defs`/`definitions` are kept (the API supports
221
226
  * them, including recursion) and the definitions themselves are
222
227
  * normalized; an optional `$ref` property is widened with an `anyOf`