@composio/core 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CustomTool-CBx9kzea.d.mts → CustomTool-C2kvAvzk.d.mts} +1 -1
- package/dist/{Telemetry-BWKZmDxM.mjs → Telemetry-CcCuFVUb.mjs} +1 -1
- package/dist/{composio-CPf6NHnB.d.mts → composio-BqE615oV.d.mts} +126 -95
- package/dist/{customTool.types-BSbIG1OG.d.mts → customTool.types-DnyEZmlx.d.mts} +312 -58
- package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +52 -8
- package/dist/experimental/index.d.mts +2 -2
- package/dist/{fileUtils.node-BJUYMEph.mjs → fileUtils.node-DPMtE0ER.mjs} +1 -65
- package/dist/index.d.mts +5 -238
- package/dist/index.mjs +52 -23
- package/dist/jsonSchema-CDHLYm7d.d.mts +237 -0
- package/dist/{jsonSchema-BZoXGUCr.mjs → jsonSchema-CfZwBS13.mjs} +5 -1
- package/dist/models/Files.node.mjs +3 -3
- package/dist/{sensitiveFileUploadPaths-CcbMAYCC.mjs → sensitiveFileUploadPaths-6NcnFSyX.mjs} +61 -70
- package/dist/{types-ns3Q_WrP.d.mts → types-Cwr_Makk.d.mts} +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -1
- package/dist/utils/json-schema.d.mts +2 -1
- package/dist/utils/json-schema.mjs +2 -1
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +3 -3
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +6 -6
- package/src/models/ConnectedAccounts.ts +71 -11
- package/src/types/connectedAccounts.types.ts +59 -1
- package/src/types/toolRouter.types.ts +2 -1
- package/src/utils/fileUtils.node.ts +1 -83
- package/src/utils/json-schema.ts +6 -0
- package/src/utils/jsonSchema.ts +17 -4
- package/src/utils/mime.ts +25 -385
- package/src/utils/mimeTables.generated.ts +356 -0
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as constants_exports, c as invokeUserCallback, d as COMPOSIO_DIR, f as DEFAULT_BASE_URL, g as USER_DATA_FILE_NAME, h as TEMP_FILES_DIRECTORY_NAME, i as apiErrorSuggestedFixes, l as logger, m as IS_DEVELOPMENT_OR_CI, n as SsrfErrorCodes, o as withApiErrorMessage, p as DEFAULT_TOOL_ROUTER_SESSION_FILES_MOUNT_ID, r as ComposioError, s as describeThrown, t as ComposioBlockedInternalUrlError, v as getEnvVariable, y as getEnvsWithPrefix } from "./SsrfErrors-BekZPeWY.mjs";
|
|
2
|
-
import { a as omitNullToolArguments, i as jsonSchemaToZodSchema, n as dereferenceJsonSchema, o as removeNonRequiredProperties, r as ensureObjectTypeOnProperties, s as toStrictJsonSchema, t as deduplicateJsonSchemaRequiredArrays } from "./jsonSchema-
|
|
2
|
+
import { a as omitNullToolArguments, i as jsonSchemaToZodSchema, n as dereferenceJsonSchema, o as removeNonRequiredProperties, r as ensureObjectTypeOnProperties, s as toStrictJsonSchema, t as deduplicateJsonSchemaRequiredArrays } from "./jsonSchema-CfZwBS13.mjs";
|
|
3
3
|
import { $ as ComposioAuthConfigNotFoundError, A as ComposioToolFetchRateLimitError, B as ConnectionRequestFailedError, C as ComposioInvalidExecuteFunctionError, D as ComposioToolExecutionError, E as ComposioProviderNotDefinedError, F as handleToolExecutionError, G as ComposioConnectedAccountRevocationNotSupportedError, H as ComposioAclOnlyForSharedError, I as isComposioRateLimitError, J as ComposioMultipleConnectedAccountsError, K as ComposioFailedToCreateConnectedAccountLink, L as getRetryAfterSeconds, M as ComposioToolSchemaInvalidError, N as ComposioToolVersionRequiredError, O as ComposioToolExecutionRateLimitError, P as ToolErrorCodes, Q as AuthConfigErrorCodes, R as isRateLimitResponse, S as ComposioGlobalExecuteToolFnNotSetError, T as ComposioInvalidToolArgumentsError, U as ComposioConnectedAccountNotFoundError, V as ConnectionRequestTimeoutError, W as ComposioConnectedAccountNotRevokableError, X as ComposioSharedConnectionNotAccessibleError, Y as ComposioSharedAccessDeniedError, Z as ConnectedAccountErrorCodes, _ as ValidationError, a as RemoteFileDownloadError, b as ComposioToolkitNotFoundError, c as ComposioFailedToGetSDKRealtimeCredentialsError, d as ComposioTriggerTypeNotFoundError, f as ComposioWebhookPayloadError, g as JsonSchemaToZodError, h as JsonSchemaRefResolutionError, i as ToolRouterErrorCodes, j as ComposioToolNotFoundError, k as ComposioToolFetchError, l as ComposioFailedToSubscribeToPusherChannelError, m as TriggerErrorCodes, n as ComposioSessionConfigConflictError, o as RemoteFileErrorCodes, p as ComposioWebhookSignatureVerificationError, q as ComposioLegacyConnectedAccountsEndpointRetiredError, r as ComposioToolInputRequiredError, s as ComposioFailedToCreatePusherClientError, t as ComposioMCPDestinationError, u as ComposioFailedToUnsubscribeFromPusherChannelError, v as ValidationErrorCodes, w as ComposioInvalidModifierError, x as ToolkitErrorCodes, y as ComposioToolkitFetchError, z as ConnectionRequestErrorCodes } from "./errors-CtIKA9BH.mjs";
|
|
4
|
-
import { t as telemetry } from "./Telemetry-
|
|
4
|
+
import { t as telemetry } from "./Telemetry-CcCuFVUb.mjs";
|
|
5
5
|
import { n as dropEmptyFileUploads, o as isPlainObject, s as schemaHasFileUploadable } from "./FileToolModifier.utils.neutral-BQP85ZJj.mjs";
|
|
6
|
-
import { c as readBodyWithLimit, i as getExtensionFromMimeType, l as readResponseBodyWithLimit, m as getRandomShortId, n as assertSafeFileUploadPath, o as MAX_URL_UPLOAD_SIZE_BYTES, p as withCancellation, r as isBlockedSensitiveFileUploadPath, s as assertValidBodyLimit, t as BUILTIN_FILE_UPLOAD_PATH_DENY_SEGMENTS, u as arrayBufferToBase64 } from "./sensitiveFileUploadPaths-
|
|
6
|
+
import { c as readBodyWithLimit, i as getExtensionFromMimeType, l as readResponseBodyWithLimit, m as getRandomShortId, n as assertSafeFileUploadPath, o as MAX_URL_UPLOAD_SIZE_BYTES, p as withCancellation, r as isBlockedSensitiveFileUploadPath, s as assertValidBodyLimit, t as BUILTIN_FILE_UPLOAD_PATH_DENY_SEGMENTS, u as arrayBufferToBase64 } from "./sensitiveFileUploadPaths-6NcnFSyX.mjs";
|
|
7
7
|
import { a as ComposioSensitiveFilePathBlockedError, c as ComposioNoAPIKeyError, d as SDKErrorCodes, f as isRequestAbortError, i as ComposioFileUploadPathNotAllowedError, l as ComposioRequestCancelledError, n as ComposioFileUploadAbortedError, o as FileModifierErrorCodes, r as ComposioFileUploadError, s as ComposioAPIKeyKindError, t as ComposioFileNotFoundError, u as ComposioScopeConfigError } from "./FileModifierErrors-D-AKc3ds.mjs";
|
|
8
8
|
import { a as createCustomToolkit, c as getPreloadedCustomToolSlugs, d as CreateCustomToolBaseSchema, f as CreateCustomToolkitBaseSchema, i as createCustomTool, l as serializeCustomToolkits, n as buildCustomToolsMap, o as findCustomToolMapEntryByFinalSlug, p as CustomToolSlugSchema, r as buildCustomToolsMapFromResponse, s as findCustomToolMapEntryByToolkitAndOriginalSlug, t as assertNoCustomToolSlugsInPreload, u as serializeCustomTools } from "./CustomTool-B4dQn2M5.mjs";
|
|
9
9
|
import ComposioClient, { APIError, Auth, BadRequestError, ConflictError, createFetchTransport } from "@composio/client";
|
|
@@ -3206,6 +3206,38 @@ const ConnectedAccountRefreshOptionsSchema = z$1.object({
|
|
|
3206
3206
|
validateCredentials: z$1.boolean().optional()
|
|
3207
3207
|
});
|
|
3208
3208
|
const UpdateConnectedAccountParamsSchema = z$1.object({ enabled: z$1.boolean() });
|
|
3209
|
+
const credentialField = z$1.string().nullable().optional();
|
|
3210
|
+
const PatchConnectedAccountParamsSchema = z$1.object({
|
|
3211
|
+
alias: z$1.string().optional(),
|
|
3212
|
+
connection: z$1.object({ state: z$1.object({
|
|
3213
|
+
authScheme: z$1.enum([
|
|
3214
|
+
"BEARER_TOKEN",
|
|
3215
|
+
"API_KEY",
|
|
3216
|
+
"BASIC",
|
|
3217
|
+
"BASIC_WITH_JWT",
|
|
3218
|
+
"GOOGLE_SERVICE_ACCOUNT",
|
|
3219
|
+
"SERVICE_ACCOUNT"
|
|
3220
|
+
]),
|
|
3221
|
+
val: z$1.object({
|
|
3222
|
+
token: credentialField,
|
|
3223
|
+
generic_api_key: credentialField,
|
|
3224
|
+
api_key: credentialField,
|
|
3225
|
+
bearer_token: credentialField,
|
|
3226
|
+
basic_encoded: credentialField,
|
|
3227
|
+
generic_token: credentialField,
|
|
3228
|
+
api_key_prefix: credentialField,
|
|
3229
|
+
generic_secret: credentialField,
|
|
3230
|
+
generic_id: credentialField,
|
|
3231
|
+
user_agent: credentialField,
|
|
3232
|
+
username: credentialField,
|
|
3233
|
+
password: credentialField,
|
|
3234
|
+
credentials_json: credentialField,
|
|
3235
|
+
application_id: credentialField,
|
|
3236
|
+
installation_id: credentialField,
|
|
3237
|
+
private_key: credentialField
|
|
3238
|
+
}).strict()
|
|
3239
|
+
}).strict() }).strict().optional()
|
|
3240
|
+
}).strict().refine((params) => params.alias !== void 0 || params.connection !== void 0, { message: "At least one of alias or connection must be provided" });
|
|
3209
3241
|
/**
|
|
3210
3242
|
* Params for `composio.connectedAccounts.updateAcl()`. Mirrors the inner
|
|
3211
3243
|
* shape of the wire's `acl_config_for_shared` block — the SDK adds the
|
|
@@ -4197,6 +4229,13 @@ var Experimental = class {
|
|
|
4197
4229
|
* @date 2025-05-05
|
|
4198
4230
|
* @module ConnectedAccounts
|
|
4199
4231
|
*/
|
|
4232
|
+
const UpdateRequestSchema = z$1.union([PatchConnectedAccountParamsSchema.transform((body) => ({
|
|
4233
|
+
endpoint: "patch",
|
|
4234
|
+
body
|
|
4235
|
+
})), UpdateConnectedAccountParamsSchema.strict().transform((body) => ({
|
|
4236
|
+
endpoint: "status",
|
|
4237
|
+
body
|
|
4238
|
+
}))]);
|
|
4200
4239
|
let _legacyInitiateWarningEmitted = false;
|
|
4201
4240
|
/**
|
|
4202
4241
|
* ConnectedAccounts class
|
|
@@ -4696,25 +4735,15 @@ var ConnectedAccounts = class {
|
|
|
4696
4735
|
async updateAcl(nanoid, params) {
|
|
4697
4736
|
return updateConnectedAccountAcl(this.client, nanoid, params);
|
|
4698
4737
|
}
|
|
4699
|
-
/**
|
|
4700
|
-
* Enable or disable a connected account. Accepts `{ enabled: boolean }`.
|
|
4701
|
-
*
|
|
4702
|
-
* Use `updateAcl()` for ACL writes on SHARED connections.
|
|
4703
|
-
*
|
|
4704
|
-
* @param {string} nanoid - The unique identifier of the connected account
|
|
4705
|
-
* @param {UpdateConnectedAccountParams} params - The update parameters
|
|
4706
|
-
* @returns {Promise<ConnectedAccountUpdateStatusResponse>} The update response
|
|
4707
|
-
*
|
|
4708
|
-
* @example
|
|
4709
|
-
* ```typescript
|
|
4710
|
-
* // Disable an account
|
|
4711
|
-
* await composio.connectedAccounts.update('ca_abc123', { enabled: false });
|
|
4712
|
-
* ```
|
|
4713
|
-
*/
|
|
4714
4738
|
async update(nanoid, params, requestOptions) {
|
|
4715
|
-
const parsedParams =
|
|
4739
|
+
const parsedParams = UpdateRequestSchema.safeParse(params);
|
|
4716
4740
|
if (!parsedParams.success) throw new ValidationError("Failed to parse connected account update params", { cause: parsedParams.error });
|
|
4717
|
-
|
|
4741
|
+
const request = parsedParams.data;
|
|
4742
|
+
if (request.endpoint === "status") {
|
|
4743
|
+
logger.warn("connectedAccounts.update({ enabled }) is deprecated; use connectedAccounts.enable() or connectedAccounts.disable() instead.");
|
|
4744
|
+
return withCancellation(() => this.client.connectedAccounts.updateStatus(nanoid, request.body, requestOptions), requestOptions?.signal);
|
|
4745
|
+
}
|
|
4746
|
+
return withCancellation(() => this.client.connectedAccounts.patch(nanoid, request.body, requestOptions), requestOptions?.signal);
|
|
4718
4747
|
}
|
|
4719
4748
|
};
|
|
4720
4749
|
|
|
@@ -8619,7 +8648,7 @@ const SessionProxyExecuteParamsSchema = z.object({
|
|
|
8619
8648
|
* the sibling connection settings untouched.
|
|
8620
8649
|
*/
|
|
8621
8650
|
const ToolRouterUpdateManageConnectionsSchema = z.object({
|
|
8622
|
-
enable: z.boolean().optional().describe("Whether to
|
|
8651
|
+
enable: z.boolean().nullable().optional().describe("Whether to expose connection management tools in the session. Pass null to restore the default (true)."),
|
|
8623
8652
|
callbackUrl: z.string().nullable().optional().describe("The callback url to use in the tool router session. `null` removes the stored callback url; sibling settings are untouched"),
|
|
8624
8653
|
waitForConnections: z.boolean().optional().describe("Whether to wait for users to finish authenticating connections before proceeding to the next step. Defaults to false, if set to true, a wait for connections tool call will happen and finish when the connections are ready"),
|
|
8625
8654
|
enableConnectionRemoval: z.boolean().nullable().optional().describe("Whether the session exposes the connection removal tool. `null` removes the stored override")
|
|
@@ -9315,7 +9344,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
9315
9344
|
};
|
|
9316
9345
|
|
|
9317
9346
|
// package.json
|
|
9318
|
-
var version = "0.
|
|
9347
|
+
var version = "0.33.0";
|
|
9319
9348
|
|
|
9320
9349
|
// src/utils/session.ts
|
|
9321
9350
|
/**
|
|
@@ -13047,4 +13076,4 @@ const ComposioMcpUpdateResponseSchema = z$1.object({
|
|
|
13047
13076
|
tools: z$1.array(z$1.string()).optional()
|
|
13048
13077
|
});
|
|
13049
13078
|
|
|
13050
|
-
export { AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParamsSchema, AuthConfigListResponseSchema, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigTypes, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeTypes, BUILTIN_FILE_UPLOAD_PATH_DENY_SEGMENTS, BaseAgenticProvider, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIKeyKindError, ComposioAclOnlyForSharedError, ComposioAuthConfigNotFoundError, ComposioBlockedInternalUrlError, ComposioConnectedAccountNotFoundError, ComposioConnectedAccountNotRevokableError, ComposioConnectedAccountRevocationNotSupportedError, ComposioCustomCreateResponseSchema, ComposioError, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioFileNotFoundError, ComposioFileUploadAbortedError, ComposioFileUploadError, ComposioFileUploadPathNotAllowedError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioInvalidToolArgumentsError, ComposioLegacyConnectedAccountsEndpointRetiredError, ComposioMCPDestinationError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioRequestCancelledError, ComposioScopeConfigError, ComposioSensitiveFilePathBlockedError, ComposioSessionConfigConflictError, ComposioSharedAccessDeniedError, ComposioSharedConnectionNotAccessibleError, ComposioToolExecutionError, ComposioToolExecutionRateLimitError, ComposioToolFetchError, ComposioToolFetchRateLimitError, ComposioToolInputRequiredError, ComposioToolNotFoundError, ComposioToolSchemaInvalidError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAclConfigResponseSchema, ConnectedAccountAclConfigSchema, ConnectedAccountAuthConfigSchema, ConnectedAccountCompleteAuthParamsSchema, ConnectedAccountCompleteAuthResponseSchema, ConnectedAccountErrorCodes, ConnectedAccountExperimentalResponseSchema, ConnectedAccountExperimentalSchema, ConnectedAccountListParamsSchema, ConnectedAccountListResponseSchema, ConnectedAccountRefreshOptionsSchema, ConnectedAccountRetrieveResponseSchema, ConnectedAccountRevokeResponseSchema, ConnectedAccountRevokedTokenSchema, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectedAccountTypeSchema, ConnectedAccountTypes, ConnectionDataSchema, ConnectionExpiredEventSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatuses, CreateAuthConfigParamsSchema, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CreateCustomToolBaseSchema, CreateCustomToolkitBaseSchema, CustomAuthParamsSchema, CustomConnectionDataSchema, CustomCreateResponseSchema, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionDataSchema, CustomToolSlugSchema, CustomToolkitAuthSchemeSchema, CustomToolkitCreateParamsSchema, CustomToolkitCreateResponseSchema, CustomToolkitDeleteResponseSchema, CustomToolkitSyncParamsSchema, CustomToolkitSyncResponseSchema, CustomToolkitUpdateParamsSchema, CustomToolkitUpdateResponseSchema, CustomToolkitUpsertParamsSchema, CustomToolkitUpsertResponseSchema, CustomToolkits, DefaultCreateConnectedAccountParamsSchema, DefaultWebhookSubscriptionEvents, Experimental, FileDeleteResponseSchema, FileListResponseSchema, FileModifierErrorCodes, GenerateURLParamsSchema, GenerateURLResponseSchema, IncomingTriggerPayloadSchema, JSONSchemaPropertySchema, JsonSchemaRefResolutionError, JsonSchemaToZodError, Keyring, KeyringTransferKeySchema, KeyringTransferKeysResponseSchema, LogSearchFilterFieldSchema, LogSearchFilterOperatorSchema, LogSearchFilterSchema, LogSearchParamsSchema, LogSearchResponseSchema, LogSearchTimeRangeSchema, Logs, MAX_URL_UPLOAD_SIZE_BYTES, MCP, MCPAuthOptionsSchema, MCPGenerateURLParamsSchema, MCPGetServerParamsSchema, MCPMultiAppServerSchema, MCPServerCreateResponseSchema, MCPServerListResponseSchema, MCPServerSchema, MCPServerTypeSchema, MCPServerUpdateParamsSchema, MCPSingleAppServerSchema, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponseSchema, McpListResponseSchema, McpRetrieveResponseSchema, McpUpdateResponseSchema, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionDataSchema, Oauth2RevokedConnectionDataSchema, OpenAIProvider, RedirectableAuthSchemeSchema, RemoteFile, RemoteFileDataSchema, RemoteFileDownloadError, RemoteFileErrorCodes, SDKErrorCodes, SandboxSizeSchema, SessionConfigListParamsSchema, SessionConfigListResponseSchema, SessionConfigPolicySchema, SessionConfigSchema, SessionConfigSummarySchema, SessionConfigs, SessionPreset, SessionProxyExecuteParamsSchema, SessionWebhookEventTypes, SessionWebhooks, Sessions, SetWebhookSubscriptionParamsSchema, SingleConnectedAccountDetailedResponseSchema, SsrfErrorCodes, ToolErrorCodes, ToolExecuteMetaParamsSchema, ToolExecuteParamsSchema, ToolExecuteResponseSchema, ToolExecutionLogDetailSchema, ToolExecutionLogLevelSchema, ToolExecutionLogMetadataSchema, ToolExecutionLogParentSchema, ToolExecutionLogSchema, ToolExecutionLogStatusSchema, ToolKitItemSchema, ToolKitListResponseSchema, ToolKitMetaSchema, ToolListParamsSchema, ToolListResponseSchema, ToolProxyParamsSchema, ToolRouterBlockReasonSchema, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfigSchema, ToolRouterErrorCodes, ToolRouterHookAppliesToSchema, ToolRouterHookConditionCheckHandlerSchema, ToolRouterHookPromptInjectionCheckHandlerSchema, ToolRouterHookResultSchema, ToolRouterHookSchema, ToolRouterHookWebhookHandlerSchema, ToolRouterInstantSchema, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterProxyExecuteConfigSchema, ToolRouterProxyExecuteSchema, ToolRouterSandboxConfigSchema, ToolRouterSession, ToolRouterSessionDeleteResponseSchema, ToolRouterSessionEnsureConnectedOptionsSchema, ToolRouterSessionExecuteResponseSchema, ToolRouterSessionFilesMountDeleteOptionsSchema, ToolRouterSessionFilesMountDownloadOptionsSchema, ToolRouterSessionFilesMountListOptionsSchema, ToolRouterSessionFilesMountUploadOptionsSchema, ToolRouterSessionListConfigHistoryOptionsSchema, ToolRouterSessionSearchResponseSchema, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsParamSchema, ToolRouterUpdateExperimentalSchema, ToolRouterUpdateManageConnectionsSchema, ToolRouterUpdateSessionConfigSchema, ToolSchema, ToolkitAuthConfigDetailsSchema, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponseSchema, ToolkitCategorySchema, ToolkitChangelogItemSchema, ToolkitChangelogResponseSchema, ToolkitComposioManagedAuthSchema, ToolkitConditionalScopeSchema, ToolkitConnectionStateSchema, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitGetManySlugsSchema, ToolkitGrantContextDimensionSchema, ToolkitLatestVersionSchema, ToolkitListGrantContextsParamsSchema, ToolkitListGrantContextsResponseSchema, ToolkitMangedByEnumSchema, ToolkitRecommendScopesParamsSchema, ToolkitRecommendScopesResponseSchema, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnumSchema, ToolkitVersionChangelogSchema, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersionsSchema, ToolkitsGetManyParamsSchema, ToolkitsListParamsSchema, TriggerErrorCodes, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceTypeSchema, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatuses, TriggerSubscribeParamSchema, TriggerTypeSchema, TriggersTypeListParamsSchema, TriggersTypeListResponseSchema, UpdateConnectedAccountAclParamsSchema, UpdateConnectedAccountParamsSchema, Usage, UsageBreakdownGroupSchema, UsageBreakdownParamsSchema, UsageBreakdownResponseSchema, UsageEntitySummarySchema, UsageFiltersSchema, UsageOrderBySchema, UsageOrderDirectionSchema, UsageSummaryParamsSchema, UsageSummaryResponseSchema, ValidationError, ValidationErrorCodes, VerifyWebhookParamsSchema, WebhookConnectedAccountAuthConfigSchema, WebhookConnectionMetadataSchema, WebhookConnectionStateSchema, WebhookEndpointCreateParamsSchema, WebhookEndpointListItemSchema, WebhookEndpointListParamsSchema, WebhookEndpointListResponseSchema, WebhookEndpointReplaceParamsSchema, WebhookEndpointSchema, WebhookEndpointUpdateParamsSchema, WebhookEndpoints, WebhookEventSchema, WebhookEventTypes, WebhookPayloadSchema, WebhookPayloadV1Schema, WebhookPayloadV2Schema, WebhookPayloadV3Schema, WebhookSubscriptionDeleteResponseSchema, WebhookSubscriptionEventTypeSchema, WebhookSubscriptionEventTypesResponseSchema, WebhookSubscriptionListParamsSchema, WebhookSubscriptionListResponseSchema, WebhookSubscriptionRotateSecretResponseSchema, WebhookSubscriptionSchema, WebhookSubscriptionSetParamsSchema, WebhookSubscriptionUpdateParamsSchema, WebhookSubscriptions, WebhookTriggerPayloadV3Schema, WebhookVersionSchema, WebhookVersions, Webhooks, assertSafeFileUploadPath, constants_exports as constants, createConnectionRequest, deduplicateJsonSchemaRequiredArrays, dereferenceJsonSchema, ensureObjectTypeOnProperties, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit, getExtensionFromMimeType, handleToolExecutionError, isBlockedSensitiveFileUploadPath, isComposioRateLimitError, isRequestAbortError, jsonSchemaToZodSchema, logger, mappingHasRenames, normalizeToolArguments, omitNullToolArguments, readResponseBodyWithLimit, removeNonRequiredProperties, restoreOriginalKeys, sanitizeSchemaPropertyKeys, telemetry, toStrictJsonSchema };
|
|
13079
|
+
export { AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParamsSchema, AuthConfigListResponseSchema, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigTypes, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeTypes, BUILTIN_FILE_UPLOAD_PATH_DENY_SEGMENTS, BaseAgenticProvider, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAPIKeyKindError, ComposioAclOnlyForSharedError, ComposioAuthConfigNotFoundError, ComposioBlockedInternalUrlError, ComposioConnectedAccountNotFoundError, ComposioConnectedAccountNotRevokableError, ComposioConnectedAccountRevocationNotSupportedError, ComposioCustomCreateResponseSchema, ComposioError, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioFileNotFoundError, ComposioFileUploadAbortedError, ComposioFileUploadError, ComposioFileUploadPathNotAllowedError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioInvalidToolArgumentsError, ComposioLegacyConnectedAccountsEndpointRetiredError, ComposioMCPDestinationError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioRequestCancelledError, ComposioScopeConfigError, ComposioSensitiveFilePathBlockedError, ComposioSessionConfigConflictError, ComposioSharedAccessDeniedError, ComposioSharedConnectionNotAccessibleError, ComposioToolExecutionError, ComposioToolExecutionRateLimitError, ComposioToolFetchError, ComposioToolFetchRateLimitError, ComposioToolInputRequiredError, ComposioToolNotFoundError, ComposioToolSchemaInvalidError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAclConfigResponseSchema, ConnectedAccountAclConfigSchema, ConnectedAccountAuthConfigSchema, ConnectedAccountCompleteAuthParamsSchema, ConnectedAccountCompleteAuthResponseSchema, ConnectedAccountErrorCodes, ConnectedAccountExperimentalResponseSchema, ConnectedAccountExperimentalSchema, ConnectedAccountListParamsSchema, ConnectedAccountListResponseSchema, ConnectedAccountRefreshOptionsSchema, ConnectedAccountRetrieveResponseSchema, ConnectedAccountRevokeResponseSchema, ConnectedAccountRevokedTokenSchema, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectedAccountTypeSchema, ConnectedAccountTypes, ConnectionDataSchema, ConnectionExpiredEventSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatuses, CreateAuthConfigParamsSchema, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CreateCustomToolBaseSchema, CreateCustomToolkitBaseSchema, CustomAuthParamsSchema, CustomConnectionDataSchema, CustomCreateResponseSchema, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionDataSchema, CustomToolSlugSchema, CustomToolkitAuthSchemeSchema, CustomToolkitCreateParamsSchema, CustomToolkitCreateResponseSchema, CustomToolkitDeleteResponseSchema, CustomToolkitSyncParamsSchema, CustomToolkitSyncResponseSchema, CustomToolkitUpdateParamsSchema, CustomToolkitUpdateResponseSchema, CustomToolkitUpsertParamsSchema, CustomToolkitUpsertResponseSchema, CustomToolkits, DefaultCreateConnectedAccountParamsSchema, DefaultWebhookSubscriptionEvents, Experimental, FileDeleteResponseSchema, FileListResponseSchema, FileModifierErrorCodes, GenerateURLParamsSchema, GenerateURLResponseSchema, IncomingTriggerPayloadSchema, JSONSchemaPropertySchema, JsonSchemaRefResolutionError, JsonSchemaToZodError, Keyring, KeyringTransferKeySchema, KeyringTransferKeysResponseSchema, LogSearchFilterFieldSchema, LogSearchFilterOperatorSchema, LogSearchFilterSchema, LogSearchParamsSchema, LogSearchResponseSchema, LogSearchTimeRangeSchema, Logs, MAX_URL_UPLOAD_SIZE_BYTES, MCP, MCPAuthOptionsSchema, MCPGenerateURLParamsSchema, MCPGetServerParamsSchema, MCPMultiAppServerSchema, MCPServerCreateResponseSchema, MCPServerListResponseSchema, MCPServerSchema, MCPServerTypeSchema, MCPServerUpdateParamsSchema, MCPSingleAppServerSchema, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, McpDeleteResponseSchema, McpListResponseSchema, McpRetrieveResponseSchema, McpUpdateResponseSchema, Oauth1ActiveConnectionDataSchema, Oauth1ConnectionDataSchema, Oauth1ExpiredConnectionDataSchema, Oauth1FailedConnectionDataSchema, Oauth1InactiveConnectionDataSchema, Oauth1InitiatedConnectionDataSchema, Oauth1InitiatingConnectionDataSchema, Oauth2ActiveConnectionDataSchema, Oauth2ConnectionDataSchema, Oauth2ExpiredConnectionDataSchema, Oauth2FailedConnectionDataSchema, Oauth2InactiveConnectionDataSchema, Oauth2InitiatedConnectionDataSchema, Oauth2InitiatingConnectionDataSchema, Oauth2RevokedConnectionDataSchema, OpenAIProvider, PatchConnectedAccountParamsSchema, RedirectableAuthSchemeSchema, RemoteFile, RemoteFileDataSchema, RemoteFileDownloadError, RemoteFileErrorCodes, SDKErrorCodes, SandboxSizeSchema, SessionConfigListParamsSchema, SessionConfigListResponseSchema, SessionConfigPolicySchema, SessionConfigSchema, SessionConfigSummarySchema, SessionConfigs, SessionPreset, SessionProxyExecuteParamsSchema, SessionWebhookEventTypes, SessionWebhooks, Sessions, SetWebhookSubscriptionParamsSchema, SingleConnectedAccountDetailedResponseSchema, SsrfErrorCodes, ToolErrorCodes, ToolExecuteMetaParamsSchema, ToolExecuteParamsSchema, ToolExecuteResponseSchema, ToolExecutionLogDetailSchema, ToolExecutionLogLevelSchema, ToolExecutionLogMetadataSchema, ToolExecutionLogParentSchema, ToolExecutionLogSchema, ToolExecutionLogStatusSchema, ToolKitItemSchema, ToolKitListResponseSchema, ToolKitMetaSchema, ToolListParamsSchema, ToolListResponseSchema, ToolProxyParamsSchema, ToolRouterBlockReasonSchema, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfigSchema, ToolRouterErrorCodes, ToolRouterHookAppliesToSchema, ToolRouterHookConditionCheckHandlerSchema, ToolRouterHookPromptInjectionCheckHandlerSchema, ToolRouterHookResultSchema, ToolRouterHookSchema, ToolRouterHookWebhookHandlerSchema, ToolRouterInstantSchema, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterProxyExecuteConfigSchema, ToolRouterProxyExecuteSchema, ToolRouterSandboxConfigSchema, ToolRouterSession, ToolRouterSessionDeleteResponseSchema, ToolRouterSessionEnsureConnectedOptionsSchema, ToolRouterSessionExecuteResponseSchema, ToolRouterSessionFilesMountDeleteOptionsSchema, ToolRouterSessionFilesMountDownloadOptionsSchema, ToolRouterSessionFilesMountListOptionsSchema, ToolRouterSessionFilesMountUploadOptionsSchema, ToolRouterSessionListConfigHistoryOptionsSchema, ToolRouterSessionSearchResponseSchema, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsParamSchema, ToolRouterUpdateExperimentalSchema, ToolRouterUpdateManageConnectionsSchema, ToolRouterUpdateSessionConfigSchema, ToolSchema, ToolkitAuthConfigDetailsSchema, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponseSchema, ToolkitCategorySchema, ToolkitChangelogItemSchema, ToolkitChangelogResponseSchema, ToolkitComposioManagedAuthSchema, ToolkitConditionalScopeSchema, ToolkitConnectionStateSchema, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitGetManySlugsSchema, ToolkitGrantContextDimensionSchema, ToolkitLatestVersionSchema, ToolkitListGrantContextsParamsSchema, ToolkitListGrantContextsResponseSchema, ToolkitMangedByEnumSchema, ToolkitRecommendScopesParamsSchema, ToolkitRecommendScopesResponseSchema, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnumSchema, ToolkitVersionChangelogSchema, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersionsSchema, ToolkitsGetManyParamsSchema, ToolkitsListParamsSchema, TriggerErrorCodes, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceTypeSchema, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatuses, TriggerSubscribeParamSchema, TriggerTypeSchema, TriggersTypeListParamsSchema, TriggersTypeListResponseSchema, UpdateConnectedAccountAclParamsSchema, UpdateConnectedAccountParamsSchema, Usage, UsageBreakdownGroupSchema, UsageBreakdownParamsSchema, UsageBreakdownResponseSchema, UsageEntitySummarySchema, UsageFiltersSchema, UsageOrderBySchema, UsageOrderDirectionSchema, UsageSummaryParamsSchema, UsageSummaryResponseSchema, ValidationError, ValidationErrorCodes, VerifyWebhookParamsSchema, WebhookConnectedAccountAuthConfigSchema, WebhookConnectionMetadataSchema, WebhookConnectionStateSchema, WebhookEndpointCreateParamsSchema, WebhookEndpointListItemSchema, WebhookEndpointListParamsSchema, WebhookEndpointListResponseSchema, WebhookEndpointReplaceParamsSchema, WebhookEndpointSchema, WebhookEndpointUpdateParamsSchema, WebhookEndpoints, WebhookEventSchema, WebhookEventTypes, WebhookPayloadSchema, WebhookPayloadV1Schema, WebhookPayloadV2Schema, WebhookPayloadV3Schema, WebhookSubscriptionDeleteResponseSchema, WebhookSubscriptionEventTypeSchema, WebhookSubscriptionEventTypesResponseSchema, WebhookSubscriptionListParamsSchema, WebhookSubscriptionListResponseSchema, WebhookSubscriptionRotateSecretResponseSchema, WebhookSubscriptionSchema, WebhookSubscriptionSetParamsSchema, WebhookSubscriptionUpdateParamsSchema, WebhookSubscriptions, WebhookTriggerPayloadV3Schema, WebhookVersionSchema, WebhookVersions, Webhooks, assertSafeFileUploadPath, constants_exports as constants, createConnectionRequest, deduplicateJsonSchemaRequiredArrays, dereferenceJsonSchema, ensureObjectTypeOnProperties, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit, getExtensionFromMimeType, handleToolExecutionError, isBlockedSensitiveFileUploadPath, isComposioRateLimitError, isRequestAbortError, jsonSchemaToZodSchema, logger, mappingHasRenames, normalizeToolArguments, omitNullToolArguments, readResponseBodyWithLimit, removeNonRequiredProperties, restoreOriginalKeys, sanitizeSchemaPropertyKeys, telemetry, toStrictJsonSchema };
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { z as z$1 } from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* Strategy for `dereferenceJsonSchema` when an internal `$ref` cannot be
|
|
4
|
+
* resolved (target missing under `$defs`/`definitions`, or a malformed
|
|
5
|
+
* pointer beneath the internal `#/` prefix).
|
|
6
|
+
*
|
|
7
|
+
* - `'throw'` (default): throw `JsonSchemaRefResolutionError`. Right for
|
|
8
|
+
* first-party / custom-tool schemas where a dangling `$ref` is a developer
|
|
9
|
+
* bug worth surfacing.
|
|
10
|
+
* - `'sentinel'`: replace the offending node with the cycle-break sentinel
|
|
11
|
+
* (`{ type: 'object', additionalProperties: true }`). Right for schemas
|
|
12
|
+
* sourced from an upstream service the caller cannot edit (e.g. an
|
|
13
|
+
* API-provided tool definition that emits `$ref` without a `$defs`
|
|
14
|
+
* block — see https://github.com/ComposioHQ/composio/issues/3307).
|
|
15
|
+
*
|
|
16
|
+
* Safety caps (`MAX_REF_CHAIN_DEPTH`, `MAX_NODE_DEPTH`,
|
|
17
|
+
* `MAX_DEREFERENCED_NODES`) still throw in both modes; cycle handling (already
|
|
18
|
+
* permissive via `CYCLE_BREAK_SENTINEL`) is unaffected.
|
|
19
|
+
*/
|
|
20
|
+
type UnresolvedRefStrategy = 'throw' | 'sentinel';
|
|
21
|
+
/**
|
|
22
|
+
* Reason a `$ref` was replaced with the sentinel in `'sentinel'` mode.
|
|
23
|
+
* `onReplace` callbacks receive this so callers can attribute the
|
|
24
|
+
* fallback (e.g., warn at the offending tool slug).
|
|
25
|
+
*/
|
|
26
|
+
type UnresolvedRefReason = 'missing-target' | 'malformed-pointer';
|
|
27
|
+
interface DereferenceJsonSchemaOptions {
|
|
28
|
+
onUnresolved?: UnresolvedRefStrategy;
|
|
29
|
+
/**
|
|
30
|
+
* Invoked once per replaced node in `'sentinel'` mode. The ref is the
|
|
31
|
+
* original pointer string from the schema; reason distinguishes a
|
|
32
|
+
* missing `$defs` target from a malformed pointer.
|
|
33
|
+
*/
|
|
34
|
+
onReplace?: (ref: string, reason: UnresolvedRefReason) => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Inlines internal JSON Schema `$ref` pointers (`#/$defs/...` and legacy
|
|
38
|
+
* `#/definitions/...`) so the returned schema can be safely handed to
|
|
39
|
+
* consumers that don't tolerate unresolved references (e.g. AJV in
|
|
40
|
+
* `@mastra/schema-compat`). External (`http://`, `https://`, …) refs are
|
|
41
|
+
* left untouched. Cycles are broken with `{ type: 'object',
|
|
42
|
+
* additionalProperties: true }`. The input is never mutated.
|
|
43
|
+
*
|
|
44
|
+
* By default, unresolved internal refs throw `JsonSchemaRefResolutionError`.
|
|
45
|
+
* Pass `{ onUnresolved: 'sentinel' }` to replace the offending node with the
|
|
46
|
+
* cycle-break sentinel instead — appropriate for schemas sourced from an
|
|
47
|
+
* upstream service the caller cannot edit (the Composio API ships some
|
|
48
|
+
* `outputParameters` with a `$ref` into `#/$defs/...` but never declares
|
|
49
|
+
* `$defs`; see https://github.com/ComposioHQ/composio/issues/3307).
|
|
50
|
+
*
|
|
51
|
+
* @throws {JsonSchemaRefResolutionError} on malformed pointers, missing
|
|
52
|
+
* targets (strict mode only), or chains past the depth cap or an expansion
|
|
53
|
+
* past the node cap (both modes).
|
|
54
|
+
*/
|
|
55
|
+
declare function dereferenceJsonSchema<T = unknown>(schema: T, options?: DereferenceJsonSchemaOptions): T;
|
|
56
|
+
/**
|
|
57
|
+
* Returns a deep-cloned JSON Schema in which every node that carries a
|
|
58
|
+
* `properties` keyword also carries `type: "object"` when it has no explicit
|
|
59
|
+
* `type`. OpenAI tolerates the omission, but Google Gemini enforces OpenAPI
|
|
60
|
+
* 3.0 strictly and rejects function declarations whose nested objects are
|
|
61
|
+
* missing the `type` (see https://github.com/ComposioHQ/composio/issues/4022).
|
|
62
|
+
*
|
|
63
|
+
* The function follows JSON Schema's schema-bearing keywords while keeping
|
|
64
|
+
* property maps and instance values as containers. Nodes that already declare
|
|
65
|
+
* a `type` are left untouched.
|
|
66
|
+
*/
|
|
67
|
+
declare function ensureObjectTypeOnProperties<T = unknown>(schema: T): T;
|
|
68
|
+
/**
|
|
69
|
+
* Returns a deep-cloned JSON Schema whose `required` arrays contain each entry
|
|
70
|
+
* at most once. Duplicate entries are invalid in JSON Schema 2020-12 but do
|
|
71
|
+
* not change the schema's meaning, so preserving the first occurrence is safe.
|
|
72
|
+
*
|
|
73
|
+
* Tool schemas originate both from the Composio API and direct provider calls.
|
|
74
|
+
* Keeping this normalization provider-agnostic lets every SDK provider receive
|
|
75
|
+
* canonical API schemas, while providers that further transform a schema can
|
|
76
|
+
* reapply it at their own emission boundary.
|
|
77
|
+
*/
|
|
78
|
+
declare function deduplicateJsonSchemaRequiredArrays<T = unknown>(schema: T): T;
|
|
79
|
+
/**
|
|
80
|
+
* Removes all non-required properties from the schema
|
|
81
|
+
*
|
|
82
|
+
* if no items are required, the schema is returned as is
|
|
83
|
+
* @param schema - The JSON schema to remove non-required properties from
|
|
84
|
+
* @returns The JSON schema with all non-required properties removed
|
|
85
|
+
*/
|
|
86
|
+
declare const removeNonRequiredProperties: <T extends {
|
|
87
|
+
type: "object";
|
|
88
|
+
properties: Record<string, unknown>;
|
|
89
|
+
required?: string[];
|
|
90
|
+
additionalProperties?: unknown;
|
|
91
|
+
}>(schema: T) => T;
|
|
92
|
+
/**
|
|
93
|
+
* Convert a JSON schema to a Zod schema
|
|
94
|
+
* @param jsonSchema - The JSON schema to convert
|
|
95
|
+
* @param strict - Eliminates all non-required properties from the schema
|
|
96
|
+
* @returns The Zod schema
|
|
97
|
+
*
|
|
98
|
+
* @throws {JsonSchemaToZodError} If the JSON schema is invalid
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* const zodSchema = jsonSchemaToZodSchema({
|
|
103
|
+
* type: 'object',
|
|
104
|
+
* properties: {
|
|
105
|
+
* name: { type: 'string' },
|
|
106
|
+
* },
|
|
107
|
+
* });
|
|
108
|
+
*
|
|
109
|
+
* console.log(zodSchema);
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const zodSchema = jsonSchemaToZodSchema({
|
|
115
|
+
* type: 'object',
|
|
116
|
+
* properties: {
|
|
117
|
+
* name: { type: 'string' },
|
|
118
|
+
* age: { type: 'number' },
|
|
119
|
+
* },
|
|
120
|
+
* required: ['name'],
|
|
121
|
+
* }, { strict: true });
|
|
122
|
+
*
|
|
123
|
+
* console.log(zodSchema);
|
|
124
|
+
*
|
|
125
|
+
* // Output:
|
|
126
|
+
* // z.object({
|
|
127
|
+
* // name: z.string(),
|
|
128
|
+
* // })
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
declare function jsonSchemaToZodSchema<T extends z$1.ZodTypeAny>(jsonSchema: Record<string, unknown>, { strict }?: {
|
|
132
|
+
strict?: boolean;
|
|
133
|
+
}): T;
|
|
134
|
+
/**
|
|
135
|
+
* Reason recorded when strict normalization rewrites a schema node. Every
|
|
136
|
+
* rewrite is lossless: the model can still express the same values.
|
|
137
|
+
*
|
|
138
|
+
* - `optional-property-nullable` — a property missing from `required` was
|
|
139
|
+
* added to it and widened to accept `null`, the emulation of optional
|
|
140
|
+
* fields that OpenAI structured outputs document.
|
|
141
|
+
* - `unsupported-keyword-stripped` — an annotation keyword the API rejects
|
|
142
|
+
* (`default`, `examples`, or a string `format` outside the accepted list)
|
|
143
|
+
* was removed.
|
|
144
|
+
* - `one-of-converted` — `oneOf` (unsupported) became `anyOf`.
|
|
145
|
+
* - `nullable-converted` — OpenAPI `nullable: true`, which Anthropic rejects
|
|
146
|
+
* on an object, became a `null` member of `type` or a null branch.
|
|
147
|
+
*/
|
|
148
|
+
type StrictSchemaChangeReason = 'optional-property-nullable' | 'unsupported-keyword-stripped' | 'one-of-converted' | 'nullable-converted';
|
|
149
|
+
/** A single lossless rewrite applied by {@link toStrictJsonSchema}. */
|
|
150
|
+
interface StrictSchemaChange {
|
|
151
|
+
/** Path to the changed node relative to the root, e.g. `properties.cfg.items`. */
|
|
152
|
+
path: string;
|
|
153
|
+
reason: StrictSchemaChangeReason;
|
|
154
|
+
/** Human-readable detail about what specifically changed. */
|
|
155
|
+
detail?: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A schema construct strict structured outputs cannot express. Rewriting it
|
|
159
|
+
* would change what the tool accepts, so it is reported instead; providers
|
|
160
|
+
* send such a tool without strict mode.
|
|
161
|
+
*/
|
|
162
|
+
interface StrictSchemaIncompatibility {
|
|
163
|
+
/** Path to the offending node relative to the root. */
|
|
164
|
+
path: string;
|
|
165
|
+
/** The keyword (or `$ref`) that has no strict-mode equivalent. */
|
|
166
|
+
keyword: string;
|
|
167
|
+
detail: string;
|
|
168
|
+
}
|
|
169
|
+
/** Result of {@link toStrictJsonSchema}. */
|
|
170
|
+
interface StrictJsonSchemaResult {
|
|
171
|
+
/**
|
|
172
|
+
* The strict schema. Only usable when `unsupported` is empty; otherwise it
|
|
173
|
+
* is best-effort and the original schema should be sent without strict mode.
|
|
174
|
+
*/
|
|
175
|
+
schema: Record<string, unknown>;
|
|
176
|
+
/**
|
|
177
|
+
* The input schema the rewrite was computed from. Optionality is decided
|
|
178
|
+
* against this schema, so it is what `omitNullToolArguments` needs.
|
|
179
|
+
*/
|
|
180
|
+
source: Record<string, unknown>;
|
|
181
|
+
/** Lossless rewrites, capped at 50 entries; see `totalChanges`. */
|
|
182
|
+
changes: StrictSchemaChange[];
|
|
183
|
+
totalChanges: number;
|
|
184
|
+
/** Constructs strict mode cannot express. Non-empty means "do not use `schema`". */
|
|
185
|
+
unsupported: StrictSchemaIncompatibility[];
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Normalizes a tool parameter schema for OpenAI structured outputs
|
|
189
|
+
* (`strict: true`) at every depth, following the contract OpenAI documents:
|
|
190
|
+
*
|
|
191
|
+
* - every object lists all of its properties in `required` and sets
|
|
192
|
+
* `additionalProperties: false`;
|
|
193
|
+
* - properties that were optional stay available and are widened to accept
|
|
194
|
+
* `null` (`type: ['string', 'null']`, or an extra `anyOf` branch) — the
|
|
195
|
+
* documented way to emulate optional fields. Nothing is dropped, so the
|
|
196
|
+
* model keeps every parameter it could pass before. A `null` the model
|
|
197
|
+
* sends for such a property means "omitted"; the strict providers drop it
|
|
198
|
+
* before executing the tool (see {@link omitNullToolArguments});
|
|
199
|
+
* - `type` arrays are kept as-is (the API accepts them); `oneOf` becomes
|
|
200
|
+
* `anyOf`; `default`, `examples`, and a string `format` the API does
|
|
201
|
+
* not accept are stripped; OpenAPI `nullable` is stripped too, and a
|
|
202
|
+
* node that set it to `true` is widened to accept `null`;
|
|
203
|
+
* - local `$ref`s into `$defs`/`definitions` are kept (the API supports
|
|
204
|
+
* them, including recursion) and the definitions themselves are
|
|
205
|
+
* normalized; an optional `$ref` property is widened with an `anyOf`
|
|
206
|
+
* null branch;
|
|
207
|
+
* - constructs strict mode cannot express — objects that accept arbitrary
|
|
208
|
+
* keys (schema-valued or `true` `additionalProperties`, `patternProperties`,
|
|
209
|
+
* property-less free-form objects), boolean subschemas, `allOf`,
|
|
210
|
+
* `prefixItems`, tuple-form `items`, conditional and dependency keywords,
|
|
211
|
+
* external or dangling `$ref`s, and a non-object root — are reported in
|
|
212
|
+
* `unsupported` rather than rewritten into something narrower. Callers send
|
|
213
|
+
* such a tool without strict mode.
|
|
214
|
+
*
|
|
215
|
+
* The input is never mutated. Every rewrite is recorded in `changes` (capped
|
|
216
|
+
* at 50 entries; `totalChanges` carries the real count), and `required`
|
|
217
|
+
* arrays are de-duplicated at the end.
|
|
218
|
+
*/
|
|
219
|
+
declare function toStrictJsonSchema(schema: unknown): StrictJsonSchemaResult;
|
|
220
|
+
/**
|
|
221
|
+
* Drops `null`-valued arguments that the tool's own schema does not accept,
|
|
222
|
+
* recursively through nested objects and arrays.
|
|
223
|
+
*
|
|
224
|
+
* Strict structured outputs cannot express optional parameters, so
|
|
225
|
+
* {@link toStrictJsonSchema} makes every parameter required and nullable. The
|
|
226
|
+
* model then sends `null` for a parameter it would otherwise have omitted;
|
|
227
|
+
* forwarding that `null` to the tool would fail validation against the tool's
|
|
228
|
+
* real schema, so it is treated as "omitted". A `null` the original schema
|
|
229
|
+
* accepts (a nullable field, an explicit "clear this value") is kept.
|
|
230
|
+
*
|
|
231
|
+
* @param args - Normalized tool arguments.
|
|
232
|
+
* @param schema - The dereferenced tool parameter schema the arguments were
|
|
233
|
+
* produced for (`StrictJsonSchemaResult.source`).
|
|
234
|
+
* @returns A new object; the input is not mutated.
|
|
235
|
+
*/
|
|
236
|
+
declare function omitNullToolArguments(args: Record<string, unknown>, schema: unknown): Record<string, unknown>;
|
|
237
|
+
export { StrictSchemaIncompatibility as a, deduplicateJsonSchemaRequiredArrays as c, jsonSchemaToZodSchema as d, omitNullToolArguments as f, StrictSchemaChangeReason as i, dereferenceJsonSchema as l, toStrictJsonSchema as m, StrictJsonSchemaResult as n, UnresolvedRefReason as o, removeNonRequiredProperties as p, StrictSchemaChange as r, UnresolvedRefStrategy as s, DereferenceJsonSchemaOptions as t, ensureObjectTypeOnProperties as u };
|
|
@@ -6,6 +6,7 @@ import { jsonSchemaToZod } from "@composio/json-schema-to-zod";
|
|
|
6
6
|
// src/utils/jsonSchema.ts
|
|
7
7
|
const MAX_REF_CHAIN_DEPTH = 100;
|
|
8
8
|
const MAX_NODE_DEPTH = 512;
|
|
9
|
+
const MAX_DEREFERENCED_NODES = 1e5;
|
|
9
10
|
const MAX_NULL_CHECK_DEPTH = 64;
|
|
10
11
|
const MAX_NULL_CHECK_NODES = 2e3;
|
|
11
12
|
const CYCLE_BREAK_SENTINEL = {
|
|
@@ -145,7 +146,8 @@ const throwResolutionError = (pointer, result) => {
|
|
|
145
146
|
* `$defs`; see https://github.com/ComposioHQ/composio/issues/3307).
|
|
146
147
|
*
|
|
147
148
|
* @throws {JsonSchemaRefResolutionError} on malformed pointers, missing
|
|
148
|
-
* targets (strict mode only), or chains past the depth cap
|
|
149
|
+
* targets (strict mode only), or chains past the depth cap or an expansion
|
|
150
|
+
* past the node cap (both modes).
|
|
149
151
|
*/
|
|
150
152
|
function dereferenceJsonSchema(schema, options) {
|
|
151
153
|
if (!isPlainObject(schema)) return schema;
|
|
@@ -153,9 +155,11 @@ function dereferenceJsonSchema(schema, options) {
|
|
|
153
155
|
const onReplace = options?.onReplace;
|
|
154
156
|
const root = schema;
|
|
155
157
|
const visiting = /* @__PURE__ */ new WeakSet();
|
|
158
|
+
let visited = 0;
|
|
156
159
|
const cloneChildren = (obj, visitedRefs, chainDepth, nodeDepth) => Object.fromEntries(Object.entries(obj).filter(([k]) => !POLLUTING_KEYS.has(k)).map(([k, v]) => [k, walk(v, visitedRefs, chainDepth, nodeDepth + 1)]));
|
|
157
160
|
function walk(node, visitedRefs, chainDepth, nodeDepth) {
|
|
158
161
|
if (nodeDepth >= MAX_NODE_DEPTH) throw new JsonSchemaRefResolutionError(`JSON Schema node depth exceeded cap (${MAX_NODE_DEPTH})`, { possibleFixes: REF_RESOLUTION_FIXES });
|
|
162
|
+
if (++visited > MAX_DEREFERENCED_NODES) throw new JsonSchemaRefResolutionError(`JSON Schema $ref expansion exceeded node cap (${MAX_DEREFERENCED_NODES})`, { possibleFixes: REF_RESOLUTION_FIXES });
|
|
159
163
|
if (Array.isArray(node)) {
|
|
160
164
|
if (visiting.has(node)) return { ...CYCLE_BREAK_SENTINEL };
|
|
161
165
|
visiting.add(node);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as getFileDataAfterUploadingToS3, t as downloadFileFromS3 } from "../fileUtils.node-
|
|
2
|
-
import { p as withCancellation } from "../sensitiveFileUploadPaths-
|
|
3
|
-
import { t as telemetry } from "../Telemetry-
|
|
1
|
+
import { n as getFileDataAfterUploadingToS3, t as downloadFileFromS3 } from "../fileUtils.node-DPMtE0ER.mjs";
|
|
2
|
+
import { p as withCancellation } from "../sensitiveFileUploadPaths-6NcnFSyX.mjs";
|
|
3
|
+
import { t as telemetry } from "../Telemetry-CcCuFVUb.mjs";
|
|
4
4
|
|
|
5
5
|
// src/models/Files.node.ts
|
|
6
6
|
var Files = class {
|
package/dist/{sensitiveFileUploadPaths-CcbMAYCC.mjs → sensitiveFileUploadPaths-6NcnFSyX.mjs}
RENAMED
|
@@ -101,77 +101,45 @@ const readBodyWithLimit = async ({ body, headers }, maxBytes, makeSizeLimitError
|
|
|
101
101
|
/** Read a Fetch response within the file size limit. */
|
|
102
102
|
const readResponseBodyWithLimit = (response, maxBytes = MAX_URL_UPLOAD_SIZE_BYTES) => readBodyWithLimit(response, maxBytes, sizeLimitError);
|
|
103
103
|
|
|
104
|
-
// src/utils/
|
|
105
|
-
/**
|
|
106
|
-
* Maps MIME types to file extensions.
|
|
107
|
-
* Used when deriving filenames from content-type headers (e.g. for URLs without path segments).
|
|
108
|
-
*/
|
|
109
|
-
function getExtensionFromMimeType(mimeType) {
|
|
110
|
-
const mimeToExt = {
|
|
111
|
-
"text/plain": "txt",
|
|
112
|
-
"text/html": "html",
|
|
113
|
-
"text/css": "css",
|
|
114
|
-
"text/csv": "csv",
|
|
115
|
-
"text/javascript": "js",
|
|
116
|
-
"application/json": "json",
|
|
117
|
-
"application/xml": "xml",
|
|
118
|
-
"application/pdf": "pdf",
|
|
119
|
-
"application/zip": "zip",
|
|
120
|
-
"application/x-zip-compressed": "zip",
|
|
121
|
-
"application/gzip": "gz",
|
|
122
|
-
"application/octet-stream": "bin",
|
|
123
|
-
"application/x-tar": "tar",
|
|
124
|
-
"application/msword": "doc",
|
|
125
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
|
|
126
|
-
"application/vnd.ms-excel": "xls",
|
|
127
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
|
|
128
|
-
"application/vnd.ms-powerpoint": "ppt",
|
|
129
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
|
|
130
|
-
"image/jpeg": "jpg",
|
|
131
|
-
"image/jpg": "jpg",
|
|
132
|
-
"image/png": "png",
|
|
133
|
-
"image/gif": "gif",
|
|
134
|
-
"image/svg+xml": "svg",
|
|
135
|
-
"image/webp": "webp",
|
|
136
|
-
"image/bmp": "bmp",
|
|
137
|
-
"image/tiff": "tiff",
|
|
138
|
-
"audio/mpeg": "mp3",
|
|
139
|
-
"audio/wav": "wav",
|
|
140
|
-
"audio/ogg": "ogg",
|
|
141
|
-
"video/mp4": "mp4",
|
|
142
|
-
"video/mpeg": "mpeg",
|
|
143
|
-
"video/quicktime": "mov",
|
|
144
|
-
"video/x-msvideo": "avi",
|
|
145
|
-
"video/webm": "webm"
|
|
146
|
-
};
|
|
147
|
-
const cleanMimeType = mimeType.split(";")[0].toLowerCase().trim();
|
|
148
|
-
if (Object.hasOwn(mimeToExt, cleanMimeType)) return mimeToExt[cleanMimeType];
|
|
149
|
-
const parts = cleanMimeType.split("/");
|
|
150
|
-
if (parts.length === 2) {
|
|
151
|
-
const subtype = parts[1].toLowerCase();
|
|
152
|
-
if (subtype.includes("+")) {
|
|
153
|
-
const plusParts = subtype.split("+");
|
|
154
|
-
const prefix = plusParts[0];
|
|
155
|
-
const suffix = plusParts[plusParts.length - 1];
|
|
156
|
-
if ([
|
|
157
|
-
"svg",
|
|
158
|
-
"atom",
|
|
159
|
-
"rss"
|
|
160
|
-
].includes(prefix)) return prefix;
|
|
161
|
-
if ([
|
|
162
|
-
"json",
|
|
163
|
-
"xml",
|
|
164
|
-
"yaml",
|
|
165
|
-
"zip",
|
|
166
|
-
"gzip"
|
|
167
|
-
].includes(suffix)) return suffix;
|
|
168
|
-
return suffix;
|
|
169
|
-
}
|
|
170
|
-
return subtype || "txt";
|
|
171
|
-
}
|
|
172
|
-
return "bin";
|
|
173
|
-
}
|
|
104
|
+
// src/utils/mimeTables.generated.ts
|
|
174
105
|
const DEFAULT_MIME_TYPE = "application/octet-stream";
|
|
106
|
+
const EXTENSION_BY_MIME_TYPE = {
|
|
107
|
+
"text/plain": "txt",
|
|
108
|
+
"text/html": "html",
|
|
109
|
+
"text/css": "css",
|
|
110
|
+
"text/csv": "csv",
|
|
111
|
+
"text/javascript": "js",
|
|
112
|
+
"application/json": "json",
|
|
113
|
+
"application/xml": "xml",
|
|
114
|
+
"application/pdf": "pdf",
|
|
115
|
+
"application/zip": "zip",
|
|
116
|
+
"application/x-zip-compressed": "zip",
|
|
117
|
+
"application/gzip": "gz",
|
|
118
|
+
"application/octet-stream": "bin",
|
|
119
|
+
"application/x-tar": "tar",
|
|
120
|
+
"application/msword": "doc",
|
|
121
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
|
|
122
|
+
"application/vnd.ms-excel": "xls",
|
|
123
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
|
|
124
|
+
"application/vnd.ms-powerpoint": "ppt",
|
|
125
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
|
|
126
|
+
"image/jpeg": "jpg",
|
|
127
|
+
"image/jpg": "jpg",
|
|
128
|
+
"image/png": "png",
|
|
129
|
+
"image/gif": "gif",
|
|
130
|
+
"image/svg+xml": "svg",
|
|
131
|
+
"image/webp": "webp",
|
|
132
|
+
"image/bmp": "bmp",
|
|
133
|
+
"image/tiff": "tiff",
|
|
134
|
+
"audio/mpeg": "mp3",
|
|
135
|
+
"audio/wav": "wav",
|
|
136
|
+
"audio/ogg": "ogg",
|
|
137
|
+
"video/mp4": "mp4",
|
|
138
|
+
"video/mpeg": "mpeg",
|
|
139
|
+
"video/quicktime": "mov",
|
|
140
|
+
"video/x-msvideo": "avi",
|
|
141
|
+
"video/webm": "webm"
|
|
142
|
+
};
|
|
175
143
|
const MIME_TYPES_BY_EXTENSION = {
|
|
176
144
|
"3g2": "video/3gpp2",
|
|
177
145
|
"3gp": "video/3gpp",
|
|
@@ -485,6 +453,29 @@ const MIME_TYPES_BY_EXTENSION = {
|
|
|
485
453
|
xlb: "application/vnd.ms-excel",
|
|
486
454
|
xpdl: "application/xml"
|
|
487
455
|
};
|
|
456
|
+
|
|
457
|
+
// src/utils/mime.ts
|
|
458
|
+
const SAFE_EXTENSION = /^[a-z0-9][a-z0-9-]{0,15}$/;
|
|
459
|
+
/**
|
|
460
|
+
* Maps MIME types to file extensions.
|
|
461
|
+
* Used when deriving filenames from content-type headers (e.g. for URLs without path segments).
|
|
462
|
+
*/
|
|
463
|
+
function getExtensionFromMimeType(mimeType) {
|
|
464
|
+
const cleanMimeType = mimeType.split(";")[0].toLowerCase().trim();
|
|
465
|
+
if (Object.hasOwn(EXTENSION_BY_MIME_TYPE, cleanMimeType)) return EXTENSION_BY_MIME_TYPE[cleanMimeType];
|
|
466
|
+
const parts = cleanMimeType.split("/");
|
|
467
|
+
if (parts.length !== 2) return "bin";
|
|
468
|
+
const subtype = parts[1];
|
|
469
|
+
if (!subtype) return "txt";
|
|
470
|
+
const plusParts = subtype.split("+");
|
|
471
|
+
if (plusParts.length > 1 && [
|
|
472
|
+
"svg",
|
|
473
|
+
"atom",
|
|
474
|
+
"rss"
|
|
475
|
+
].includes(plusParts[0])) return plusParts[0];
|
|
476
|
+
const extension = plusParts[plusParts.length - 1];
|
|
477
|
+
return SAFE_EXTENSION.test(extension) ? extension : "bin";
|
|
478
|
+
}
|
|
488
479
|
/**
|
|
489
480
|
* The MIME type of a file, from its name's extension; `application/octet-stream`
|
|
490
481
|
* when the extension is missing or unknown. Accepts a bare name or a path.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ComposioConfig } from "./composio-
|
|
2
|
-
import {
|
|
1
|
+
import { n as ComposioConfig } from "./composio-BqE615oV.mjs";
|
|
2
|
+
import { Fr as BaseComposioProvider } from "./customTool.types-DnyEZmlx.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Configuration defaults for Composio.
|
|
5
5
|
* These are the required fields that must have default values.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import { t as ConfigDefaults } from "../../types-Cwr_Makk.mjs";
|
|
2
2
|
export declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import { t as ConfigDefaults } from "../../types-Cwr_Makk.mjs";
|
|
2
2
|
export declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { l as dereferenceJsonSchema, o as UnresolvedRefReason, s as UnresolvedRefStrategy, t as DereferenceJsonSchemaOptions } from "../jsonSchema-CDHLYm7d.mjs";
|
|
1
2
|
import { jsonSchemaToZodShape } from "@composio/json-schema-to-zod";
|
|
2
|
-
export { jsonSchemaToZodShape };
|
|
3
|
+
export { type DereferenceJsonSchemaOptions, type UnresolvedRefReason, type UnresolvedRefStrategy, dereferenceJsonSchema, jsonSchemaToZodShape };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Za as Tool, eo as ToolExecuteParams, no as ToolExecuteResponse } from "../../customTool.types-DnyEZmlx.mjs";
|
|
2
2
|
import ComposioClient from "@composio/client";
|
|
3
3
|
export declare class FileToolModifier {
|
|
4
4
|
private client;
|