@composio/core 0.9.0 → 0.10.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-Dj4fNvsu.cjs → CustomTool-CQ_YjABZ.cjs} +74 -1
- package/dist/{CustomTool-DOE7hgw6.mjs → CustomTool-D7-1S2at.mjs} +57 -2
- package/dist/{CustomTool-BNxqr6BI.d.mts → CustomTool-DJUGNOer.d.mts} +1 -1
- package/dist/{CustomTool-87USJ2u0.d.cts → CustomTool-aber890o.d.cts} +1 -1
- package/dist/{composio-DTntXzL-.d.cts → composio-CSMCZZgj.d.cts} +87 -8
- package/dist/{composio-BJW2NaoA.d.mts → composio-DRl6WCI9.d.mts} +87 -8
- package/dist/{customTool.types-Bd8ylotX.d.cts → customTool.types-BzEWHa0w.d.cts} +256 -26
- package/dist/{customTool.types-B3HG185y.d.mts → customTool.types-CMOMgxoM.d.mts} +256 -26
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.cjs +319 -27
- package/dist/index.d.cts +50 -4
- package/dist/index.d.mts +50 -4
- package/dist/index.mjs +309 -28
- package/dist/{types-BClz5lKM.d.mts → types-BTOPdg4d.d.mts} +1 -1
- package/dist/{types-jsOgjrWN.d.cts → types-DE7O6Z6S.d.cts} +1 -1
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +3 -3
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +2 -2
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +3 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-CWQeghP5.mjs";
|
|
2
2
|
import { _ as getEnvVariable, a as ComposioSensitiveFilePathBlockedError, c as logger_default, d as DEFAULT_BASE_URL, f as DEFAULT_TOOL_ROUTER_SESSION_FILES_MOUNT_ID, g as constants_exports, h as USER_DATA_FILE_NAME, i as ComposioFileUploadPathNotAllowedError, l as COMPOSIO_DIR, m as TEMP_FILES_DIRECTORY_NAME, n as ComposioFileUploadAbortedError, o as FileModifierErrorCodes, p as IS_DEVELOPMENT_OR_CI, r as ComposioFileUploadError, s as ComposioError, t as ComposioFileNotFoundError, u as COMPOSIO_LOG_LEVEL, v as getEnvsWithPrefix } from "./FileModifierErrors-C7z16Dfi.mjs";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as ComposioMultipleConnectedAccountsError, A as ValidationErrorCodes, B as ComposioGlobalExecuteToolFnNotSetError, C as ComposioWebhookSignatureVerificationError, D as JsonSchemaRefResolutionError, E as SDKErrorCodes, F as ConnectionRequestFailedError, G as ComposioToolNotFoundError, H as ComposioInvalidModifierError, I as ConnectionRequestTimeoutError, J as handleToolExecutionError, K as ComposioToolVersionRequiredError, L as AuthConfigErrorCodes, M as ComposioToolkitNotFoundError, N as ToolkitErrorCodes, O as JsonSchemaToZodError, P as ConnectionRequestErrorCodes, Q as ComposioLegacyConnectedAccountsEndpointRetiredError, R as ComposioAuthConfigNotFoundError, S as ComposioWebhookPayloadError, T as ComposioNoAPIKeyError, U as ComposioProviderNotDefinedError, V as ComposioInvalidExecuteFunctionError, W as ComposioToolExecutionError, X as ComposioConnectedAccountNotFoundError, Y as ComposioAclOnlyForSharedError, Z as ComposioFailedToCreateConnectedAccountLink, _ as ComposioFailedToCreatePusherClientError, a as createCustomToolkit, b as ComposioFailedToUnsubscribeFromPusherChannelError, c as getPreloadedCustomToolSlugs, d as CreateCustomToolBaseSchema, et as ComposioSharedAccessDeniedError, f as CreateCustomToolkitBaseSchema, g as RemoteFileErrorCodes, h as RemoteFileDownloadError, i as createCustomTool, j as ComposioToolkitFetchError, k as ValidationError, l as serializeCustomToolkits, m as PRELOAD_TOOLS_ALL, n as buildCustomToolsMap, nt as ConnectedAccountErrorCodes, o as findCustomToolMapEntryByFinalSlug, p as CustomToolSlugSchema, q as ToolErrorCodes, r as buildCustomToolsMapFromResponse, s as findCustomToolMapEntryByToolkitAndOriginalSlug, t as assertNoCustomToolSlugsInPreload, tt as ComposioSharedConnectionNotAccessibleError, u as serializeCustomTools, v as ComposioFailedToGetSDKRealtimeCredentialsError, w as TriggerErrorCodes, x as ComposioTriggerTypeNotFoundError, y as ComposioFailedToSubscribeToPusherChannelError, z as ComposioCustomToolsNotInitializedError } from "./CustomTool-D7-1S2at.mjs";
|
|
4
4
|
import { t as telemetry } from "./Telemetry-kgWlkavX.mjs";
|
|
5
5
|
import { i as getRandomShortId, t as arrayBufferToBase64 } from "./buffer-yOtEsT4J.mjs";
|
|
6
6
|
import { r as schemaHasFileUploadable, t as isPlainObject } from "./FileToolModifier.utils.neutral-B7P7wn-b.mjs";
|
|
@@ -1035,6 +1035,79 @@ const ConnectedAccountStatusSchema = z$1.enum([
|
|
|
1035
1035
|
ConnectedAccountStatuses.INACTIVE,
|
|
1036
1036
|
ConnectedAccountStatuses.REVOKED
|
|
1037
1037
|
]);
|
|
1038
|
+
/**
|
|
1039
|
+
* Sharing model for a connected account.
|
|
1040
|
+
*
|
|
1041
|
+
* - `PRIVATE` (default): only the owning `userId` can use the connection.
|
|
1042
|
+
* - `SHARED`: can be used by other `userId`s, but only when the connection
|
|
1043
|
+
* is explicitly pinned in a tool-router session's config and only when
|
|
1044
|
+
* the requesting `userId` passes the connection's ACL (see
|
|
1045
|
+
* `allowAllUsers` / `allowedUserIds` / `notAllowedUserIds`).
|
|
1046
|
+
*/
|
|
1047
|
+
const ConnectedAccountTypes = {
|
|
1048
|
+
PRIVATE: "PRIVATE",
|
|
1049
|
+
SHARED: "SHARED"
|
|
1050
|
+
};
|
|
1051
|
+
const ConnectedAccountTypeSchema = z$1.enum([ConnectedAccountTypes.PRIVATE, ConnectedAccountTypes.SHARED]);
|
|
1052
|
+
/**
|
|
1053
|
+
* Per-user access control for a SHARED connected account. Ignored for
|
|
1054
|
+
* PRIVATE.
|
|
1055
|
+
*
|
|
1056
|
+
* Pass `aclConfigForShared` on create / PATCH to grant access; omit it
|
|
1057
|
+
* to leave the ACL unchanged (on PATCH) or to keep the default
|
|
1058
|
+
* deny-by-default state (on create). On responses, the field is
|
|
1059
|
+
* `undefined` when the caller isn't authorised to see the ACL —
|
|
1060
|
+
* distinguish that from an empty/default state explicitly.
|
|
1061
|
+
*
|
|
1062
|
+
* Resolution rule (deny wins):
|
|
1063
|
+
* 1. requesting `userId` in `notAllowedUserIds` → DENY
|
|
1064
|
+
* 2. `allowAllUsers === true` → ALLOW
|
|
1065
|
+
* 3. requesting `userId` in `allowedUserIds` → ALLOW
|
|
1066
|
+
* 4. otherwise → DENY (deny-by-default)
|
|
1067
|
+
*
|
|
1068
|
+
* Default state (block omitted or `{}`) means only the connection's
|
|
1069
|
+
* creator can use it. The creator must grant access explicitly.
|
|
1070
|
+
*
|
|
1071
|
+
* Limits: each list accepts up to 1000 entries; each `userId` is
|
|
1072
|
+
* 1..256 characters.
|
|
1073
|
+
*/
|
|
1074
|
+
const ACL_LIST_MAX_LENGTH = 1e3;
|
|
1075
|
+
const aclUserIdString = z$1.string().min(1).max(256);
|
|
1076
|
+
const ConnectedAccountAclConfigSchema = z$1.object({
|
|
1077
|
+
allowAllUsers: z$1.boolean().optional().describe("When true, any `userId` may use this SHARED connection (subject to the deny list). Default false."),
|
|
1078
|
+
allowedUserIds: z$1.array(aclUserIdString).max(ACL_LIST_MAX_LENGTH).optional().describe("Explicit list of `userId` strings allowed to use this SHARED connection. Default []."),
|
|
1079
|
+
notAllowedUserIds: z$1.array(aclUserIdString).max(ACL_LIST_MAX_LENGTH).optional().describe("Explicit list of `userId` strings denied access. Wins over allow on conflict. Default [].")
|
|
1080
|
+
});
|
|
1081
|
+
/**
|
|
1082
|
+
* Resolved ACL as it appears on responses. All three fields are populated
|
|
1083
|
+
* when the field is visible; the field itself is `undefined` for callers
|
|
1084
|
+
* not authorised to see it.
|
|
1085
|
+
*/
|
|
1086
|
+
const ConnectedAccountAclConfigResponseSchema = z$1.object({
|
|
1087
|
+
allowAllUsers: z$1.boolean(),
|
|
1088
|
+
allowedUserIds: z$1.array(z$1.string()),
|
|
1089
|
+
notAllowedUserIds: z$1.array(z$1.string())
|
|
1090
|
+
});
|
|
1091
|
+
/**
|
|
1092
|
+
* Experimental options for SHARED connections, passed at create / link time.
|
|
1093
|
+
*
|
|
1094
|
+
* **Experimental — shape may change in future releases.** Wrapped under a
|
|
1095
|
+
* dedicated `experimental` block on every input and response so the
|
|
1096
|
+
* experimental status is visible at every call site.
|
|
1097
|
+
*/
|
|
1098
|
+
const ConnectedAccountExperimentalSchema = z$1.object({
|
|
1099
|
+
accountType: ConnectedAccountTypeSchema.optional(),
|
|
1100
|
+
aclConfigForShared: ConnectedAccountAclConfigSchema.optional()
|
|
1101
|
+
});
|
|
1102
|
+
/**
|
|
1103
|
+
* Resolved experimental block on retrieve / list responses. `accountType`
|
|
1104
|
+
* is always present when the block is; `aclConfigForShared` is only
|
|
1105
|
+
* present when the caller is authorised to see the ACL.
|
|
1106
|
+
*/
|
|
1107
|
+
const ConnectedAccountExperimentalResponseSchema = z$1.object({
|
|
1108
|
+
accountType: ConnectedAccountTypeSchema.optional(),
|
|
1109
|
+
aclConfigForShared: ConnectedAccountAclConfigResponseSchema.optional()
|
|
1110
|
+
});
|
|
1038
1111
|
const CreateConnectedAccountParamsSchema = z$1.object({
|
|
1039
1112
|
authConfig: z$1.object({ id: z$1.string() }),
|
|
1040
1113
|
connection: z$1.object({
|
|
@@ -1087,7 +1160,8 @@ const ConnectedAccountRetrieveResponseSchema = z$1.object({
|
|
|
1087
1160
|
testRequestEndpoint: z$1.string().optional(),
|
|
1088
1161
|
isDisabled: z$1.boolean(),
|
|
1089
1162
|
createdAt: z$1.string(),
|
|
1090
|
-
updatedAt: z$1.string()
|
|
1163
|
+
updatedAt: z$1.string(),
|
|
1164
|
+
experimental: ConnectedAccountExperimentalResponseSchema.optional()
|
|
1091
1165
|
});
|
|
1092
1166
|
const ConnectedAccountListParamsSchema = z$1.object({
|
|
1093
1167
|
authConfigIds: z$1.array(z$1.string()).nullable().optional().describe("The auth config ids of the connected accounts"),
|
|
@@ -1096,7 +1170,12 @@ const ConnectedAccountListParamsSchema = z$1.object({
|
|
|
1096
1170
|
orderBy: z$1.enum(["created_at", "updated_at"]).optional().describe("The order by of the connected accounts"),
|
|
1097
1171
|
statuses: z$1.array(ConnectedAccountStatusSchema).nullable().optional().describe("The statuses of the connected accounts"),
|
|
1098
1172
|
toolkitSlugs: z$1.array(z$1.string()).nullable().optional().describe("The toolkit slugs of the connected accounts"),
|
|
1099
|
-
userIds: z$1.array(z$1.string()).nullable().optional().describe("The user ids of the connected accounts")
|
|
1173
|
+
userIds: z$1.array(z$1.string()).nullable().optional().describe("The user ids of the connected accounts"),
|
|
1174
|
+
accountType: z$1.enum([
|
|
1175
|
+
"PRIVATE",
|
|
1176
|
+
"SHARED",
|
|
1177
|
+
"ALL"
|
|
1178
|
+
]).optional()
|
|
1100
1179
|
});
|
|
1101
1180
|
const ConnectedAccountListResponseSchema = z$1.object({
|
|
1102
1181
|
items: z$1.array(ConnectedAccountRetrieveResponseSchema).describe("The list of connected accounts"),
|
|
@@ -1106,7 +1185,8 @@ const ConnectedAccountListResponseSchema = z$1.object({
|
|
|
1106
1185
|
const CreateConnectedAccountLinkOptionsSchema = z$1.object({
|
|
1107
1186
|
callbackUrl: z$1.string().optional(),
|
|
1108
1187
|
alias: z$1.string().optional(),
|
|
1109
|
-
allowMultiple: z$1.boolean().optional()
|
|
1188
|
+
allowMultiple: z$1.boolean().optional(),
|
|
1189
|
+
experimental: ConnectedAccountExperimentalSchema.optional()
|
|
1110
1190
|
});
|
|
1111
1191
|
const CreateConnectedAccountLinkResponseSchema = z$1.object({ redirectUrl: z$1.string() });
|
|
1112
1192
|
const ConnectedAccountRefreshOptionsSchema = z$1.object({
|
|
@@ -1114,6 +1194,19 @@ const ConnectedAccountRefreshOptionsSchema = z$1.object({
|
|
|
1114
1194
|
validateCredentials: z$1.boolean().optional()
|
|
1115
1195
|
});
|
|
1116
1196
|
const UpdateConnectedAccountParamsSchema = z$1.object({ enabled: z$1.boolean() });
|
|
1197
|
+
/**
|
|
1198
|
+
* Params for `composio.connectedAccounts.updateAcl()`. Mirrors the inner
|
|
1199
|
+
* shape of the wire's `acl_config_for_shared` block — the SDK adds the
|
|
1200
|
+
* outer nesting at the boundary, so callers pass the three fields flat.
|
|
1201
|
+
*
|
|
1202
|
+
* PATCH-style semantics — omit a field to leave it unchanged; pass an
|
|
1203
|
+
* empty array to clear an allow/deny list. Raises
|
|
1204
|
+
* `ComposioAclOnlyForSharedError` on a PRIVATE connection.
|
|
1205
|
+
*
|
|
1206
|
+
* Each field is optional, but at least one must be provided — passing an
|
|
1207
|
+
* empty object is rejected as a no-op.
|
|
1208
|
+
*/
|
|
1209
|
+
const UpdateConnectedAccountAclParamsSchema = ConnectedAccountAclConfigSchema.refine((acl) => acl.allowAllUsers !== void 0 || acl.allowedUserIds !== void 0 || acl.notAllowedUserIds !== void 0, { message: "At least one of allowAllUsers, allowedUserIds, or notAllowedUserIds must be provided" });
|
|
1117
1210
|
|
|
1118
1211
|
//#endregion
|
|
1119
1212
|
//#region src/utils/transform.ts
|
|
@@ -1175,7 +1268,15 @@ function transformConnectedAccountResponse(response) {
|
|
|
1175
1268
|
isDisabled: response$1.is_disabled,
|
|
1176
1269
|
createdAt: response$1.created_at,
|
|
1177
1270
|
updatedAt: response$1.updated_at,
|
|
1178
|
-
testRequestEndpoint: response$1.test_request_endpoint
|
|
1271
|
+
testRequestEndpoint: response$1.test_request_endpoint,
|
|
1272
|
+
experimental: responseWithLabels.experimental ? {
|
|
1273
|
+
accountType: responseWithLabels.experimental.account_type,
|
|
1274
|
+
aclConfigForShared: responseWithLabels.experimental.acl_config_for_shared ? {
|
|
1275
|
+
allowAllUsers: responseWithLabels.experimental.acl_config_for_shared.allow_all_users,
|
|
1276
|
+
allowedUserIds: responseWithLabels.experimental.acl_config_for_shared.allowed_user_ids,
|
|
1277
|
+
notAllowedUserIds: responseWithLabels.experimental.acl_config_for_shared.not_allowed_user_ids
|
|
1278
|
+
} : void 0
|
|
1279
|
+
} : void 0
|
|
1179
1280
|
}));
|
|
1180
1281
|
}
|
|
1181
1282
|
/**
|
|
@@ -2782,6 +2883,132 @@ function createConnectionRequest(client, connectedAccountId, status, redirectUrl
|
|
|
2782
2883
|
};
|
|
2783
2884
|
}
|
|
2784
2885
|
|
|
2886
|
+
//#endregion
|
|
2887
|
+
//#region src/models/Experimental.ts
|
|
2888
|
+
/**
|
|
2889
|
+
* @fileoverview The `composio.experimental` namespace. Houses experimental
|
|
2890
|
+
* SDK methods whose shape may change in future releases.
|
|
2891
|
+
*
|
|
2892
|
+
* For experimental stateless factories (e.g. `experimental_createTool`),
|
|
2893
|
+
* see the top-level `experimental_*` exports from `@composio/core`.
|
|
2894
|
+
* Anything that takes a Composio client and performs I/O belongs here.
|
|
2895
|
+
*/
|
|
2896
|
+
/**
|
|
2897
|
+
* Server-side 400 message the API uses to reject ACL writes against a
|
|
2898
|
+
* PRIVATE connection. Substring-matched in `updateAcl` here, and in the
|
|
2899
|
+
* sibling `connectedAccounts.link()` / `session.authorize()` call sites
|
|
2900
|
+
* — kept as a single constant so a server-side message tweak only
|
|
2901
|
+
* requires one edit.
|
|
2902
|
+
*/
|
|
2903
|
+
const ACL_ONLY_FOR_SHARED_ERROR_FRAGMENT = "acl_config_for_shared is only valid on SHARED";
|
|
2904
|
+
/**
|
|
2905
|
+
* Serialise the SDK's `aclConfigForShared` (camelCase) to the wire's
|
|
2906
|
+
* `acl_config_for_shared` block. Returns `undefined` when the caller
|
|
2907
|
+
* didn't pass anything (PATCH-style "don't touch ACL"); returns `{}`
|
|
2908
|
+
* when the caller passed an explicit empty object.
|
|
2909
|
+
*/
|
|
2910
|
+
function serializeAclConfigForWire(acl) {
|
|
2911
|
+
if (acl === void 0) return void 0;
|
|
2912
|
+
return {
|
|
2913
|
+
...acl.allowAllUsers !== void 0 && { allow_all_users: acl.allowAllUsers },
|
|
2914
|
+
...acl.allowedUserIds !== void 0 && { allowed_user_ids: acl.allowedUserIds },
|
|
2915
|
+
...acl.notAllowedUserIds !== void 0 && { not_allowed_user_ids: acl.notAllowedUserIds }
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Serialise the SDK's `experimental` options block (camelCase) to the
|
|
2920
|
+
* wire's `experimental` block (snake_case). Used by both
|
|
2921
|
+
* `connectedAccounts.link()` and `session.authorize()`. Returns
|
|
2922
|
+
* `undefined` when the caller didn't pass the block at all.
|
|
2923
|
+
*/
|
|
2924
|
+
function serializeExperimentalForWire(experimental) {
|
|
2925
|
+
if (experimental === void 0) return void 0;
|
|
2926
|
+
const aclWire = serializeAclConfigForWire(experimental.aclConfigForShared);
|
|
2927
|
+
const wire = {};
|
|
2928
|
+
if (experimental.accountType !== void 0) wire.account_type = experimental.accountType;
|
|
2929
|
+
if (aclWire !== void 0) wire.acl_config_for_shared = aclWire;
|
|
2930
|
+
return wire;
|
|
2931
|
+
}
|
|
2932
|
+
/**
|
|
2933
|
+
* `composio.experimental` namespace. Mirrors the Python SDK's
|
|
2934
|
+
* `composio.experimental` mount, with one method per experimental
|
|
2935
|
+
* surface. **Shape may change in future releases.**
|
|
2936
|
+
*/
|
|
2937
|
+
var Experimental = class {
|
|
2938
|
+
client;
|
|
2939
|
+
constructor(client) {
|
|
2940
|
+
this.client = client;
|
|
2941
|
+
telemetry.instrument(this, "Experimental");
|
|
2942
|
+
}
|
|
2943
|
+
/**
|
|
2944
|
+
* Update the per-user ACL on a SHARED connected account.
|
|
2945
|
+
* **Experimental — shape may change in future releases.**
|
|
2946
|
+
*
|
|
2947
|
+
* Only meaningful for SHARED connections — calling this on a PRIVATE
|
|
2948
|
+
* connection raises `ComposioAclOnlyForSharedError` (400). ACL writes
|
|
2949
|
+
* require the connection's creator or an API key.
|
|
2950
|
+
*
|
|
2951
|
+
* PATCH semantics: omit a field to leave it unchanged; pass an empty
|
|
2952
|
+
* array to clear an allow/deny list. At least one field must be
|
|
2953
|
+
* provided.
|
|
2954
|
+
*
|
|
2955
|
+
* Resolution rule (deny wins):
|
|
2956
|
+
* 1. requesting `userId` in `notAllowedUserIds` → DENY
|
|
2957
|
+
* 2. `allowAllUsers === true` → ALLOW
|
|
2958
|
+
* 3. requesting `userId` in `allowedUserIds` → ALLOW
|
|
2959
|
+
* 4. otherwise → DENY
|
|
2960
|
+
*
|
|
2961
|
+
* @example
|
|
2962
|
+
* ```typescript
|
|
2963
|
+
* import { Composio } from '@composio/core';
|
|
2964
|
+
*
|
|
2965
|
+
* const composio = new Composio({ apiKey: '...' });
|
|
2966
|
+
*
|
|
2967
|
+
* // Allow every userId to use this connection
|
|
2968
|
+
* await composio.experimental.updateAcl('ca_abc', { allowAllUsers: true });
|
|
2969
|
+
*
|
|
2970
|
+
* // Everyone except a specific user
|
|
2971
|
+
* await composio.experimental.updateAcl('ca_abc', {
|
|
2972
|
+
* allowAllUsers: true,
|
|
2973
|
+
* notAllowedUserIds: ['user_bob'],
|
|
2974
|
+
* });
|
|
2975
|
+
*
|
|
2976
|
+
* // Targeted allow
|
|
2977
|
+
* await composio.experimental.updateAcl('ca_abc', {
|
|
2978
|
+
* allowedUserIds: ['user_alice', 'user_bob'],
|
|
2979
|
+
* });
|
|
2980
|
+
*
|
|
2981
|
+
* // Revoke a previously-granted allow list (back to deny-by-default)
|
|
2982
|
+
* await composio.experimental.updateAcl('ca_abc', { allowedUserIds: [] });
|
|
2983
|
+
* ```
|
|
2984
|
+
*
|
|
2985
|
+
* **Empty-array semantics — read carefully.** Passing `[]` for either
|
|
2986
|
+
* list **replaces** the list, it does not extend it:
|
|
2987
|
+
*
|
|
2988
|
+
* - `allowedUserIds: []` → revoke all previously-granted user IDs (state
|
|
2989
|
+
* reverts to deny-by-default unless `allowAllUsers` is true).
|
|
2990
|
+
* - `notAllowedUserIds: []` → **clears the deny list**, which silently
|
|
2991
|
+
* re-grants access to users you previously blocked. Always pair an
|
|
2992
|
+
* empty deny list with a deliberate audit of the allow side.
|
|
2993
|
+
*
|
|
2994
|
+
* @returns The PATCH response (`{ id, status, success }`). To read
|
|
2995
|
+
* the updated ACL block, call
|
|
2996
|
+
* `composio.connectedAccounts.get(nanoid)` after the promise
|
|
2997
|
+
* resolves and inspect `account.experimental?.aclConfigForShared`.
|
|
2998
|
+
*/
|
|
2999
|
+
async updateAcl(nanoid, params) {
|
|
3000
|
+
const parsedParams = UpdateConnectedAccountAclParamsSchema.safeParse(params);
|
|
3001
|
+
if (!parsedParams.success) throw new ValidationError("Failed to parse connected account ACL update params", { cause: parsedParams.error });
|
|
3002
|
+
const body = { experimental: { acl_config_for_shared: serializeAclConfigForWire(parsedParams.data) } };
|
|
3003
|
+
try {
|
|
3004
|
+
return await this.client.connectedAccounts.patch(nanoid, body);
|
|
3005
|
+
} catch (error) {
|
|
3006
|
+
if (error instanceof BadRequestError && typeof error.message === "string" && error.message.includes(ACL_ONLY_FOR_SHARED_ERROR_FRAGMENT)) throw new ComposioAclOnlyForSharedError(error.message, { cause: error });
|
|
3007
|
+
throw error;
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
};
|
|
3011
|
+
|
|
2785
3012
|
//#endregion
|
|
2786
3013
|
//#region src/models/ConnectedAccounts.ts
|
|
2787
3014
|
/**
|
|
@@ -2791,11 +3018,6 @@ function createConnectionRequest(client, connectedAccountId, status, redirectUrl
|
|
|
2791
3018
|
* @date 2025-05-05
|
|
2792
3019
|
* @module ConnectedAccounts
|
|
2793
3020
|
*/
|
|
2794
|
-
const LEGACY_RETIRING_OAUTH_SCHEMES = new Set([
|
|
2795
|
-
"OAUTH1",
|
|
2796
|
-
"OAUTH2",
|
|
2797
|
-
"DCR_OAUTH"
|
|
2798
|
-
]);
|
|
2799
3021
|
let _legacyInitiateWarningEmitted = false;
|
|
2800
3022
|
/**
|
|
2801
3023
|
* ConnectedAccounts class
|
|
@@ -2845,7 +3067,8 @@ var ConnectedAccounts = class {
|
|
|
2845
3067
|
order_by: parsedQuery.data.orderBy,
|
|
2846
3068
|
statuses: parsedQuery.data.statuses,
|
|
2847
3069
|
toolkit_slugs: parsedQuery.data.toolkitSlugs,
|
|
2848
|
-
user_ids: parsedQuery.data.userIds
|
|
3070
|
+
user_ids: parsedQuery.data.userIds,
|
|
3071
|
+
...parsedQuery.data.accountType !== void 0 && { account_type: parsedQuery.data.accountType }
|
|
2849
3072
|
};
|
|
2850
3073
|
}
|
|
2851
3074
|
return transformConnectedAccountListResponse(await this.client.connectedAccounts.list(rawQuery));
|
|
@@ -2936,16 +3159,21 @@ var ConnectedAccounts = class {
|
|
|
2936
3159
|
}
|
|
2937
3160
|
};
|
|
2938
3161
|
let response;
|
|
3162
|
+
let httpResponse;
|
|
2939
3163
|
try {
|
|
2940
|
-
|
|
3164
|
+
const apiCall = this.client.connectedAccounts.create(createParams);
|
|
3165
|
+
if (typeof apiCall.withResponse === "function") {
|
|
3166
|
+
const resolved = await apiCall.withResponse();
|
|
3167
|
+
response = resolved.data;
|
|
3168
|
+
httpResponse = resolved.response;
|
|
3169
|
+
} else response = await apiCall;
|
|
2941
3170
|
} catch (error) {
|
|
2942
3171
|
if (error instanceof BadRequestError && typeof error.message === "string" && error.message.includes("no longer supported") && error.message.includes("/api/v3/connected_accounts/link")) throw new ComposioLegacyConnectedAccountsEndpointRetiredError(error.message, { cause: error });
|
|
2943
3172
|
throw error;
|
|
2944
3173
|
}
|
|
2945
|
-
|
|
2946
|
-
if (!_legacyInitiateWarningEmitted && typeof responseAuthScheme === "string" && LEGACY_RETIRING_OAUTH_SCHEMES.has(responseAuthScheme)) {
|
|
3174
|
+
if (!_legacyInitiateWarningEmitted && httpResponse?.headers.get("Deprecation")) {
|
|
2947
3175
|
_legacyInitiateWarningEmitted = true;
|
|
2948
|
-
logger_default.warn("[Deprecation] composio.connectedAccounts.initiate() will stop working for
|
|
3176
|
+
logger_default.warn("[Deprecation] composio.connectedAccounts.initiate() will stop working for this auth config on or before 2026-07-03 (see Sunset header on the response). Switch to composio.connectedAccounts.link() — same return shape, same allowMultiple semantics. https://docs.composio.dev/docs/changelog/2026/04/24");
|
|
2949
3177
|
}
|
|
2950
3178
|
const redirectUrl = typeof response.connectionData?.val?.redirectUrl === "string" ? response.connectionData.val.redirectUrl : null;
|
|
2951
3179
|
return createConnectionRequest(this.client, response.id, response.connectionData.val.status, redirectUrl);
|
|
@@ -2995,15 +3223,20 @@ var ConnectedAccounts = class {
|
|
|
2995
3223
|
});
|
|
2996
3224
|
if (existing.items.length > 0 && !requestOptions.data.allowMultiple) throw new ComposioMultipleConnectedAccountsError(`Multiple connected accounts found for user ${userId} in auth config ${authConfigId}. Please use the allowMultiple option to allow multiple connected accounts.`);
|
|
2997
3225
|
else if (existing.items.length > 0) logger_default.warn(`[Warn:AllowMultiple] Multiple connected accounts found for user ${userId} in auth config ${authConfigId}`);
|
|
3226
|
+
const opts = requestOptions.data;
|
|
3227
|
+
const experimentalWire = serializeExperimentalForWire(opts.experimental);
|
|
3228
|
+
const body = {
|
|
3229
|
+
auth_config_id: authConfigId,
|
|
3230
|
+
user_id: userId,
|
|
3231
|
+
...opts.callbackUrl !== void 0 && { callback_url: opts.callbackUrl },
|
|
3232
|
+
...opts.alias !== void 0 && { alias: opts.alias },
|
|
3233
|
+
...experimentalWire !== void 0 && { experimental: experimentalWire }
|
|
3234
|
+
};
|
|
2998
3235
|
try {
|
|
2999
|
-
const response = await this.client.link.create(
|
|
3000
|
-
auth_config_id: authConfigId,
|
|
3001
|
-
user_id: userId,
|
|
3002
|
-
...requestOptions?.data.callbackUrl && { callback_url: requestOptions.data.callbackUrl },
|
|
3003
|
-
...requestOptions?.data.alias != null && { alias: requestOptions.data.alias }
|
|
3004
|
-
});
|
|
3236
|
+
const response = await this.client.link.create(body);
|
|
3005
3237
|
return createConnectionRequest(this.client, response.connected_account_id, ConnectedAccountStatuses.INITIATED, response.redirect_url);
|
|
3006
3238
|
} catch (error) {
|
|
3239
|
+
if (error instanceof BadRequestError && typeof error.message === "string" && error.message.includes(ACL_ONLY_FOR_SHARED_ERROR_FRAGMENT)) throw new ComposioAclOnlyForSharedError(error.message, { cause: error });
|
|
3007
3240
|
throw new ComposioFailedToCreateConnectedAccountLink("Failed to create connected account link", { cause: error });
|
|
3008
3241
|
}
|
|
3009
3242
|
}
|
|
@@ -3160,7 +3393,10 @@ var ConnectedAccounts = class {
|
|
|
3160
3393
|
return this.client.connectedAccounts.updateStatus(nanoid, { enabled: false });
|
|
3161
3394
|
}
|
|
3162
3395
|
/**
|
|
3163
|
-
*
|
|
3396
|
+
* Enable or disable a connected account. Accepts `{ enabled: boolean }`.
|
|
3397
|
+
*
|
|
3398
|
+
* For ACL writes on SHARED connections, see
|
|
3399
|
+
* `composio.experimental.updateAcl()`.
|
|
3164
3400
|
*
|
|
3165
3401
|
* @param {string} nanoid - The unique identifier of the connected account
|
|
3166
3402
|
* @param {UpdateConnectedAccountParams} params - The update parameters
|
|
@@ -5485,7 +5721,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5485
5721
|
|
|
5486
5722
|
//#endregion
|
|
5487
5723
|
//#region package.json
|
|
5488
|
-
var version = "0.
|
|
5724
|
+
var version = "0.10.0";
|
|
5489
5725
|
|
|
5490
5726
|
//#endregion
|
|
5491
5727
|
//#region src/utils/session.ts
|
|
@@ -6638,6 +6874,19 @@ var SessionContextImpl = class {
|
|
|
6638
6874
|
//#region src/models/ToolRouterSession.ts
|
|
6639
6875
|
const COMPOSIO_MULTI_EXECUTE_TOOL = "COMPOSIO_MULTI_EXECUTE_TOOL";
|
|
6640
6876
|
const DIRECT_CUSTOM_TOOL_DESCRIPTION_PREFIX = "[Direct tool - call directly, no search needed beforehand.]";
|
|
6877
|
+
/**
|
|
6878
|
+
* Options accepted by {@link ToolRouterSession.authorize}.
|
|
6879
|
+
*
|
|
6880
|
+
* Validated at the SDK boundary so callers get clear `ValidationError`s for
|
|
6881
|
+
* oversized ACL lists or invalid `userId`s — same caps as the equivalent
|
|
6882
|
+
* `composio.connectedAccounts.link()` path (≤1000 entries per list, each
|
|
6883
|
+
* `userId` 1..256 characters).
|
|
6884
|
+
*/
|
|
6885
|
+
const AuthorizeOptionsSchema = z$1.object({
|
|
6886
|
+
callbackUrl: z$1.string().optional(),
|
|
6887
|
+
alias: z$1.string().optional(),
|
|
6888
|
+
experimental: ConnectedAccountExperimentalSchema.optional()
|
|
6889
|
+
});
|
|
6641
6890
|
var ToolRouterSession = class {
|
|
6642
6891
|
sessionId;
|
|
6643
6892
|
mcp;
|
|
@@ -6785,13 +7034,36 @@ var ToolRouterSession = class {
|
|
|
6785
7034
|
/**
|
|
6786
7035
|
* Initiate an authorization flow for a toolkit.
|
|
6787
7036
|
* Returns a ConnectionRequest with a redirect URL for the user.
|
|
7037
|
+
*
|
|
7038
|
+
* Pass `experimental: { accountType: 'SHARED', aclConfigForShared }` to
|
|
7039
|
+
* create a SHARED connection with a per-user ACL in one flow. Default
|
|
7040
|
+
* behaviour (omit the block) creates a PRIVATE connection.
|
|
7041
|
+
*
|
|
7042
|
+
* Experimental — shape may change in future releases.
|
|
7043
|
+
*
|
|
7044
|
+
* `aclConfigForShared` is validated against the same caps as
|
|
7045
|
+
* `composio.connectedAccounts.link()` (≤1000 entries per list, each
|
|
7046
|
+
* `userId` 1..256 characters). Invalid input throws `ValidationError`
|
|
7047
|
+
* at the SDK boundary.
|
|
6788
7048
|
*/
|
|
6789
7049
|
async authorize(toolkit, options) {
|
|
6790
|
-
const
|
|
7050
|
+
const requestOptions = AuthorizeOptionsSchema.safeParse(options ?? {});
|
|
7051
|
+
if (!requestOptions.success) throw new ValidationError("Failed to parse tool router authorize options", { cause: requestOptions.error });
|
|
7052
|
+
const opts = requestOptions.data;
|
|
7053
|
+
const experimentalWire = serializeExperimentalForWire(opts.experimental);
|
|
7054
|
+
const body = {
|
|
6791
7055
|
toolkit,
|
|
6792
|
-
...
|
|
6793
|
-
...
|
|
6794
|
-
|
|
7056
|
+
...opts.callbackUrl !== void 0 && { callback_url: opts.callbackUrl },
|
|
7057
|
+
...opts.alias !== void 0 && { alias: opts.alias },
|
|
7058
|
+
...experimentalWire !== void 0 && { experimental: experimentalWire }
|
|
7059
|
+
};
|
|
7060
|
+
let response;
|
|
7061
|
+
try {
|
|
7062
|
+
response = await this.client.toolRouter.session.link(this.sessionId, body);
|
|
7063
|
+
} catch (error) {
|
|
7064
|
+
if (error instanceof BadRequestError && typeof error.message === "string" && error.message.includes(ACL_ONLY_FOR_SHARED_ERROR_FRAGMENT)) throw new ComposioAclOnlyForSharedError(error.message, { cause: error });
|
|
7065
|
+
throw error;
|
|
7066
|
+
}
|
|
6795
7067
|
return createConnectionRequest(this.client, response.connected_account_id, ConnectedAccountStatuses.INITIATED, response.redirect_url);
|
|
6796
7068
|
}
|
|
6797
7069
|
/**
|
|
@@ -7213,6 +7485,14 @@ var Composio = class Composio {
|
|
|
7213
7485
|
authConfigs;
|
|
7214
7486
|
/** Manage authenticated connections */
|
|
7215
7487
|
connectedAccounts;
|
|
7488
|
+
/**
|
|
7489
|
+
* Experimental SDK methods whose shape may change in future releases.
|
|
7490
|
+
* Houses stateful operations like {@link Experimental.updateAcl} that
|
|
7491
|
+
* take a client and perform I/O. Stateless experimental factories
|
|
7492
|
+
* (e.g. `experimental_createTool`) stay at the top level.
|
|
7493
|
+
* @experimental
|
|
7494
|
+
*/
|
|
7495
|
+
experimental;
|
|
7216
7496
|
/** Model Context Protocol server management */
|
|
7217
7497
|
mcp;
|
|
7218
7498
|
/**
|
|
@@ -7328,6 +7608,7 @@ var Composio = class Composio {
|
|
|
7328
7608
|
fileDownloadDir: this.config.fileDownloadDir
|
|
7329
7609
|
});
|
|
7330
7610
|
this.connectedAccounts = new ConnectedAccounts(this.client);
|
|
7611
|
+
this.experimental = new Experimental(this.client);
|
|
7331
7612
|
this.toolRouter = new ToolRouter(this.client, this.config);
|
|
7332
7613
|
/**
|
|
7333
7614
|
* Initialize tool router methods
|
|
@@ -8106,4 +8387,4 @@ const ComposioMcpUpdateResponseSchema = z$1.object({
|
|
|
8106
8387
|
});
|
|
8107
8388
|
|
|
8108
8389
|
//#endregion
|
|
8109
|
-
export { AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParamsSchema, AuthConfigListResponseSchema, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigTypes, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeTypes, BaseAgenticProvider, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioFileNotFoundError, ComposioFileUploadAbortedError, ComposioFileUploadError, ComposioFileUploadPathNotAllowedError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLegacyConnectedAccountsEndpointRetiredError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioSensitiveFilePathBlockedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountListParamsSchema, ConnectedAccountListResponseSchema, ConnectedAccountRefreshOptionsSchema, ConnectedAccountRetrieveResponseSchema, ConnectedAccountStatusSchema, ConnectedAccountStatuses, ConnectionDataSchema, ConnectionExpiredEventSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, ConnectionStatus, ConnectionStatuses, CreateAuthConfigParamsSchema, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateConnectedAccountLinkOptionsSchema, CreateConnectedAccountLinkResponseSchema, CreateConnectedAccountOptionsSchema, CreateConnectedAccountParamsSchema, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, CreateCustomToolBaseSchema, CreateCustomToolkitBaseSchema, CustomAuthParamsSchema, CustomConnectionDataSchema, CustomCreateResponseSchema, CustomOauth1ConnectionDataSchema, CustomOauth2ConnectionDataSchema, CustomToolSlugSchema, DefaultCreateConnectedAccountParamsSchema, FileDeleteResponseSchema, FileListResponseSchema, FileModifierErrorCodes, GenerateURLParamsSchema, GenerateURLResponseSchema, IncomingTriggerPayloadSchema, JSONSchemaPropertySchema, JsonSchemaRefResolutionError, JsonSchemaToZodError, 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, SessionPreset, SessionProxyExecuteParamsSchema, SingleConnectedAccountDetailedResponseSchema, ToolErrorCodes, ToolExecuteMetaParamsSchema, ToolExecuteParamsSchema, ToolExecuteResponseSchema, ToolKitItemSchema, ToolKitListResponseSchema, ToolKitMetaSchema, ToolListParamsSchema, ToolListResponseSchema, ToolProxyParamsSchema, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterSessionExecuteResponseSchema, ToolRouterSessionFilesMountDeleteOptionsSchema, ToolRouterSessionFilesMountDownloadOptionsSchema, ToolRouterSessionFilesMountListOptionsSchema, ToolRouterSessionFilesMountUploadOptionsSchema, ToolRouterSessionSearchResponseSchema, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsParamSchema, ToolRouterUpdateSessionConfigSchema, ToolSchema, ToolkitAuthConfigDetailsSchema, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponseSchema, ToolkitCategorySchema, ToolkitConnectionStateSchema, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersionSchema, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnumSchema, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersionsSchema, ToolkitsListParamsSchema, TriggerErrorCodes, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatuses, TriggerSubscribeParamSchema, TriggerTypeSchema, TriggersTypeListParamsSchema, TriggersTypeListResponseSchema, UpdateConnectedAccountParamsSchema, ValidationError, ValidationErrorCodes, VerifyWebhookParamsSchema, WebhookConnectedAccountAuthConfigSchema, WebhookConnectionMetadataSchema, WebhookConnectionStateSchema, WebhookEventSchema, WebhookEventTypes, WebhookPayloadSchema, WebhookPayloadV1Schema, WebhookPayloadV2Schema, WebhookPayloadV3Schema, WebhookTriggerPayloadV3Schema, WebhookVersions, constants_exports as constants, createConnectionRequest, dereferenceJsonSchema, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit, getExtensionFromMimeType, handleToolExecutionError, jsonSchemaToZodSchema, logger_default as logger, removeNonRequiredProperties };
|
|
8390
|
+
export { AuthConfigCreationToolAccessConfigSchema, AuthConfigErrorCodes, AuthConfigListParamsSchema, AuthConfigListResponseSchema, AuthConfigRetrieveResponseSchema, AuthConfigToolAccessConfigSchema, AuthConfigTypes, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, AuthSchemeTypes, BaseAgenticProvider, BaseNonAgenticProvider, BillcomAuthConnectionDataSchema, Composio, ComposioAclOnlyForSharedError, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, ComposioFailedToCreateConnectedAccountLink, ComposioFailedToCreatePusherClientError, ComposioFailedToGetSDKRealtimeCredentialsError, ComposioFailedToSubscribeToPusherChannelError, ComposioFailedToUnsubscribeFromPusherChannelError, ComposioFileNotFoundError, ComposioFileUploadAbortedError, ComposioFileUploadError, ComposioFileUploadPathNotAllowedError, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLegacyConnectedAccountsEndpointRetiredError, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioSensitiveFilePathBlockedError, ComposioSharedAccessDeniedError, ComposioSharedConnectionNotAccessibleError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolVersionRequiredError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ComposioTriggerTypeNotFoundError, ComposioWebhookPayloadError, ComposioWebhookSignatureVerificationError, ConnectedAccountAclConfigResponseSchema, ConnectedAccountAclConfigSchema, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, ConnectedAccountExperimentalResponseSchema, ConnectedAccountExperimentalSchema, ConnectedAccountListParamsSchema, ConnectedAccountListResponseSchema, ConnectedAccountRefreshOptionsSchema, ConnectedAccountRetrieveResponseSchema, 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, DefaultCreateConnectedAccountParamsSchema, Experimental, FileDeleteResponseSchema, FileListResponseSchema, FileModifierErrorCodes, GenerateURLParamsSchema, GenerateURLResponseSchema, IncomingTriggerPayloadSchema, JSONSchemaPropertySchema, JsonSchemaRefResolutionError, JsonSchemaToZodError, 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, SessionPreset, SessionProxyExecuteParamsSchema, SingleConnectedAccountDetailedResponseSchema, ToolErrorCodes, ToolExecuteMetaParamsSchema, ToolExecuteParamsSchema, ToolExecuteResponseSchema, ToolKitItemSchema, ToolKitListResponseSchema, ToolKitMetaSchema, ToolListParamsSchema, ToolListResponseSchema, ToolProxyParamsSchema, ToolRouterConfigManageConnectionsSchema, ToolRouterConfigTagsSchema, ToolRouterConfigToolsSchema, ToolRouterCreateSessionConfigSchema, ToolRouterMCPServerConfigSchema, ToolRouterManageConnectionsConfigSchema, ToolRouterSession, ToolRouterSessionExecuteResponseSchema, ToolRouterSessionFilesMountDeleteOptionsSchema, ToolRouterSessionFilesMountDownloadOptionsSchema, ToolRouterSessionFilesMountListOptionsSchema, ToolRouterSessionFilesMountUploadOptionsSchema, ToolRouterSessionSearchResponseSchema, ToolRouterTagsEnableDisableSchema, ToolRouterTagsParamSchema, ToolRouterToolkitsDisabledConfigSchema, ToolRouterToolkitsEnabledConfigSchema, ToolRouterToolkitsOptionsSchema, ToolRouterToolkitsParamSchema, ToolRouterToolsParamSchema, ToolRouterUpdateSessionConfigSchema, ToolSchema, ToolkitAuthConfigDetailsSchema, ToolkitAuthFieldSchema, ToolkitAuthFieldsResponseSchema, ToolkitCategorySchema, ToolkitConnectionStateSchema, ToolkitConnectionsDetailsSchema, ToolkitErrorCodes, ToolkitLatestVersionSchema, ToolkitMangedByEnumSchema, ToolkitRetrieveCategoriesResponseSchema, ToolkitRetrieveResponseSchema, ToolkitSchema, ToolkitSortByEnumSchema, ToolkitVersionParamSchema, ToolkitVersionSchema, ToolkitVersionsSchema, ToolkitsListParamsSchema, TriggerErrorCodes, TriggerInstanceListActiveParamsSchema, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, TriggerInstanceManageDeleteResponseSchema, TriggerInstanceManageUpdateParamsSchema, TriggerInstanceManageUpdateResponseSchema, TriggerInstanceUpsertParamsSchema, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, TriggerStatuses, TriggerSubscribeParamSchema, TriggerTypeSchema, TriggersTypeListParamsSchema, TriggersTypeListResponseSchema, UpdateConnectedAccountAclParamsSchema, UpdateConnectedAccountParamsSchema, ValidationError, ValidationErrorCodes, VerifyWebhookParamsSchema, WebhookConnectedAccountAuthConfigSchema, WebhookConnectionMetadataSchema, WebhookConnectionStateSchema, WebhookEventSchema, WebhookEventTypes, WebhookPayloadSchema, WebhookPayloadV1Schema, WebhookPayloadV2Schema, WebhookPayloadV3Schema, WebhookTriggerPayloadV3Schema, WebhookVersions, constants_exports as constants, createConnectionRequest, dereferenceJsonSchema, createCustomTool as experimental_createTool, createCustomToolkit as experimental_createToolkit, getExtensionFromMimeType, handleToolExecutionError, jsonSchemaToZodSchema, logger_default as logger, removeNonRequiredProperties };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../composio-
|
|
2
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import "../../composio-CSMCZZgj.cjs";
|
|
2
|
+
import { t as ConfigDefaults } from "../../types-DE7O6Z6S.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/config-defaults/ConfigDefaults.node.d.ts
|
|
5
5
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../tool.types-CB_4JKhV.mjs";
|
|
2
|
-
import "../../customTool.types-
|
|
3
|
-
import "../../composio-
|
|
4
|
-
import { t as ConfigDefaults } from "../../types-
|
|
2
|
+
import "../../customTool.types-CMOMgxoM.mjs";
|
|
3
|
+
import "../../composio-DRl6WCI9.mjs";
|
|
4
|
+
import { t as ConfigDefaults } from "../../types-BTOPdg4d.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/config-defaults/ConfigDefaults.node.d.ts
|
|
7
7
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../composio-
|
|
2
|
-
import { t as ConfigDefaults } from "../../types-
|
|
1
|
+
import "../../composio-CSMCZZgj.cjs";
|
|
2
|
+
import { t as ConfigDefaults } from "../../types-DE7O6Z6S.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/config-defaults/ConfigDefaults.workerd.d.ts
|
|
5
5
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../tool.types-CB_4JKhV.mjs";
|
|
2
|
-
import "../../customTool.types-
|
|
3
|
-
import "../../composio-
|
|
4
|
-
import { t as ConfigDefaults } from "../../types-
|
|
2
|
+
import "../../customTool.types-CMOMgxoM.mjs";
|
|
3
|
+
import "../../composio-DRl6WCI9.mjs";
|
|
4
|
+
import { t as ConfigDefaults } from "../../types-BTOPdg4d.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/config-defaults/ConfigDefaults.workerd.d.ts
|
|
7
7
|
declare const CONFIG_DEFAULTS: ConfigDefaults;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
7
7
|
"publishConfig": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"zod": "^3.25 || ^4"
|
|
145
145
|
},
|
|
146
146
|
"dependencies": {
|
|
147
|
-
"@composio/client": "0.1.0-alpha.
|
|
147
|
+
"@composio/client": "0.1.0-alpha.72",
|
|
148
148
|
"@types/json-schema": "^7.0.15",
|
|
149
149
|
"chalk": "^4.1.2",
|
|
150
150
|
"openai": "^6.16.0",
|