@composio/core 0.23.0 → 0.25.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-CnJxXr07.mjs → CustomTool-BYHB7sPs.mjs} +1 -1
- package/dist/{CustomTool-CnHdegDK.d.mts → CustomTool-DZY1yLHN.d.mts} +1 -1
- package/dist/{cancellation-BQibgpRG.mjs → cancellation-D-tMPk48.mjs} +1 -1
- package/dist/{composio-Dq708dZS.d.mts → composio-B8AENilE.d.mts} +74 -62
- package/dist/{customTool.types-B8lVpHOP.d.mts → customTool.types-Bi6-keZC.d.mts} +612 -141
- package/dist/docs/reference/sdk-reference/typescript/auth-configs.mdx +10 -10
- package/dist/docs/reference/sdk-reference/typescript/composio.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/connected-accounts.mdx +22 -22
- package/dist/docs/reference/sdk-reference/typescript/custom-toolkits.mdx +8 -8
- package/dist/docs/reference/sdk-reference/typescript/experimental.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/index.mdx +1 -1
- package/dist/docs/reference/sdk-reference/typescript/keyring.mdx +2 -2
- package/dist/docs/reference/sdk-reference/typescript/logs.mdx +5 -5
- package/dist/docs/reference/sdk-reference/typescript/mcp.mdx +15 -15
- package/dist/docs/reference/sdk-reference/typescript/meta.json +1 -1
- package/dist/docs/reference/sdk-reference/typescript/session-configs.mdx +5 -5
- package/dist/docs/reference/sdk-reference/typescript/session-files.mdx +10 -10
- package/dist/docs/reference/sdk-reference/typescript/session.mdx +56 -21
- package/dist/docs/reference/sdk-reference/typescript/sessions.mdx +6 -6
- package/dist/docs/reference/sdk-reference/typescript/toolkits.mdx +22 -22
- package/dist/docs/reference/sdk-reference/typescript/tools.mdx +18 -18
- package/dist/docs/reference/sdk-reference/typescript/triggers.mdx +25 -25
- package/dist/docs/reference/sdk-reference/typescript/usage.mdx +6 -6
- package/dist/docs/reference/sdk-reference/typescript/webhook-endpoints.mdx +14 -14
- package/dist/docs/reference/sdk-reference/typescript/webhook-subscriptions.mdx +13 -13
- package/dist/{errors-BN15NcCW.mjs → errors-Cly0vXFh.mjs} +5 -5
- package/dist/experimental/index.d.mts +2 -2
- package/dist/experimental/index.mjs +1 -1
- package/dist/index.d.mts +31 -7
- package/dist/index.mjs +382 -147
- package/dist/{types-eTw8Yw7Y.d.mts → types-BGDMkEUl.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/modifiers/FileToolModifier.node.d.mts +1 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +2 -2
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +1 -1
- package/package.json +8 -8
- package/src/composio.ts +19 -16
- package/src/errors/ToolRouterErrors.ts +5 -5
- package/src/lib/toolRouterParams.ts +44 -16
- package/src/models/MCP.ts +20 -1
- package/src/models/ToolRouter.ts +9 -0
- package/src/models/ToolRouterSession.ts +68 -0
- package/src/models/Triggers.ts +8 -6
- package/src/services/pusher/Pusher.ts +159 -88
- package/src/types/pusher.types.ts +2 -0
- package/src/types/toolRouter.types.ts +190 -19
- package/src/utils/session.ts +25 -47
- package/src/utils/transformers/toolRouterResponseTransform.ts +8 -2
- package/src/utils/userCallback.ts +41 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-
|
|
1
|
+
import { a as CreateCustomToolkitParams, f as CustomToolkit, o as CustomTool, r as CreateCustomToolParams, t as AnyZodSchema } from "./customTool.types-Bi6-keZC.mjs";
|
|
2
2
|
import { SessionCreateResponse } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
3
3
|
//#region src/models/CustomTool.d.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as logger } from "./SsrfErrors-DiQldIdC.mjs";
|
|
2
|
-
import { S as JsonSchemaToZodError, _ as ComposioRequestCancelledError, b as isRequestAbortError, x as JsonSchemaRefResolutionError } from "./errors-
|
|
2
|
+
import { S as JsonSchemaToZodError, _ as ComposioRequestCancelledError, b as isRequestAbortError, x as JsonSchemaRefResolutionError } from "./errors-Cly0vXFh.mjs";
|
|
3
3
|
import { o as isPlainObject } from "./FileToolModifier.utils.neutral-DWFpnsj2.mjs";
|
|
4
4
|
import { jsonSchemaToZod } from "@composio/json-schema-to-zod";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as CreateConnectedAccountOptions, Aa as ToolExecuteParams, Cn as ConnectedAccountCompleteAuthResponse, D as Session, Da as Tool, Ea as SchemaModifierOptions, Fa as ToolListParams, In as ConnectedAccountRetrieveResponse, Ja as ToolkitVersionParam, M as SessionWithoutMcp, Ma as ToolExecuteResponse, Oa as ToolExecuteMetaParams, Pa as ToolList, Pn as ConnectedAccountRefreshOptions, Rn as ConnectedAccountRevokeResponse, Va as ToolRetrievalOptions, Yn as CreateConnectedAccountLinkOptions, ai as McpServerGetResponse, cr as UpdateConnectedAccountParams, dr as BaseComposioProvider, f as CustomToolkit, fa as ProviderOptions, fn as ComposioRequestOptions, fr as BaseNonAgenticProvider, jn as ConnectedAccountListResponse, kn as ConnectedAccountListParams, mi as ExecuteToolFnOptions, o as CustomTool, or as UpdateConnectedAccountAclParams, pa as SessionExecuteMetaModifiers, pn as ConnectionRequest, rt as ToolRouterSessionDeleteResponse, ua as ExecuteToolModifiers, ui as McpUrlResponse, vi as ToolCallSession, xn as ConnectedAccountCompleteAuthParams, z as ToolRouterCreateSessionConfig, za as ToolProxyParams } from "./customTool.types-Bi6-keZC.mjs";
|
|
2
2
|
import ComposioClient, { Composio } from "@composio/client";
|
|
3
3
|
import z, { z as z$1 } from "zod/v3";
|
|
4
4
|
import { Files } from "#files";
|
|
@@ -4398,7 +4398,8 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
4398
4398
|
/**
|
|
4399
4399
|
* Subscribe to all the triggers
|
|
4400
4400
|
*
|
|
4401
|
-
* @param fn - The function to call when a trigger is received
|
|
4401
|
+
* @param fn - The function to call when a trigger is received. It may be `async`. Errors
|
|
4402
|
+
* thrown from — or promises rejected by — the function are contained and logged.
|
|
4402
4403
|
* @param filters - The filters to apply to the triggers
|
|
4403
4404
|
* @param onSubscriptionError - Optional callback invoked with the raw Pusher payload when
|
|
4404
4405
|
* the underlying subscription fails (for example on auth or permission rejection). The
|
|
@@ -4429,6 +4430,10 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
4429
4430
|
/**
|
|
4430
4431
|
* Unsubscribe from all the triggers
|
|
4431
4432
|
*
|
|
4433
|
+
* Ends every subscription made with {@link subscribe} on this instance, including one that is
|
|
4434
|
+
* still connecting, and closes the realtime connection so that a script can exit. A later
|
|
4435
|
+
* `subscribe()` opens a new connection.
|
|
4436
|
+
*
|
|
4432
4437
|
* @returns {Promise<void>}
|
|
4433
4438
|
*
|
|
4434
4439
|
* @example
|
|
@@ -7660,41 +7665,41 @@ declare const SessionConfigPolicySchema: z$1.ZodObject<{
|
|
|
7660
7665
|
disable: string[];
|
|
7661
7666
|
}>, z$1.ZodObject<{
|
|
7662
7667
|
tags: z$1.ZodObject<{
|
|
7663
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7664
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7668
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7669
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7665
7670
|
}, "strip", z$1.ZodTypeAny, {
|
|
7666
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7667
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7671
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7672
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7668
7673
|
}, {
|
|
7669
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7670
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7674
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7675
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7671
7676
|
}>;
|
|
7672
7677
|
}, "strip", z$1.ZodTypeAny, {
|
|
7673
7678
|
tags: {
|
|
7674
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7675
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7679
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7680
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7676
7681
|
};
|
|
7677
7682
|
}, {
|
|
7678
7683
|
tags: {
|
|
7679
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7680
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7684
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7685
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7681
7686
|
};
|
|
7682
7687
|
}>]>>>;
|
|
7683
7688
|
/** Global tag policy. */
|
|
7684
7689
|
tags: z$1.ZodOptional<z$1.ZodObject<{
|
|
7685
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7686
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7690
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7691
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7687
7692
|
}, "strip", z$1.ZodTypeAny, {
|
|
7688
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7689
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7693
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7694
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7690
7695
|
}, {
|
|
7691
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7692
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7696
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7697
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7693
7698
|
}>>;
|
|
7694
7699
|
}, "strip", z$1.ZodTypeAny, {
|
|
7695
7700
|
tags?: {
|
|
7696
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7697
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7701
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7702
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7698
7703
|
} | undefined;
|
|
7699
7704
|
tools?: Record<string, {
|
|
7700
7705
|
enable: string[];
|
|
@@ -7702,8 +7707,8 @@ declare const SessionConfigPolicySchema: z$1.ZodObject<{
|
|
|
7702
7707
|
disable: string[];
|
|
7703
7708
|
} | {
|
|
7704
7709
|
tags: {
|
|
7705
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7706
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7710
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7711
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7707
7712
|
};
|
|
7708
7713
|
}> | undefined;
|
|
7709
7714
|
toolkits?: {
|
|
@@ -7713,8 +7718,8 @@ declare const SessionConfigPolicySchema: z$1.ZodObject<{
|
|
|
7713
7718
|
} | undefined;
|
|
7714
7719
|
}, {
|
|
7715
7720
|
tags?: {
|
|
7716
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7717
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7721
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7722
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7718
7723
|
} | undefined;
|
|
7719
7724
|
tools?: Record<string, {
|
|
7720
7725
|
enable: string[];
|
|
@@ -7722,8 +7727,8 @@ declare const SessionConfigPolicySchema: z$1.ZodObject<{
|
|
|
7722
7727
|
disable: string[];
|
|
7723
7728
|
} | {
|
|
7724
7729
|
tags: {
|
|
7725
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7726
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7730
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7731
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7727
7732
|
};
|
|
7728
7733
|
}> | undefined;
|
|
7729
7734
|
toolkits?: {
|
|
@@ -7778,41 +7783,41 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7778
7783
|
disable: string[];
|
|
7779
7784
|
}>, z$1.ZodObject<{
|
|
7780
7785
|
tags: z$1.ZodObject<{
|
|
7781
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7782
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7786
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7787
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7783
7788
|
}, "strip", z$1.ZodTypeAny, {
|
|
7784
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7785
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7789
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7790
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7786
7791
|
}, {
|
|
7787
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7788
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7792
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7793
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7789
7794
|
}>;
|
|
7790
7795
|
}, "strip", z$1.ZodTypeAny, {
|
|
7791
7796
|
tags: {
|
|
7792
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7793
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7797
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7798
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7794
7799
|
};
|
|
7795
7800
|
}, {
|
|
7796
7801
|
tags: {
|
|
7797
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7798
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7802
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7803
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7799
7804
|
};
|
|
7800
7805
|
}>]>>>;
|
|
7801
7806
|
/** Global tag policy. */
|
|
7802
7807
|
tags: z$1.ZodOptional<z$1.ZodObject<{
|
|
7803
|
-
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7804
|
-
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7808
|
+
enable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7809
|
+
disable: z$1.ZodOptional<z$1.ZodArray<z$1.ZodEnum<["readOnlyHint", "createHint", "updateHint", "destructiveHint", "idempotentHint", "openWorldHint"]>, "many">>;
|
|
7805
7810
|
}, "strip", z$1.ZodTypeAny, {
|
|
7806
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7807
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7811
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7812
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7808
7813
|
}, {
|
|
7809
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7810
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7814
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7815
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7811
7816
|
}>>;
|
|
7812
7817
|
}, "strip", z$1.ZodTypeAny, {
|
|
7813
7818
|
tags?: {
|
|
7814
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7815
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7819
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7820
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7816
7821
|
} | undefined;
|
|
7817
7822
|
tools?: Record<string, {
|
|
7818
7823
|
enable: string[];
|
|
@@ -7820,8 +7825,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7820
7825
|
disable: string[];
|
|
7821
7826
|
} | {
|
|
7822
7827
|
tags: {
|
|
7823
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7824
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7828
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7829
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7825
7830
|
};
|
|
7826
7831
|
}> | undefined;
|
|
7827
7832
|
toolkits?: {
|
|
@@ -7831,8 +7836,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7831
7836
|
} | undefined;
|
|
7832
7837
|
}, {
|
|
7833
7838
|
tags?: {
|
|
7834
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7835
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7839
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7840
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7836
7841
|
} | undefined;
|
|
7837
7842
|
tools?: Record<string, {
|
|
7838
7843
|
enable: string[];
|
|
@@ -7840,8 +7845,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7840
7845
|
disable: string[];
|
|
7841
7846
|
} | {
|
|
7842
7847
|
tags: {
|
|
7843
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7844
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7848
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7849
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7845
7850
|
};
|
|
7846
7851
|
}> | undefined;
|
|
7847
7852
|
toolkits?: {
|
|
@@ -7858,8 +7863,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7858
7863
|
updatedAt: string;
|
|
7859
7864
|
config: {
|
|
7860
7865
|
tags?: {
|
|
7861
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7862
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7866
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7867
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7863
7868
|
} | undefined;
|
|
7864
7869
|
tools?: Record<string, {
|
|
7865
7870
|
enable: string[];
|
|
@@ -7867,8 +7872,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7867
7872
|
disable: string[];
|
|
7868
7873
|
} | {
|
|
7869
7874
|
tags: {
|
|
7870
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7871
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7875
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7876
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7872
7877
|
};
|
|
7873
7878
|
}> | undefined;
|
|
7874
7879
|
toolkits?: {
|
|
@@ -7886,8 +7891,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7886
7891
|
updatedAt: string;
|
|
7887
7892
|
config: {
|
|
7888
7893
|
tags?: {
|
|
7889
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7890
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7894
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7895
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7891
7896
|
} | undefined;
|
|
7892
7897
|
tools?: Record<string, {
|
|
7893
7898
|
enable: string[];
|
|
@@ -7895,8 +7900,8 @@ declare const SessionConfigSchema: z$1.ZodObject<{
|
|
|
7895
7900
|
disable: string[];
|
|
7896
7901
|
} | {
|
|
7897
7902
|
tags: {
|
|
7898
|
-
disable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7899
|
-
enable?: ("readOnlyHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7903
|
+
disable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7904
|
+
enable?: ("readOnlyHint" | "createHint" | "updateHint" | "destructiveHint" | "idempotentHint" | "openWorldHint")[] | undefined;
|
|
7900
7905
|
};
|
|
7901
7906
|
}> | undefined;
|
|
7902
7907
|
toolkits?: {
|
|
@@ -8590,8 +8595,15 @@ type ComposioConfig<TProvider extends BaseComposioProvider<unknown, unknown, unk
|
|
|
8590
8595
|
* `x-user-api-key` is the one header the SDK treats as a credential: together
|
|
8591
8596
|
* with `apiKey: null` it authenticates requests with a Composio user API key
|
|
8592
8597
|
* instead of a project key. The project key is only ever set from `apiKey`:
|
|
8593
|
-
* an `x-api-key` entry is rejected when `apiKey` is `null`.
|
|
8594
|
-
*
|
|
8598
|
+
* an `x-api-key` entry is rejected when `apiKey` is `null`.
|
|
8599
|
+
*
|
|
8600
|
+
* The SDK reports itself through the API client's identity headers
|
|
8601
|
+
* (`x-client-provenance`, `x-client-version`, `x-client-library`,
|
|
8602
|
+
* `x-client-library-version`, `x-client-language`, `x-client-runtime`,
|
|
8603
|
+
* `x-sdk-version`, `x-source`, `x-framework`, `x-runtime` and
|
|
8604
|
+
* `x-runtime-version`); an entry naming one of them is rejected with a
|
|
8605
|
+
* `ComposioError` from `@composio/client`. Every other header is passed
|
|
8606
|
+
* through untouched.
|
|
8595
8607
|
* @example
|
|
8596
8608
|
* ```typescript
|
|
8597
8609
|
* const composio = new Composio({
|
|
@@ -8869,8 +8881,8 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
8869
8881
|
* instance directly with the headers you need: `new Composio({ ...existingConfig, defaultHeaders })`.
|
|
8870
8882
|
* For one-off overrides, pass per-call `requestOptions` where supported.
|
|
8871
8883
|
*
|
|
8872
|
-
* @param {
|
|
8873
|
-
*
|
|
8884
|
+
* @param {object} [options] - Options for the new instance.
|
|
8885
|
+
* @param {ComposioRequestHeaders} [options.headers] - Headers sent with every API call the new instance makes.
|
|
8874
8886
|
* @returns {Composio<TProvider>} A new Composio instance with the custom request options applied.
|
|
8875
8887
|
*
|
|
8876
8888
|
* @example
|