@composio/core 0.10.0 → 0.12.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/{tool.types-CwbAy9l_.d.cts → BaseProvider-BBnsv9kS.d.mts} +23683 -23635
- package/dist/CustomTool-DEB4BQPl.mjs +468 -0
- package/dist/{CustomTool-aber890o.d.cts → CustomTool-DH18rVQu.d.mts} +2 -4
- package/dist/{FileModifierErrors-C7z16Dfi.mjs → FileModifierErrors-3fSwIWoa.mjs} +35 -36
- package/dist/{FileToolModifier.utils.neutral-B7P7wn-b.mjs → FileToolModifier.utils.neutral-B5rT711M.mjs} +1 -7
- package/dist/{Telemetry-kgWlkavX.mjs → Telemetry-DhGI_J4G.mjs} +48 -23
- package/dist/{composio-CSMCZZgj.d.cts → composio-CHnEggnv.d.mts} +433 -435
- package/dist/{customTool.types-BzEWHa0w.d.cts → customTool.types-DpIdOJjL.d.mts} +177 -236
- package/dist/{CustomTool-D7-1S2at.mjs → errors-D5f4pfvI.mjs} +132 -519
- package/dist/experimental/index.d.mts +2 -3
- package/dist/experimental/index.mjs +1 -3
- package/dist/{fileUtils.node-Dq7ebZPC.mjs → fileUtils.node-BiO1JQsJ.mjs} +26 -25
- package/dist/index.d.mts +2034 -2356
- package/dist/index.mjs +2546 -2335
- package/dist/jsonSchema-daqF3S3d.mjs +251 -0
- package/dist/models/Files.node.d.mts +1 -2
- package/dist/models/Files.node.mjs +3 -4
- package/dist/models/Files.workerd.d.mts +0 -1
- package/dist/platform/node.d.mts +1 -2
- package/dist/platform/workerd.d.mts +1 -2
- package/dist/{chunk-CWQeghP5.mjs → rolldown-runtime-w6R9maHv.mjs} +3 -5
- package/dist/{types-DE7O6Z6S.d.cts → types-CaI5Z4PA.d.mts} +2 -3
- package/dist/utils/config-defaults/ConfigDefaults.node.d.mts +1 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.mts +1 -4
- package/dist/utils/config-defaults/ConfigDefaults.workerd.mjs +3 -0
- package/dist/utils/json-schema.d.mts +2 -0
- package/dist/utils/json-schema.mjs +3 -0
- package/dist/utils/modifiers/FileToolModifier.node.d.mts +3 -1
- package/dist/utils/modifiers/FileToolModifier.node.mjs +81 -44
- package/dist/utils/modifiers/FileToolModifier.workerd.d.mts +3 -1
- package/dist/utils/modifiers/FileToolModifier.workerd.mjs +1 -1
- package/package.json +48 -88
- package/dist/CustomTool-CQ_YjABZ.cjs +0 -1341
- package/dist/CustomTool-DJUGNOer.d.mts +0 -76
- package/dist/FileModifierErrors-BYJBHiay.cjs +0 -554
- package/dist/FileToolModifier.utils.neutral-Dfwqgimk.cjs +0 -102
- package/dist/Telemetry-Dm-0sewu.cjs +0 -335
- package/dist/buffer-BjWptbNH.cjs +0 -63
- package/dist/chunk-CQwRTUmo.cjs +0 -53
- package/dist/composio-DRl6WCI9.d.mts +0 -5484
- package/dist/customTool.types-CMOMgxoM.d.mts +0 -2513
- package/dist/experimental/index.cjs +0 -5
- package/dist/experimental/index.d.cts +0 -3
- package/dist/fileUtils.node-DtnSRMWa.cjs +0 -462
- package/dist/files.types-lo4zZd87.d.cts +0 -17
- package/dist/index.cjs +0 -8637
- package/dist/index.d.cts +0 -5672
- package/dist/models/Files.node.cjs +0 -55
- package/dist/models/Files.node.d.cts +0 -56
- package/dist/models/Files.workerd.cjs +0 -29
- package/dist/models/Files.workerd.d.cts +0 -13
- package/dist/platform/node.cjs +0 -55
- package/dist/platform/node.d.cts +0 -11
- package/dist/platform/workerd.cjs +0 -42
- package/dist/platform/workerd.d.cts +0 -12
- package/dist/tool.types-CB_4JKhV.d.mts +0 -29377
- package/dist/types-BTOPdg4d.d.mts +0 -13
- package/dist/types-pDNm1lYs.d.cts +0 -69
- package/dist/utils/config-defaults/ConfigDefaults.node.cjs +0 -10
- package/dist/utils/config-defaults/ConfigDefaults.node.d.cts +0 -7
- package/dist/utils/config-defaults/ConfigDefaults.workerd.cjs +0 -10
- package/dist/utils/config-defaults/ConfigDefaults.workerd.d.cts +0 -7
- package/dist/utils/modifiers/FileToolModifier.node.cjs +0 -207
- package/dist/utils/modifiers/FileToolModifier.node.d.cts +0 -22
- package/dist/utils/modifiers/FileToolModifier.workerd.cjs +0 -27
- package/dist/utils/modifiers/FileToolModifier.workerd.d.cts +0 -20
- /package/dist/{buffer-yOtEsT4J.mjs → buffer-PcbMMsgm.mjs} +0 -0
- /package/dist/{files.types-BXDWA_zS.d.mts → files.types-DeMC_mAW.d.mts} +0 -0
- /package/dist/{types-HpJQ8K9l.d.mts → types-DdoCRzLj.d.mts} +0 -0
|
@@ -1,16 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { $t as ExecuteToolModifiers, An as ToolRetrievalOptions, Cn as ToolList, Ln as ToolkitVersionParam, On as ToolProxyParams, X as McpServerGetResponse, _n as ToolExecuteMetaParams, at as ExecuteToolFnOptions, gn as Tool, hn as SchemaModifierOptions, n as BaseComposioProvider, nn as SessionExecuteMetaModifiers, r as BaseNonAgenticProvider, tn as ProviderOptions, tt as McpUrlResponse, wn as ToolListParams, xn as ToolExecuteResponse, yn as ToolExecuteParams } from "./BaseProvider-BBnsv9kS.mjs";
|
|
2
|
+
import { $t as ConnectedAccountRetrieveResponse, D as Session, Jt as ConnectedAccountListResponse, Kt as ConnectedAccountListParams, Pt as ConnectionRequest, R as ToolRouterCreateSessionConfig, Zt as ConnectedAccountRefreshOptions, cn as CreateConnectedAccountLinkOptions, f as CustomToolkit, fn as CreateConnectedAccountOptions, o as CustomTool, xn as UpdateConnectedAccountParams, yn as UpdateConnectedAccountAclParams } from "./customTool.types-DpIdOJjL.mjs";
|
|
3
|
+
import ComposioClient, { Composio } from "@composio/client";
|
|
3
4
|
import z$1, { z } from "zod/v3";
|
|
5
|
+
import { OpenAI } from "openai";
|
|
6
|
+
import { Files } from "#files";
|
|
4
7
|
import { ConnectedAccountDeleteResponse, ConnectedAccountPatchResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from "@composio/client/resources/connected-accounts";
|
|
5
|
-
import ComposioClient, { Composio } from "@composio/client";
|
|
6
8
|
import { SessionExecuteParams } from "@composio/client/resources/tool-router/session/session.mjs";
|
|
7
9
|
import { ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse, ToolRetrieveEnumResponse } from "@composio/client/resources/tools";
|
|
8
10
|
import { TriggersTypeRetrieveEnumResponse } from "@composio/client/resources/index";
|
|
9
11
|
import { AuthConfigDeleteResponse, AuthConfigUpdateResponse, AuthConfigUpdateStatusResponse } from "@composio/client/resources/auth-configs";
|
|
10
|
-
import { OpenAI } from "openai";
|
|
11
12
|
import { Stream } from "openai/streaming";
|
|
12
|
-
import { Files } from "#files";
|
|
13
13
|
|
|
14
|
+
//#region src/types/requestOptions.types.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* Per-request transport options for cancelling an SDK call.
|
|
17
|
+
*
|
|
18
|
+
* For `tools.get` and `tools.execute`, pass `signal` directly in the
|
|
19
|
+
* options bag (3rd argument) alongside any modifiers or provider options.
|
|
20
|
+
* For other methods (e.g. `toolkits.get`, `authConfigs.list`), pass as a
|
|
21
|
+
* trailing argument. Forwarded to the underlying `@composio/client` request.
|
|
22
|
+
*
|
|
23
|
+
* If the underlying request is aborted via this signal, the SDK throws a
|
|
24
|
+
* {@link ComposioRequestCancelledError} so callers can `instanceof`-detect
|
|
25
|
+
* cancellation without unwrapping nested causes.
|
|
26
|
+
*
|
|
27
|
+
* @example Timeout after 5 seconds
|
|
28
|
+
* ```typescript
|
|
29
|
+
* await composio.tools.execute(
|
|
30
|
+
* 'HACKERNEWS_GET_FRONTPAGE',
|
|
31
|
+
* { userId: 'default', arguments: {} },
|
|
32
|
+
* { signal: AbortSignal.timeout(5_000) }
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example Combine signal with modifiers
|
|
37
|
+
* ```typescript
|
|
38
|
+
* await composio.tools.execute('TOOL', body, {
|
|
39
|
+
* signal: AbortSignal.timeout(10_000),
|
|
40
|
+
* beforeExecute: ({ params }) => params,
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
type ComposioRequestOptions = {
|
|
45
|
+
/**
|
|
46
|
+
* An `AbortSignal` used to cancel the in-flight HTTP request. When the
|
|
47
|
+
* signal aborts, the underlying fetch is aborted and the SDK throws a
|
|
48
|
+
* {@link ComposioRequestCancelledError} (subclass of {@link ComposioError}).
|
|
49
|
+
*/
|
|
50
|
+
signal?: AbortSignal;
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
14
53
|
//#region src/models/Tools.d.ts
|
|
15
54
|
type ToolRouterSessionExecuteOptions = {
|
|
16
55
|
experimental?: SessionExecuteParams.Experimental;
|
|
@@ -21,7 +60,6 @@ type ToolRouterSessionExecuteOptions = {
|
|
|
21
60
|
*/
|
|
22
61
|
declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvider<TToolCollection, TTool, unknown>> {
|
|
23
62
|
private client;
|
|
24
|
-
private readonly customTools;
|
|
25
63
|
private provider;
|
|
26
64
|
private autoUploadDownloadFiles;
|
|
27
65
|
private toolkitVersions;
|
|
@@ -95,10 +133,12 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
95
133
|
*/
|
|
96
134
|
private applyAfterExecuteModifiers;
|
|
97
135
|
/**
|
|
98
|
-
* Lists
|
|
136
|
+
* Lists Composio API tools available to the SDK.
|
|
99
137
|
*
|
|
100
|
-
* This method fetches tools from the
|
|
101
|
-
*
|
|
138
|
+
* This method fetches remote Composio tools from the API in raw format. The response can be
|
|
139
|
+
* filtered and modified as needed. Local experimental custom tools are session-scoped; attach
|
|
140
|
+
* them when creating or reusing a Tool Router session, then use `session.tools()`,
|
|
141
|
+
* `session.customTools()`, or `session.execute()`.
|
|
102
142
|
* It provides access to the underlying tool data without provider-specific wrapping.
|
|
103
143
|
*
|
|
104
144
|
* @param {ToolListParams} query - Query parameters to filter the tools (required)
|
|
@@ -151,7 +191,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
151
191
|
* });
|
|
152
192
|
* ```
|
|
153
193
|
*/
|
|
154
|
-
getRawComposioTools(query: ToolListParams, options?: SchemaModifierOptions): Promise<ToolList>;
|
|
194
|
+
getRawComposioTools(query: ToolListParams, options?: SchemaModifierOptions, requestOptions?: ComposioRequestOptions): Promise<ToolList>;
|
|
155
195
|
/**
|
|
156
196
|
* Fetches tools exposed by a tool router session.
|
|
157
197
|
* This includes helper/meta tools plus any tools preloaded into the session.
|
|
@@ -168,13 +208,16 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
168
208
|
* console.log(sessionTools);
|
|
169
209
|
* ```
|
|
170
210
|
*/
|
|
171
|
-
getRawToolRouterSessionTools(sessionId: string, options?: SchemaModifierOptions): Promise<ToolList>;
|
|
211
|
+
getRawToolRouterSessionTools(sessionId: string, options?: SchemaModifierOptions, requestOptions?: ComposioRequestOptions): Promise<ToolList>;
|
|
172
212
|
/**
|
|
173
213
|
* Retrieves a specific tool by its slug from the Composio API.
|
|
174
214
|
*
|
|
175
215
|
* This method fetches a single tool in raw format without provider-specific wrapping,
|
|
176
216
|
* providing direct access to the tool's schema and metadata. Tool versions are controlled
|
|
177
217
|
* at the Composio SDK initialization level through the `toolkitVersions` configuration.
|
|
218
|
+
* Local experimental custom tools are session-scoped; attach them when creating or reusing a
|
|
219
|
+
* Tool Router session, then use `session.tools()`, `session.customTools()`, or
|
|
220
|
+
* `session.execute()`.
|
|
178
221
|
*
|
|
179
222
|
* @param {string} slug - The unique identifier of the tool (e.g., 'GITHUB_GET_REPOS')
|
|
180
223
|
* @param {GetRawComposioToolBySlugOptions} [options] - Optional configuration for tool retrieval
|
|
@@ -204,9 +247,6 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
204
247
|
* }
|
|
205
248
|
* );
|
|
206
249
|
*
|
|
207
|
-
* // Get a custom tool (will check custom tools first)
|
|
208
|
-
* const customTool = await composio.tools.getRawComposioToolBySlug('MY_CUSTOM_TOOL');
|
|
209
|
-
*
|
|
210
250
|
* // Access tool properties
|
|
211
251
|
* const githubTool = await composio.tools.getRawComposioToolBySlug('GITHUB_CREATE_ISSUE');
|
|
212
252
|
* console.log({
|
|
@@ -219,14 +259,14 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
219
259
|
* });
|
|
220
260
|
* ```
|
|
221
261
|
*/
|
|
222
|
-
getRawComposioToolBySlug(slug: string, options?: ToolRetrievalOptions): Promise<Tool>;
|
|
262
|
+
getRawComposioToolBySlug(slug: string, options?: ToolRetrievalOptions, requestOptions?: ComposioRequestOptions): Promise<Tool>;
|
|
223
263
|
/**
|
|
224
264
|
* Get a list of tools from Composio based on filters.
|
|
225
265
|
* This method fetches the tools from the Composio API and wraps them using the provider.
|
|
226
266
|
*
|
|
227
267
|
* @param {string} userId - The user id to get the tools for
|
|
228
268
|
* @param {ToolListParams} filters - The filters to apply when fetching tools
|
|
229
|
-
* @param {ProviderOptions<TProvider>} [options] -
|
|
269
|
+
* @param {ProviderOptions<TProvider> & ComposioRequestOptions} [options] - Provider options, modifiers, and/or AbortSignal
|
|
230
270
|
* @returns {Promise<ReturnType<T['wrapTools']>>} The wrapped tools collection
|
|
231
271
|
*
|
|
232
272
|
* @example
|
|
@@ -237,32 +277,20 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
237
277
|
* limit: 10
|
|
238
278
|
* });
|
|
239
279
|
*
|
|
240
|
-
* //
|
|
241
|
-
* const
|
|
242
|
-
* search: '
|
|
243
|
-
*
|
|
244
|
-
* });
|
|
245
|
-
*
|
|
246
|
-
* // Get a specific tool by slug
|
|
247
|
-
* const hackerNewsUserTool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
|
|
248
|
-
*
|
|
249
|
-
* // Get a tool with schema modifications
|
|
250
|
-
* const tool = await composio.tools.get('default', 'GITHUB_GET_REPOS', {
|
|
251
|
-
* modifySchema: (toolSlug, toolkitSlug, schema) => {
|
|
252
|
-
* // Customize the tool schema
|
|
253
|
-
* return {...schema, description: 'Custom description'};
|
|
254
|
-
* }
|
|
255
|
-
* });
|
|
280
|
+
* // Timeout a slow search after 5s
|
|
281
|
+
* const emailTools = await composio.tools.get('default', {
|
|
282
|
+
* search: 'send email',
|
|
283
|
+
* }, { signal: AbortSignal.timeout(5_000) });
|
|
256
284
|
* ```
|
|
257
285
|
*/
|
|
258
|
-
get<T extends TProvider>(userId: string, filters: ToolListParams, options?: ProviderOptions<TProvider>): Promise<ReturnType<T['wrapTools']>>;
|
|
286
|
+
get<T extends TProvider>(userId: string, filters: ToolListParams, options?: ProviderOptions<TProvider> & ComposioRequestOptions): Promise<ReturnType<T['wrapTools']>>;
|
|
259
287
|
/**
|
|
260
288
|
* Get a specific tool by its slug.
|
|
261
289
|
* This method fetches the tool from the Composio API and wraps it using the provider.
|
|
262
290
|
*
|
|
263
291
|
* @param {string} userId - The user id to get the tool for
|
|
264
292
|
* @param {string} slug - The slug of the tool to fetch
|
|
265
|
-
* @param {ProviderOptions<TProvider>} [options] - Optional provider options including modifiers
|
|
293
|
+
* @param {ProviderOptions<TProvider> & ComposioRequestOptions} [options] - Optional provider options including modifiers and signal
|
|
266
294
|
* @returns {Promise<ReturnType<T['wrapTools']>>} The wrapped tool
|
|
267
295
|
*
|
|
268
296
|
* @example
|
|
@@ -277,9 +305,14 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
277
305
|
* return {...schema, description: 'Custom description'};
|
|
278
306
|
* }
|
|
279
307
|
* });
|
|
308
|
+
*
|
|
309
|
+
* // Timeout after 5s
|
|
310
|
+
* const tools = await composio.tools.get('user_1', { search: 'email' }, {
|
|
311
|
+
* signal: AbortSignal.timeout(5_000)
|
|
312
|
+
* });
|
|
280
313
|
* ```
|
|
281
314
|
*/
|
|
282
|
-
get<T extends TProvider>(userId: string, slug: string, options?: ProviderOptions<TProvider>): Promise<ReturnType<T['wrapTools']>>;
|
|
315
|
+
get<T extends TProvider>(userId: string, slug: string, options?: ProviderOptions<TProvider> & ComposioRequestOptions): Promise<ReturnType<T['wrapTools']>>;
|
|
283
316
|
/**
|
|
284
317
|
* @internal
|
|
285
318
|
* Creates a global execute tool function.
|
|
@@ -339,8 +372,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
339
372
|
/**
|
|
340
373
|
* Executes a given tool with the provided parameters.
|
|
341
374
|
*
|
|
342
|
-
* This method calls the Composio API
|
|
343
|
-
* It automatically determines whether to use a custom tool or a Composio API tool based on the slug.
|
|
375
|
+
* This method calls the Composio API to execute the tool and returns the response.
|
|
344
376
|
*
|
|
345
377
|
* **Version Control:**
|
|
346
378
|
* By default, manual tool execution requires a specific toolkit version. If the version resolves to "latest",
|
|
@@ -354,10 +386,9 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
354
386
|
* @param {string} [body.userId] - The user ID to execute the tool for
|
|
355
387
|
* @param {string} [body.connectedAccountId] - The connected account ID to use for authenticated tools
|
|
356
388
|
* @param {Record<string, unknown>} [body.arguments] - The arguments to pass to the tool
|
|
357
|
-
* @param {ExecuteToolModifiers} [
|
|
358
|
-
* @returns {Promise<ToolExecuteResponse>}
|
|
389
|
+
* @param {ExecuteToolModifiers & ComposioRequestOptions} [options] - Optional modifiers and request options
|
|
390
|
+
* @returns {Promise<ToolExecuteResponse>} The response from the tool execution
|
|
359
391
|
*
|
|
360
|
-
* @throws {ComposioCustomToolsNotInitializedError} If the CustomTools instance is not initialized
|
|
361
392
|
* @throws {ComposioConnectedAccountNotFoundError} If the connected account is not found
|
|
362
393
|
* @throws {ComposioToolNotFoundError} If the tool with the given slug is not found
|
|
363
394
|
* @throws {ComposioToolVersionRequiredError} If version resolves to "latest" and dangerouslySkipVersionCheck is not true
|
|
@@ -408,8 +439,17 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
408
439
|
* }
|
|
409
440
|
* });
|
|
410
441
|
* ```
|
|
442
|
+
*
|
|
443
|
+
* @example Execute with timeout
|
|
444
|
+
* ```typescript
|
|
445
|
+
* const result = await composio.tools.execute('HACKERNEWS_GET_FRONTPAGE', {
|
|
446
|
+
* userId: 'default',
|
|
447
|
+
* arguments: {},
|
|
448
|
+
* dangerouslySkipVersionCheck: true,
|
|
449
|
+
* }, { signal: AbortSignal.timeout(5_000) });
|
|
450
|
+
* ```
|
|
411
451
|
*/
|
|
412
|
-
execute(slug: string, body: ToolExecuteParams,
|
|
452
|
+
execute(slug: string, body: ToolExecuteParams, options?: ExecuteToolModifiers & ComposioRequestOptions): Promise<ToolExecuteResponse>;
|
|
413
453
|
/**
|
|
414
454
|
* Executes a tool based on a tool router session.
|
|
415
455
|
*
|
|
@@ -421,7 +461,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
421
461
|
* @param {Tool} tool - Optional tool schema used to resolve toolkit metadata for modifiers
|
|
422
462
|
* @returns {Promise<ToolExecuteResponse>} The response from the tool execution
|
|
423
463
|
*/
|
|
424
|
-
executeSessionTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: SessionExecuteMetaModifiers, tool?: Tool, options?: ToolRouterSessionExecuteOptions): Promise<ToolExecuteResponse
|
|
464
|
+
executeSessionTool(toolSlug: string, body: ToolExecuteMetaParams, modifiers?: SessionExecuteMetaModifiers, tool?: Tool, options?: ToolRouterSessionExecuteOptions, requestOptions?: ComposioRequestOptions): Promise<ToolExecuteResponse>;
|
|
425
465
|
/**
|
|
426
466
|
* Fetches the list of all available tools in the Composio SDK.
|
|
427
467
|
*
|
|
@@ -436,7 +476,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
436
476
|
* console.log(toolsEnum.items);
|
|
437
477
|
* ```
|
|
438
478
|
*/
|
|
439
|
-
getToolsEnum(): Promise<ToolRetrieveEnumResponse>;
|
|
479
|
+
getToolsEnum(requestOptions?: ComposioRequestOptions): Promise<ToolRetrieveEnumResponse>;
|
|
440
480
|
/**
|
|
441
481
|
* Fetches the input parameters for a given tool.
|
|
442
482
|
*
|
|
@@ -455,7 +495,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
455
495
|
* console.log(inputParams.schema);
|
|
456
496
|
* ```
|
|
457
497
|
*/
|
|
458
|
-
getInput(slug: string, body: ToolGetInputParams): Promise<ToolGetInputResponse>;
|
|
498
|
+
getInput(slug: string, body: ToolGetInputParams, requestOptions?: ComposioRequestOptions): Promise<ToolGetInputResponse>;
|
|
459
499
|
/**
|
|
460
500
|
* Proxies a custom request to a toolkit/integration.
|
|
461
501
|
*
|
|
@@ -479,53 +519,7 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
|
|
|
479
519
|
* console.log(response.data);
|
|
480
520
|
* ```
|
|
481
521
|
*/
|
|
482
|
-
proxyExecute(body: ToolProxyParams): Promise<ToolProxyResponse>;
|
|
483
|
-
/**
|
|
484
|
-
* Creates a custom tool that can be used within the Composio SDK.
|
|
485
|
-
*
|
|
486
|
-
* Custom tools allow you to extend the functionality of Composio with your own implementations
|
|
487
|
-
* while keeping a consistent interface for both built-in and custom tools.
|
|
488
|
-
*
|
|
489
|
-
* @param {CustomToolOptions} body - The configuration for the custom tool
|
|
490
|
-
* @returns {Promise<Tool>} The created custom tool
|
|
491
|
-
*
|
|
492
|
-
* @example
|
|
493
|
-
* ```typescript
|
|
494
|
-
* // creating a custom tool with a toolkit
|
|
495
|
-
* await composio.tools.createCustomTool({
|
|
496
|
-
* name: 'My Custom Tool',
|
|
497
|
-
* description: 'A custom tool that does something specific',
|
|
498
|
-
* slug: 'MY_CUSTOM_TOOL',
|
|
499
|
-
* userId: 'default',
|
|
500
|
-
* connectedAccountId: '123',
|
|
501
|
-
* toolkitSlug: 'github',
|
|
502
|
-
* inputParameters: z.object({
|
|
503
|
-
* param1: z.string().describe('First parameter'),
|
|
504
|
-
* }),
|
|
505
|
-
* execute: async (input, connectionConfig, executeToolRequest) => {
|
|
506
|
-
* // Custom logic here
|
|
507
|
-
* return { data: { result: 'Success!' } };
|
|
508
|
-
* }
|
|
509
|
-
* });
|
|
510
|
-
* ```
|
|
511
|
-
*
|
|
512
|
-
* @example
|
|
513
|
-
* ```typescript
|
|
514
|
-
* // creating a custom tool without a toolkit
|
|
515
|
-
* await composio.tools.createCustomTool({
|
|
516
|
-
* name: 'My Custom Tool',
|
|
517
|
-
* description: 'A custom tool that does something specific',
|
|
518
|
-
* slug: 'MY_CUSTOM_TOOL',
|
|
519
|
-
* inputParameters: z.object({
|
|
520
|
-
* param1: z.string().describe('First parameter'),
|
|
521
|
-
* }),
|
|
522
|
-
* execute: async (input) => {
|
|
523
|
-
* // Custom logic here
|
|
524
|
-
* return { data: { result: 'Success!' } };
|
|
525
|
-
* }
|
|
526
|
-
* });
|
|
527
|
-
*/
|
|
528
|
-
createCustomTool<T extends CustomToolInputParameter>(body: CustomToolOptions<T>): Promise<Tool>;
|
|
522
|
+
proxyExecute(body: ToolProxyParams, requestOptions?: ComposioRequestOptions): Promise<ToolProxyResponse>;
|
|
529
523
|
}
|
|
530
524
|
//#endregion
|
|
531
525
|
//#region src/types/toolkit.types.d.ts
|
|
@@ -541,14 +535,14 @@ declare const ToolkitsListParamsSchema: z.ZodObject<{
|
|
|
541
535
|
cursor: z.ZodOptional<z.ZodString>;
|
|
542
536
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
543
537
|
}, "strip", z.ZodTypeAny, {
|
|
544
|
-
limit?: number | undefined;
|
|
545
538
|
cursor?: string | undefined;
|
|
539
|
+
limit?: number | undefined;
|
|
546
540
|
category?: string | undefined;
|
|
547
541
|
managedBy?: "all" | "composio" | "project" | undefined;
|
|
548
542
|
sortBy?: "usage" | "alphabetically" | undefined;
|
|
549
543
|
}, {
|
|
550
|
-
limit?: number | undefined;
|
|
551
544
|
cursor?: string | undefined;
|
|
545
|
+
limit?: number | undefined;
|
|
552
546
|
category?: string | undefined;
|
|
553
547
|
managedBy?: "all" | "composio" | "project" | undefined;
|
|
554
548
|
sortBy?: "usage" | "alphabetically" | undefined;
|
|
@@ -564,11 +558,11 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
564
558
|
slug: z.ZodString;
|
|
565
559
|
name: z.ZodString;
|
|
566
560
|
}, "strip", z.ZodTypeAny, {
|
|
567
|
-
slug: string;
|
|
568
561
|
name: string;
|
|
569
|
-
}, {
|
|
570
562
|
slug: string;
|
|
563
|
+
}, {
|
|
571
564
|
name: string;
|
|
565
|
+
slug: string;
|
|
572
566
|
}>, "many">>;
|
|
573
567
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
574
568
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -579,31 +573,31 @@ declare const ToolKitMetaSchema: z.ZodObject<{
|
|
|
579
573
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
580
574
|
availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
581
575
|
}, "strip", z.ZodTypeAny, {
|
|
576
|
+
createdAt?: string | undefined;
|
|
577
|
+
updatedAt?: string | undefined;
|
|
582
578
|
logo?: string | undefined;
|
|
583
579
|
description?: string | undefined;
|
|
584
580
|
availableVersions?: string[] | undefined;
|
|
585
|
-
createdAt?: string | undefined;
|
|
586
581
|
categories?: {
|
|
587
|
-
slug: string;
|
|
588
582
|
name: string;
|
|
583
|
+
slug: string;
|
|
589
584
|
}[] | undefined;
|
|
590
585
|
appUrl?: string | undefined;
|
|
591
586
|
toolsCount?: number | undefined;
|
|
592
587
|
triggersCount?: number | undefined;
|
|
593
|
-
updatedAt?: string | undefined;
|
|
594
588
|
}, {
|
|
589
|
+
createdAt?: string | undefined;
|
|
590
|
+
updatedAt?: string | undefined;
|
|
595
591
|
logo?: string | undefined;
|
|
596
592
|
description?: string | undefined;
|
|
597
593
|
availableVersions?: string[] | undefined;
|
|
598
|
-
createdAt?: string | undefined;
|
|
599
594
|
categories?: {
|
|
600
|
-
slug: string;
|
|
601
595
|
name: string;
|
|
596
|
+
slug: string;
|
|
602
597
|
}[] | undefined;
|
|
603
598
|
appUrl?: string | undefined;
|
|
604
599
|
toolsCount?: number | undefined;
|
|
605
600
|
triggersCount?: number | undefined;
|
|
606
|
-
updatedAt?: string | undefined;
|
|
607
601
|
}>;
|
|
608
602
|
declare const ToolKitItemSchema: z.ZodObject<{
|
|
609
603
|
name: z.ZodString;
|
|
@@ -613,11 +607,11 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
613
607
|
slug: z.ZodString;
|
|
614
608
|
name: z.ZodString;
|
|
615
609
|
}, "strip", z.ZodTypeAny, {
|
|
616
|
-
slug: string;
|
|
617
610
|
name: string;
|
|
618
|
-
}, {
|
|
619
611
|
slug: string;
|
|
612
|
+
}, {
|
|
620
613
|
name: string;
|
|
614
|
+
slug: string;
|
|
621
615
|
}>, "many">>;
|
|
622
616
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
623
617
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -628,73 +622,73 @@ declare const ToolKitItemSchema: z.ZodObject<{
|
|
|
628
622
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
629
623
|
availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
630
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
createdAt?: string | undefined;
|
|
626
|
+
updatedAt?: string | undefined;
|
|
631
627
|
logo?: string | undefined;
|
|
632
628
|
description?: string | undefined;
|
|
633
629
|
availableVersions?: string[] | undefined;
|
|
634
|
-
createdAt?: string | undefined;
|
|
635
630
|
categories?: {
|
|
636
|
-
slug: string;
|
|
637
631
|
name: string;
|
|
632
|
+
slug: string;
|
|
638
633
|
}[] | undefined;
|
|
639
634
|
appUrl?: string | undefined;
|
|
640
635
|
toolsCount?: number | undefined;
|
|
641
636
|
triggersCount?: number | undefined;
|
|
642
|
-
updatedAt?: string | undefined;
|
|
643
637
|
}, {
|
|
638
|
+
createdAt?: string | undefined;
|
|
639
|
+
updatedAt?: string | undefined;
|
|
644
640
|
logo?: string | undefined;
|
|
645
641
|
description?: string | undefined;
|
|
646
642
|
availableVersions?: string[] | undefined;
|
|
647
|
-
createdAt?: string | undefined;
|
|
648
643
|
categories?: {
|
|
649
|
-
slug: string;
|
|
650
644
|
name: string;
|
|
645
|
+
slug: string;
|
|
651
646
|
}[] | undefined;
|
|
652
647
|
appUrl?: string | undefined;
|
|
653
648
|
toolsCount?: number | undefined;
|
|
654
649
|
triggersCount?: number | undefined;
|
|
655
|
-
updatedAt?: string | undefined;
|
|
656
650
|
}>;
|
|
657
651
|
isLocalToolkit: z.ZodBoolean;
|
|
658
652
|
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
659
653
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
660
654
|
noAuth: z.ZodOptional<z.ZodBoolean>;
|
|
661
655
|
}, "strip", z.ZodTypeAny, {
|
|
662
|
-
slug: string;
|
|
663
656
|
name: string;
|
|
657
|
+
slug: string;
|
|
664
658
|
meta: {
|
|
659
|
+
createdAt?: string | undefined;
|
|
660
|
+
updatedAt?: string | undefined;
|
|
665
661
|
logo?: string | undefined;
|
|
666
662
|
description?: string | undefined;
|
|
667
663
|
availableVersions?: string[] | undefined;
|
|
668
|
-
createdAt?: string | undefined;
|
|
669
664
|
categories?: {
|
|
670
|
-
slug: string;
|
|
671
665
|
name: string;
|
|
666
|
+
slug: string;
|
|
672
667
|
}[] | undefined;
|
|
673
668
|
appUrl?: string | undefined;
|
|
674
669
|
toolsCount?: number | undefined;
|
|
675
670
|
triggersCount?: number | undefined;
|
|
676
|
-
updatedAt?: string | undefined;
|
|
677
671
|
};
|
|
678
672
|
isLocalToolkit: boolean;
|
|
679
673
|
authSchemes?: string[] | undefined;
|
|
680
674
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
681
675
|
noAuth?: boolean | undefined;
|
|
682
676
|
}, {
|
|
683
|
-
slug: string;
|
|
684
677
|
name: string;
|
|
678
|
+
slug: string;
|
|
685
679
|
meta: {
|
|
680
|
+
createdAt?: string | undefined;
|
|
681
|
+
updatedAt?: string | undefined;
|
|
686
682
|
logo?: string | undefined;
|
|
687
683
|
description?: string | undefined;
|
|
688
684
|
availableVersions?: string[] | undefined;
|
|
689
|
-
createdAt?: string | undefined;
|
|
690
685
|
categories?: {
|
|
691
|
-
slug: string;
|
|
692
686
|
name: string;
|
|
687
|
+
slug: string;
|
|
693
688
|
}[] | undefined;
|
|
694
689
|
appUrl?: string | undefined;
|
|
695
690
|
toolsCount?: number | undefined;
|
|
696
691
|
triggersCount?: number | undefined;
|
|
697
|
-
updatedAt?: string | undefined;
|
|
698
692
|
};
|
|
699
693
|
isLocalToolkit: boolean;
|
|
700
694
|
authSchemes?: string[] | undefined;
|
|
@@ -709,11 +703,11 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
709
703
|
slug: z.ZodString;
|
|
710
704
|
name: z.ZodString;
|
|
711
705
|
}, "strip", z.ZodTypeAny, {
|
|
712
|
-
slug: string;
|
|
713
706
|
name: string;
|
|
714
|
-
}, {
|
|
715
707
|
slug: string;
|
|
708
|
+
}, {
|
|
716
709
|
name: string;
|
|
710
|
+
slug: string;
|
|
717
711
|
}>, "many">>;
|
|
718
712
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
719
713
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -724,73 +718,73 @@ declare const ToolKitListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
724
718
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
725
719
|
availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
726
720
|
}, "strip", z.ZodTypeAny, {
|
|
721
|
+
createdAt?: string | undefined;
|
|
722
|
+
updatedAt?: string | undefined;
|
|
727
723
|
logo?: string | undefined;
|
|
728
724
|
description?: string | undefined;
|
|
729
725
|
availableVersions?: string[] | undefined;
|
|
730
|
-
createdAt?: string | undefined;
|
|
731
726
|
categories?: {
|
|
732
|
-
slug: string;
|
|
733
727
|
name: string;
|
|
728
|
+
slug: string;
|
|
734
729
|
}[] | undefined;
|
|
735
730
|
appUrl?: string | undefined;
|
|
736
731
|
toolsCount?: number | undefined;
|
|
737
732
|
triggersCount?: number | undefined;
|
|
738
|
-
updatedAt?: string | undefined;
|
|
739
733
|
}, {
|
|
734
|
+
createdAt?: string | undefined;
|
|
735
|
+
updatedAt?: string | undefined;
|
|
740
736
|
logo?: string | undefined;
|
|
741
737
|
description?: string | undefined;
|
|
742
738
|
availableVersions?: string[] | undefined;
|
|
743
|
-
createdAt?: string | undefined;
|
|
744
739
|
categories?: {
|
|
745
|
-
slug: string;
|
|
746
740
|
name: string;
|
|
741
|
+
slug: string;
|
|
747
742
|
}[] | undefined;
|
|
748
743
|
appUrl?: string | undefined;
|
|
749
744
|
toolsCount?: number | undefined;
|
|
750
745
|
triggersCount?: number | undefined;
|
|
751
|
-
updatedAt?: string | undefined;
|
|
752
746
|
}>;
|
|
753
747
|
isLocalToolkit: z.ZodBoolean;
|
|
754
748
|
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
755
749
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
756
750
|
noAuth: z.ZodOptional<z.ZodBoolean>;
|
|
757
751
|
}, "strip", z.ZodTypeAny, {
|
|
758
|
-
slug: string;
|
|
759
752
|
name: string;
|
|
753
|
+
slug: string;
|
|
760
754
|
meta: {
|
|
755
|
+
createdAt?: string | undefined;
|
|
756
|
+
updatedAt?: string | undefined;
|
|
761
757
|
logo?: string | undefined;
|
|
762
758
|
description?: string | undefined;
|
|
763
759
|
availableVersions?: string[] | undefined;
|
|
764
|
-
createdAt?: string | undefined;
|
|
765
760
|
categories?: {
|
|
766
|
-
slug: string;
|
|
767
761
|
name: string;
|
|
762
|
+
slug: string;
|
|
768
763
|
}[] | undefined;
|
|
769
764
|
appUrl?: string | undefined;
|
|
770
765
|
toolsCount?: number | undefined;
|
|
771
766
|
triggersCount?: number | undefined;
|
|
772
|
-
updatedAt?: string | undefined;
|
|
773
767
|
};
|
|
774
768
|
isLocalToolkit: boolean;
|
|
775
769
|
authSchemes?: string[] | undefined;
|
|
776
770
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
777
771
|
noAuth?: boolean | undefined;
|
|
778
772
|
}, {
|
|
779
|
-
slug: string;
|
|
780
773
|
name: string;
|
|
774
|
+
slug: string;
|
|
781
775
|
meta: {
|
|
776
|
+
createdAt?: string | undefined;
|
|
777
|
+
updatedAt?: string | undefined;
|
|
782
778
|
logo?: string | undefined;
|
|
783
779
|
description?: string | undefined;
|
|
784
780
|
availableVersions?: string[] | undefined;
|
|
785
|
-
createdAt?: string | undefined;
|
|
786
781
|
categories?: {
|
|
787
|
-
slug: string;
|
|
788
782
|
name: string;
|
|
783
|
+
slug: string;
|
|
789
784
|
}[] | undefined;
|
|
790
785
|
appUrl?: string | undefined;
|
|
791
786
|
toolsCount?: number | undefined;
|
|
792
787
|
triggersCount?: number | undefined;
|
|
793
|
-
updatedAt?: string | undefined;
|
|
794
788
|
};
|
|
795
789
|
isLocalToolkit: boolean;
|
|
796
790
|
authSchemes?: string[] | undefined;
|
|
@@ -811,15 +805,15 @@ declare const ToolkitAuthFieldSchema: z.ZodObject<{
|
|
|
811
805
|
type: z.ZodString;
|
|
812
806
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
807
|
}, "strip", z.ZodTypeAny, {
|
|
814
|
-
name: string;
|
|
815
808
|
type: string;
|
|
809
|
+
name: string;
|
|
816
810
|
description: string;
|
|
817
811
|
required: boolean;
|
|
818
812
|
displayName: string;
|
|
819
813
|
default?: string | null | undefined;
|
|
820
814
|
}, {
|
|
821
|
-
name: string;
|
|
822
815
|
type: string;
|
|
816
|
+
name: string;
|
|
823
817
|
description: string;
|
|
824
818
|
required: boolean;
|
|
825
819
|
displayName: string;
|
|
@@ -838,15 +832,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
838
832
|
type: z.ZodString;
|
|
839
833
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
840
834
|
}, "strip", z.ZodTypeAny, {
|
|
841
|
-
name: string;
|
|
842
835
|
type: string;
|
|
836
|
+
name: string;
|
|
843
837
|
description: string;
|
|
844
838
|
required: boolean;
|
|
845
839
|
displayName: string;
|
|
846
840
|
default?: string | null | undefined;
|
|
847
841
|
}, {
|
|
848
|
-
name: string;
|
|
849
842
|
type: string;
|
|
843
|
+
name: string;
|
|
850
844
|
description: string;
|
|
851
845
|
required: boolean;
|
|
852
846
|
displayName: string;
|
|
@@ -860,15 +854,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
860
854
|
type: z.ZodString;
|
|
861
855
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
862
856
|
}, "strip", z.ZodTypeAny, {
|
|
863
|
-
name: string;
|
|
864
857
|
type: string;
|
|
858
|
+
name: string;
|
|
865
859
|
description: string;
|
|
866
860
|
required: boolean;
|
|
867
861
|
displayName: string;
|
|
868
862
|
default?: string | null | undefined;
|
|
869
863
|
}, {
|
|
870
|
-
name: string;
|
|
871
864
|
type: string;
|
|
865
|
+
name: string;
|
|
872
866
|
description: string;
|
|
873
867
|
required: boolean;
|
|
874
868
|
displayName: string;
|
|
@@ -876,16 +870,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
876
870
|
}>, "many">;
|
|
877
871
|
}, "strip", z.ZodTypeAny, {
|
|
878
872
|
required: {
|
|
879
|
-
name: string;
|
|
880
873
|
type: string;
|
|
874
|
+
name: string;
|
|
881
875
|
description: string;
|
|
882
876
|
required: boolean;
|
|
883
877
|
displayName: string;
|
|
884
878
|
default?: string | null | undefined;
|
|
885
879
|
}[];
|
|
886
880
|
optional: {
|
|
887
|
-
name: string;
|
|
888
881
|
type: string;
|
|
882
|
+
name: string;
|
|
889
883
|
description: string;
|
|
890
884
|
required: boolean;
|
|
891
885
|
displayName: string;
|
|
@@ -893,16 +887,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
893
887
|
}[];
|
|
894
888
|
}, {
|
|
895
889
|
required: {
|
|
896
|
-
name: string;
|
|
897
890
|
type: string;
|
|
891
|
+
name: string;
|
|
898
892
|
description: string;
|
|
899
893
|
required: boolean;
|
|
900
894
|
displayName: string;
|
|
901
895
|
default?: string | null | undefined;
|
|
902
896
|
}[];
|
|
903
897
|
optional: {
|
|
904
|
-
name: string;
|
|
905
898
|
type: string;
|
|
899
|
+
name: string;
|
|
906
900
|
description: string;
|
|
907
901
|
required: boolean;
|
|
908
902
|
displayName: string;
|
|
@@ -918,15 +912,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
918
912
|
type: z.ZodString;
|
|
919
913
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
920
914
|
}, "strip", z.ZodTypeAny, {
|
|
921
|
-
name: string;
|
|
922
915
|
type: string;
|
|
916
|
+
name: string;
|
|
923
917
|
description: string;
|
|
924
918
|
required: boolean;
|
|
925
919
|
displayName: string;
|
|
926
920
|
default?: string | null | undefined;
|
|
927
921
|
}, {
|
|
928
|
-
name: string;
|
|
929
922
|
type: string;
|
|
923
|
+
name: string;
|
|
930
924
|
description: string;
|
|
931
925
|
required: boolean;
|
|
932
926
|
displayName: string;
|
|
@@ -940,15 +934,15 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
940
934
|
type: z.ZodString;
|
|
941
935
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
942
936
|
}, "strip", z.ZodTypeAny, {
|
|
943
|
-
name: string;
|
|
944
937
|
type: string;
|
|
938
|
+
name: string;
|
|
945
939
|
description: string;
|
|
946
940
|
required: boolean;
|
|
947
941
|
displayName: string;
|
|
948
942
|
default?: string | null | undefined;
|
|
949
943
|
}, {
|
|
950
|
-
name: string;
|
|
951
944
|
type: string;
|
|
945
|
+
name: string;
|
|
952
946
|
description: string;
|
|
953
947
|
required: boolean;
|
|
954
948
|
displayName: string;
|
|
@@ -956,16 +950,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
956
950
|
}>, "many">;
|
|
957
951
|
}, "strip", z.ZodTypeAny, {
|
|
958
952
|
required: {
|
|
959
|
-
name: string;
|
|
960
953
|
type: string;
|
|
954
|
+
name: string;
|
|
961
955
|
description: string;
|
|
962
956
|
required: boolean;
|
|
963
957
|
displayName: string;
|
|
964
958
|
default?: string | null | undefined;
|
|
965
959
|
}[];
|
|
966
960
|
optional: {
|
|
967
|
-
name: string;
|
|
968
961
|
type: string;
|
|
962
|
+
name: string;
|
|
969
963
|
description: string;
|
|
970
964
|
required: boolean;
|
|
971
965
|
displayName: string;
|
|
@@ -973,16 +967,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
973
967
|
}[];
|
|
974
968
|
}, {
|
|
975
969
|
required: {
|
|
976
|
-
name: string;
|
|
977
970
|
type: string;
|
|
971
|
+
name: string;
|
|
978
972
|
description: string;
|
|
979
973
|
required: boolean;
|
|
980
974
|
displayName: string;
|
|
981
975
|
default?: string | null | undefined;
|
|
982
976
|
}[];
|
|
983
977
|
optional: {
|
|
984
|
-
name: string;
|
|
985
978
|
type: string;
|
|
979
|
+
name: string;
|
|
986
980
|
description: string;
|
|
987
981
|
required: boolean;
|
|
988
982
|
displayName: string;
|
|
@@ -992,16 +986,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
992
986
|
}, "strip", z.ZodTypeAny, {
|
|
993
987
|
authConfigCreation: {
|
|
994
988
|
required: {
|
|
995
|
-
name: string;
|
|
996
989
|
type: string;
|
|
990
|
+
name: string;
|
|
997
991
|
description: string;
|
|
998
992
|
required: boolean;
|
|
999
993
|
displayName: string;
|
|
1000
994
|
default?: string | null | undefined;
|
|
1001
995
|
}[];
|
|
1002
996
|
optional: {
|
|
1003
|
-
name: string;
|
|
1004
997
|
type: string;
|
|
998
|
+
name: string;
|
|
1005
999
|
description: string;
|
|
1006
1000
|
required: boolean;
|
|
1007
1001
|
displayName: string;
|
|
@@ -1010,16 +1004,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1010
1004
|
};
|
|
1011
1005
|
connectedAccountInitiation: {
|
|
1012
1006
|
required: {
|
|
1013
|
-
name: string;
|
|
1014
1007
|
type: string;
|
|
1008
|
+
name: string;
|
|
1015
1009
|
description: string;
|
|
1016
1010
|
required: boolean;
|
|
1017
1011
|
displayName: string;
|
|
1018
1012
|
default?: string | null | undefined;
|
|
1019
1013
|
}[];
|
|
1020
1014
|
optional: {
|
|
1021
|
-
name: string;
|
|
1022
1015
|
type: string;
|
|
1016
|
+
name: string;
|
|
1023
1017
|
description: string;
|
|
1024
1018
|
required: boolean;
|
|
1025
1019
|
displayName: string;
|
|
@@ -1029,16 +1023,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1029
1023
|
}, {
|
|
1030
1024
|
authConfigCreation: {
|
|
1031
1025
|
required: {
|
|
1032
|
-
name: string;
|
|
1033
1026
|
type: string;
|
|
1027
|
+
name: string;
|
|
1034
1028
|
description: string;
|
|
1035
1029
|
required: boolean;
|
|
1036
1030
|
displayName: string;
|
|
1037
1031
|
default?: string | null | undefined;
|
|
1038
1032
|
}[];
|
|
1039
1033
|
optional: {
|
|
1040
|
-
name: string;
|
|
1041
1034
|
type: string;
|
|
1035
|
+
name: string;
|
|
1042
1036
|
description: string;
|
|
1043
1037
|
required: boolean;
|
|
1044
1038
|
displayName: string;
|
|
@@ -1047,16 +1041,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1047
1041
|
};
|
|
1048
1042
|
connectedAccountInitiation: {
|
|
1049
1043
|
required: {
|
|
1050
|
-
name: string;
|
|
1051
1044
|
type: string;
|
|
1045
|
+
name: string;
|
|
1052
1046
|
description: string;
|
|
1053
1047
|
required: boolean;
|
|
1054
1048
|
displayName: string;
|
|
1055
1049
|
default?: string | null | undefined;
|
|
1056
1050
|
}[];
|
|
1057
1051
|
optional: {
|
|
1058
|
-
name: string;
|
|
1059
1052
|
type: string;
|
|
1053
|
+
name: string;
|
|
1060
1054
|
description: string;
|
|
1061
1055
|
required: boolean;
|
|
1062
1056
|
displayName: string;
|
|
@@ -1077,16 +1071,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1077
1071
|
fields: {
|
|
1078
1072
|
authConfigCreation: {
|
|
1079
1073
|
required: {
|
|
1080
|
-
name: string;
|
|
1081
1074
|
type: string;
|
|
1075
|
+
name: string;
|
|
1082
1076
|
description: string;
|
|
1083
1077
|
required: boolean;
|
|
1084
1078
|
displayName: string;
|
|
1085
1079
|
default?: string | null | undefined;
|
|
1086
1080
|
}[];
|
|
1087
1081
|
optional: {
|
|
1088
|
-
name: string;
|
|
1089
1082
|
type: string;
|
|
1083
|
+
name: string;
|
|
1090
1084
|
description: string;
|
|
1091
1085
|
required: boolean;
|
|
1092
1086
|
displayName: string;
|
|
@@ -1095,16 +1089,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1095
1089
|
};
|
|
1096
1090
|
connectedAccountInitiation: {
|
|
1097
1091
|
required: {
|
|
1098
|
-
name: string;
|
|
1099
1092
|
type: string;
|
|
1093
|
+
name: string;
|
|
1100
1094
|
description: string;
|
|
1101
1095
|
required: boolean;
|
|
1102
1096
|
displayName: string;
|
|
1103
1097
|
default?: string | null | undefined;
|
|
1104
1098
|
}[];
|
|
1105
1099
|
optional: {
|
|
1106
|
-
name: string;
|
|
1107
1100
|
type: string;
|
|
1101
|
+
name: string;
|
|
1108
1102
|
description: string;
|
|
1109
1103
|
required: boolean;
|
|
1110
1104
|
displayName: string;
|
|
@@ -1121,16 +1115,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1121
1115
|
fields: {
|
|
1122
1116
|
authConfigCreation: {
|
|
1123
1117
|
required: {
|
|
1124
|
-
name: string;
|
|
1125
1118
|
type: string;
|
|
1119
|
+
name: string;
|
|
1126
1120
|
description: string;
|
|
1127
1121
|
required: boolean;
|
|
1128
1122
|
displayName: string;
|
|
1129
1123
|
default?: string | null | undefined;
|
|
1130
1124
|
}[];
|
|
1131
1125
|
optional: {
|
|
1132
|
-
name: string;
|
|
1133
1126
|
type: string;
|
|
1127
|
+
name: string;
|
|
1134
1128
|
description: string;
|
|
1135
1129
|
required: boolean;
|
|
1136
1130
|
displayName: string;
|
|
@@ -1139,16 +1133,16 @@ declare const ToolkitAuthConfigDetailsSchema: z.ZodObject<{
|
|
|
1139
1133
|
};
|
|
1140
1134
|
connectedAccountInitiation: {
|
|
1141
1135
|
required: {
|
|
1142
|
-
name: string;
|
|
1143
1136
|
type: string;
|
|
1137
|
+
name: string;
|
|
1144
1138
|
description: string;
|
|
1145
1139
|
required: boolean;
|
|
1146
1140
|
displayName: string;
|
|
1147
1141
|
default?: string | null | undefined;
|
|
1148
1142
|
}[];
|
|
1149
1143
|
optional: {
|
|
1150
|
-
name: string;
|
|
1151
1144
|
type: string;
|
|
1145
|
+
name: string;
|
|
1152
1146
|
description: string;
|
|
1153
1147
|
required: boolean;
|
|
1154
1148
|
displayName: string;
|
|
@@ -1168,11 +1162,11 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1168
1162
|
slug: z.ZodString;
|
|
1169
1163
|
name: z.ZodString;
|
|
1170
1164
|
}, "strip", z.ZodTypeAny, {
|
|
1171
|
-
slug: string;
|
|
1172
1165
|
name: string;
|
|
1173
|
-
}, {
|
|
1174
1166
|
slug: string;
|
|
1167
|
+
}, {
|
|
1175
1168
|
name: string;
|
|
1169
|
+
slug: string;
|
|
1176
1170
|
}>, "many">>;
|
|
1177
1171
|
appUrl: z.ZodOptional<z.ZodString>;
|
|
1178
1172
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1183,31 +1177,31 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1183
1177
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1184
1178
|
availableVersions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1185
1179
|
}, "strip", z.ZodTypeAny, {
|
|
1180
|
+
createdAt?: string | undefined;
|
|
1181
|
+
updatedAt?: string | undefined;
|
|
1186
1182
|
logo?: string | undefined;
|
|
1187
1183
|
description?: string | undefined;
|
|
1188
1184
|
availableVersions?: string[] | undefined;
|
|
1189
|
-
createdAt?: string | undefined;
|
|
1190
1185
|
categories?: {
|
|
1191
|
-
slug: string;
|
|
1192
1186
|
name: string;
|
|
1187
|
+
slug: string;
|
|
1193
1188
|
}[] | undefined;
|
|
1194
1189
|
appUrl?: string | undefined;
|
|
1195
1190
|
toolsCount?: number | undefined;
|
|
1196
1191
|
triggersCount?: number | undefined;
|
|
1197
|
-
updatedAt?: string | undefined;
|
|
1198
1192
|
}, {
|
|
1193
|
+
createdAt?: string | undefined;
|
|
1194
|
+
updatedAt?: string | undefined;
|
|
1199
1195
|
logo?: string | undefined;
|
|
1200
1196
|
description?: string | undefined;
|
|
1201
1197
|
availableVersions?: string[] | undefined;
|
|
1202
|
-
createdAt?: string | undefined;
|
|
1203
1198
|
categories?: {
|
|
1204
|
-
slug: string;
|
|
1205
1199
|
name: string;
|
|
1200
|
+
slug: string;
|
|
1206
1201
|
}[] | undefined;
|
|
1207
1202
|
appUrl?: string | undefined;
|
|
1208
1203
|
toolsCount?: number | undefined;
|
|
1209
1204
|
triggersCount?: number | undefined;
|
|
1210
|
-
updatedAt?: string | undefined;
|
|
1211
1205
|
}>;
|
|
1212
1206
|
isLocalToolkit: z.ZodBoolean;
|
|
1213
1207
|
composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1224,15 +1218,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1224
1218
|
type: z.ZodString;
|
|
1225
1219
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1226
1220
|
}, "strip", z.ZodTypeAny, {
|
|
1227
|
-
name: string;
|
|
1228
1221
|
type: string;
|
|
1222
|
+
name: string;
|
|
1229
1223
|
description: string;
|
|
1230
1224
|
required: boolean;
|
|
1231
1225
|
displayName: string;
|
|
1232
1226
|
default?: string | null | undefined;
|
|
1233
1227
|
}, {
|
|
1234
|
-
name: string;
|
|
1235
1228
|
type: string;
|
|
1229
|
+
name: string;
|
|
1236
1230
|
description: string;
|
|
1237
1231
|
required: boolean;
|
|
1238
1232
|
displayName: string;
|
|
@@ -1246,15 +1240,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1246
1240
|
type: z.ZodString;
|
|
1247
1241
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1248
1242
|
}, "strip", z.ZodTypeAny, {
|
|
1249
|
-
name: string;
|
|
1250
1243
|
type: string;
|
|
1244
|
+
name: string;
|
|
1251
1245
|
description: string;
|
|
1252
1246
|
required: boolean;
|
|
1253
1247
|
displayName: string;
|
|
1254
1248
|
default?: string | null | undefined;
|
|
1255
1249
|
}, {
|
|
1256
|
-
name: string;
|
|
1257
1250
|
type: string;
|
|
1251
|
+
name: string;
|
|
1258
1252
|
description: string;
|
|
1259
1253
|
required: boolean;
|
|
1260
1254
|
displayName: string;
|
|
@@ -1262,16 +1256,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1262
1256
|
}>, "many">;
|
|
1263
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1264
1258
|
required: {
|
|
1265
|
-
name: string;
|
|
1266
1259
|
type: string;
|
|
1260
|
+
name: string;
|
|
1267
1261
|
description: string;
|
|
1268
1262
|
required: boolean;
|
|
1269
1263
|
displayName: string;
|
|
1270
1264
|
default?: string | null | undefined;
|
|
1271
1265
|
}[];
|
|
1272
1266
|
optional: {
|
|
1273
|
-
name: string;
|
|
1274
1267
|
type: string;
|
|
1268
|
+
name: string;
|
|
1275
1269
|
description: string;
|
|
1276
1270
|
required: boolean;
|
|
1277
1271
|
displayName: string;
|
|
@@ -1279,16 +1273,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1279
1273
|
}[];
|
|
1280
1274
|
}, {
|
|
1281
1275
|
required: {
|
|
1282
|
-
name: string;
|
|
1283
1276
|
type: string;
|
|
1277
|
+
name: string;
|
|
1284
1278
|
description: string;
|
|
1285
1279
|
required: boolean;
|
|
1286
1280
|
displayName: string;
|
|
1287
1281
|
default?: string | null | undefined;
|
|
1288
1282
|
}[];
|
|
1289
1283
|
optional: {
|
|
1290
|
-
name: string;
|
|
1291
1284
|
type: string;
|
|
1285
|
+
name: string;
|
|
1292
1286
|
description: string;
|
|
1293
1287
|
required: boolean;
|
|
1294
1288
|
displayName: string;
|
|
@@ -1304,15 +1298,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1304
1298
|
type: z.ZodString;
|
|
1305
1299
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1306
1300
|
}, "strip", z.ZodTypeAny, {
|
|
1307
|
-
name: string;
|
|
1308
1301
|
type: string;
|
|
1302
|
+
name: string;
|
|
1309
1303
|
description: string;
|
|
1310
1304
|
required: boolean;
|
|
1311
1305
|
displayName: string;
|
|
1312
1306
|
default?: string | null | undefined;
|
|
1313
1307
|
}, {
|
|
1314
|
-
name: string;
|
|
1315
1308
|
type: string;
|
|
1309
|
+
name: string;
|
|
1316
1310
|
description: string;
|
|
1317
1311
|
required: boolean;
|
|
1318
1312
|
displayName: string;
|
|
@@ -1326,15 +1320,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1326
1320
|
type: z.ZodString;
|
|
1327
1321
|
default: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1328
1322
|
}, "strip", z.ZodTypeAny, {
|
|
1329
|
-
name: string;
|
|
1330
1323
|
type: string;
|
|
1324
|
+
name: string;
|
|
1331
1325
|
description: string;
|
|
1332
1326
|
required: boolean;
|
|
1333
1327
|
displayName: string;
|
|
1334
1328
|
default?: string | null | undefined;
|
|
1335
1329
|
}, {
|
|
1336
|
-
name: string;
|
|
1337
1330
|
type: string;
|
|
1331
|
+
name: string;
|
|
1338
1332
|
description: string;
|
|
1339
1333
|
required: boolean;
|
|
1340
1334
|
displayName: string;
|
|
@@ -1342,16 +1336,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1342
1336
|
}>, "many">;
|
|
1343
1337
|
}, "strip", z.ZodTypeAny, {
|
|
1344
1338
|
required: {
|
|
1345
|
-
name: string;
|
|
1346
1339
|
type: string;
|
|
1340
|
+
name: string;
|
|
1347
1341
|
description: string;
|
|
1348
1342
|
required: boolean;
|
|
1349
1343
|
displayName: string;
|
|
1350
1344
|
default?: string | null | undefined;
|
|
1351
1345
|
}[];
|
|
1352
1346
|
optional: {
|
|
1353
|
-
name: string;
|
|
1354
1347
|
type: string;
|
|
1348
|
+
name: string;
|
|
1355
1349
|
description: string;
|
|
1356
1350
|
required: boolean;
|
|
1357
1351
|
displayName: string;
|
|
@@ -1359,16 +1353,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1359
1353
|
}[];
|
|
1360
1354
|
}, {
|
|
1361
1355
|
required: {
|
|
1362
|
-
name: string;
|
|
1363
1356
|
type: string;
|
|
1357
|
+
name: string;
|
|
1364
1358
|
description: string;
|
|
1365
1359
|
required: boolean;
|
|
1366
1360
|
displayName: string;
|
|
1367
1361
|
default?: string | null | undefined;
|
|
1368
1362
|
}[];
|
|
1369
1363
|
optional: {
|
|
1370
|
-
name: string;
|
|
1371
1364
|
type: string;
|
|
1365
|
+
name: string;
|
|
1372
1366
|
description: string;
|
|
1373
1367
|
required: boolean;
|
|
1374
1368
|
displayName: string;
|
|
@@ -1378,16 +1372,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1378
1372
|
}, "strip", z.ZodTypeAny, {
|
|
1379
1373
|
authConfigCreation: {
|
|
1380
1374
|
required: {
|
|
1381
|
-
name: string;
|
|
1382
1375
|
type: string;
|
|
1376
|
+
name: string;
|
|
1383
1377
|
description: string;
|
|
1384
1378
|
required: boolean;
|
|
1385
1379
|
displayName: string;
|
|
1386
1380
|
default?: string | null | undefined;
|
|
1387
1381
|
}[];
|
|
1388
1382
|
optional: {
|
|
1389
|
-
name: string;
|
|
1390
1383
|
type: string;
|
|
1384
|
+
name: string;
|
|
1391
1385
|
description: string;
|
|
1392
1386
|
required: boolean;
|
|
1393
1387
|
displayName: string;
|
|
@@ -1396,16 +1390,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1396
1390
|
};
|
|
1397
1391
|
connectedAccountInitiation: {
|
|
1398
1392
|
required: {
|
|
1399
|
-
name: string;
|
|
1400
1393
|
type: string;
|
|
1394
|
+
name: string;
|
|
1401
1395
|
description: string;
|
|
1402
1396
|
required: boolean;
|
|
1403
1397
|
displayName: string;
|
|
1404
1398
|
default?: string | null | undefined;
|
|
1405
1399
|
}[];
|
|
1406
1400
|
optional: {
|
|
1407
|
-
name: string;
|
|
1408
1401
|
type: string;
|
|
1402
|
+
name: string;
|
|
1409
1403
|
description: string;
|
|
1410
1404
|
required: boolean;
|
|
1411
1405
|
displayName: string;
|
|
@@ -1415,16 +1409,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1415
1409
|
}, {
|
|
1416
1410
|
authConfigCreation: {
|
|
1417
1411
|
required: {
|
|
1418
|
-
name: string;
|
|
1419
1412
|
type: string;
|
|
1413
|
+
name: string;
|
|
1420
1414
|
description: string;
|
|
1421
1415
|
required: boolean;
|
|
1422
1416
|
displayName: string;
|
|
1423
1417
|
default?: string | null | undefined;
|
|
1424
1418
|
}[];
|
|
1425
1419
|
optional: {
|
|
1426
|
-
name: string;
|
|
1427
1420
|
type: string;
|
|
1421
|
+
name: string;
|
|
1428
1422
|
description: string;
|
|
1429
1423
|
required: boolean;
|
|
1430
1424
|
displayName: string;
|
|
@@ -1433,16 +1427,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1433
1427
|
};
|
|
1434
1428
|
connectedAccountInitiation: {
|
|
1435
1429
|
required: {
|
|
1436
|
-
name: string;
|
|
1437
1430
|
type: string;
|
|
1431
|
+
name: string;
|
|
1438
1432
|
description: string;
|
|
1439
1433
|
required: boolean;
|
|
1440
1434
|
displayName: string;
|
|
1441
1435
|
default?: string | null | undefined;
|
|
1442
1436
|
}[];
|
|
1443
1437
|
optional: {
|
|
1444
|
-
name: string;
|
|
1445
1438
|
type: string;
|
|
1439
|
+
name: string;
|
|
1446
1440
|
description: string;
|
|
1447
1441
|
required: boolean;
|
|
1448
1442
|
displayName: string;
|
|
@@ -1463,16 +1457,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1463
1457
|
fields: {
|
|
1464
1458
|
authConfigCreation: {
|
|
1465
1459
|
required: {
|
|
1466
|
-
name: string;
|
|
1467
1460
|
type: string;
|
|
1461
|
+
name: string;
|
|
1468
1462
|
description: string;
|
|
1469
1463
|
required: boolean;
|
|
1470
1464
|
displayName: string;
|
|
1471
1465
|
default?: string | null | undefined;
|
|
1472
1466
|
}[];
|
|
1473
1467
|
optional: {
|
|
1474
|
-
name: string;
|
|
1475
1468
|
type: string;
|
|
1469
|
+
name: string;
|
|
1476
1470
|
description: string;
|
|
1477
1471
|
required: boolean;
|
|
1478
1472
|
displayName: string;
|
|
@@ -1481,16 +1475,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1481
1475
|
};
|
|
1482
1476
|
connectedAccountInitiation: {
|
|
1483
1477
|
required: {
|
|
1484
|
-
name: string;
|
|
1485
1478
|
type: string;
|
|
1479
|
+
name: string;
|
|
1486
1480
|
description: string;
|
|
1487
1481
|
required: boolean;
|
|
1488
1482
|
displayName: string;
|
|
1489
1483
|
default?: string | null | undefined;
|
|
1490
1484
|
}[];
|
|
1491
1485
|
optional: {
|
|
1492
|
-
name: string;
|
|
1493
1486
|
type: string;
|
|
1487
|
+
name: string;
|
|
1494
1488
|
description: string;
|
|
1495
1489
|
required: boolean;
|
|
1496
1490
|
displayName: string;
|
|
@@ -1507,16 +1501,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1507
1501
|
fields: {
|
|
1508
1502
|
authConfigCreation: {
|
|
1509
1503
|
required: {
|
|
1510
|
-
name: string;
|
|
1511
1504
|
type: string;
|
|
1505
|
+
name: string;
|
|
1512
1506
|
description: string;
|
|
1513
1507
|
required: boolean;
|
|
1514
1508
|
displayName: string;
|
|
1515
1509
|
default?: string | null | undefined;
|
|
1516
1510
|
}[];
|
|
1517
1511
|
optional: {
|
|
1518
|
-
name: string;
|
|
1519
1512
|
type: string;
|
|
1513
|
+
name: string;
|
|
1520
1514
|
description: string;
|
|
1521
1515
|
required: boolean;
|
|
1522
1516
|
displayName: string;
|
|
@@ -1525,16 +1519,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1525
1519
|
};
|
|
1526
1520
|
connectedAccountInitiation: {
|
|
1527
1521
|
required: {
|
|
1528
|
-
name: string;
|
|
1529
1522
|
type: string;
|
|
1523
|
+
name: string;
|
|
1530
1524
|
description: string;
|
|
1531
1525
|
required: boolean;
|
|
1532
1526
|
displayName: string;
|
|
1533
1527
|
default?: string | null | undefined;
|
|
1534
1528
|
}[];
|
|
1535
1529
|
optional: {
|
|
1536
|
-
name: string;
|
|
1537
1530
|
type: string;
|
|
1531
|
+
name: string;
|
|
1538
1532
|
description: string;
|
|
1539
1533
|
required: boolean;
|
|
1540
1534
|
displayName: string;
|
|
@@ -1550,21 +1544,21 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1550
1544
|
getCurrentUserEndpoint: z.ZodOptional<z.ZodString>;
|
|
1551
1545
|
getCurrentUserEndpointMethod: z.ZodOptional<z.ZodString>;
|
|
1552
1546
|
}, "strip", z.ZodTypeAny, {
|
|
1553
|
-
slug: string;
|
|
1554
1547
|
name: string;
|
|
1548
|
+
slug: string;
|
|
1555
1549
|
meta: {
|
|
1550
|
+
createdAt?: string | undefined;
|
|
1551
|
+
updatedAt?: string | undefined;
|
|
1556
1552
|
logo?: string | undefined;
|
|
1557
1553
|
description?: string | undefined;
|
|
1558
1554
|
availableVersions?: string[] | undefined;
|
|
1559
|
-
createdAt?: string | undefined;
|
|
1560
1555
|
categories?: {
|
|
1561
|
-
slug: string;
|
|
1562
1556
|
name: string;
|
|
1557
|
+
slug: string;
|
|
1563
1558
|
}[] | undefined;
|
|
1564
1559
|
appUrl?: string | undefined;
|
|
1565
1560
|
toolsCount?: number | undefined;
|
|
1566
1561
|
triggersCount?: number | undefined;
|
|
1567
|
-
updatedAt?: string | undefined;
|
|
1568
1562
|
};
|
|
1569
1563
|
isLocalToolkit: boolean;
|
|
1570
1564
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1575,16 +1569,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1575
1569
|
fields: {
|
|
1576
1570
|
authConfigCreation: {
|
|
1577
1571
|
required: {
|
|
1578
|
-
name: string;
|
|
1579
1572
|
type: string;
|
|
1573
|
+
name: string;
|
|
1580
1574
|
description: string;
|
|
1581
1575
|
required: boolean;
|
|
1582
1576
|
displayName: string;
|
|
1583
1577
|
default?: string | null | undefined;
|
|
1584
1578
|
}[];
|
|
1585
1579
|
optional: {
|
|
1586
|
-
name: string;
|
|
1587
1580
|
type: string;
|
|
1581
|
+
name: string;
|
|
1588
1582
|
description: string;
|
|
1589
1583
|
required: boolean;
|
|
1590
1584
|
displayName: string;
|
|
@@ -1593,16 +1587,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1593
1587
|
};
|
|
1594
1588
|
connectedAccountInitiation: {
|
|
1595
1589
|
required: {
|
|
1596
|
-
name: string;
|
|
1597
1590
|
type: string;
|
|
1591
|
+
name: string;
|
|
1598
1592
|
description: string;
|
|
1599
1593
|
required: boolean;
|
|
1600
1594
|
displayName: string;
|
|
1601
1595
|
default?: string | null | undefined;
|
|
1602
1596
|
}[];
|
|
1603
1597
|
optional: {
|
|
1604
|
-
name: string;
|
|
1605
1598
|
type: string;
|
|
1599
|
+
name: string;
|
|
1606
1600
|
description: string;
|
|
1607
1601
|
required: boolean;
|
|
1608
1602
|
displayName: string;
|
|
@@ -1617,21 +1611,21 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1617
1611
|
getCurrentUserEndpoint?: string | undefined;
|
|
1618
1612
|
getCurrentUserEndpointMethod?: string | undefined;
|
|
1619
1613
|
}, {
|
|
1620
|
-
slug: string;
|
|
1621
1614
|
name: string;
|
|
1615
|
+
slug: string;
|
|
1622
1616
|
meta: {
|
|
1617
|
+
createdAt?: string | undefined;
|
|
1618
|
+
updatedAt?: string | undefined;
|
|
1623
1619
|
logo?: string | undefined;
|
|
1624
1620
|
description?: string | undefined;
|
|
1625
1621
|
availableVersions?: string[] | undefined;
|
|
1626
|
-
createdAt?: string | undefined;
|
|
1627
1622
|
categories?: {
|
|
1628
|
-
slug: string;
|
|
1629
1623
|
name: string;
|
|
1624
|
+
slug: string;
|
|
1630
1625
|
}[] | undefined;
|
|
1631
1626
|
appUrl?: string | undefined;
|
|
1632
1627
|
toolsCount?: number | undefined;
|
|
1633
1628
|
triggersCount?: number | undefined;
|
|
1634
|
-
updatedAt?: string | undefined;
|
|
1635
1629
|
};
|
|
1636
1630
|
isLocalToolkit: boolean;
|
|
1637
1631
|
composioManagedAuthSchemes?: string[] | undefined;
|
|
@@ -1642,16 +1636,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1642
1636
|
fields: {
|
|
1643
1637
|
authConfigCreation: {
|
|
1644
1638
|
required: {
|
|
1645
|
-
name: string;
|
|
1646
1639
|
type: string;
|
|
1640
|
+
name: string;
|
|
1647
1641
|
description: string;
|
|
1648
1642
|
required: boolean;
|
|
1649
1643
|
displayName: string;
|
|
1650
1644
|
default?: string | null | undefined;
|
|
1651
1645
|
}[];
|
|
1652
1646
|
optional: {
|
|
1653
|
-
name: string;
|
|
1654
1647
|
type: string;
|
|
1648
|
+
name: string;
|
|
1655
1649
|
description: string;
|
|
1656
1650
|
required: boolean;
|
|
1657
1651
|
displayName: string;
|
|
@@ -1660,16 +1654,16 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
|
|
|
1660
1654
|
};
|
|
1661
1655
|
connectedAccountInitiation: {
|
|
1662
1656
|
required: {
|
|
1663
|
-
name: string;
|
|
1664
1657
|
type: string;
|
|
1658
|
+
name: string;
|
|
1665
1659
|
description: string;
|
|
1666
1660
|
required: boolean;
|
|
1667
1661
|
displayName: string;
|
|
1668
1662
|
default?: string | null | undefined;
|
|
1669
1663
|
}[];
|
|
1670
1664
|
optional: {
|
|
1671
|
-
name: string;
|
|
1672
1665
|
type: string;
|
|
1666
|
+
name: string;
|
|
1673
1667
|
description: string;
|
|
1674
1668
|
required: boolean;
|
|
1675
1669
|
displayName: string;
|
|
@@ -1739,15 +1733,15 @@ declare const ToolkitAuthFieldsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
1739
1733
|
} & {
|
|
1740
1734
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
1741
1735
|
}, "strip", z.ZodTypeAny, {
|
|
1742
|
-
name: string;
|
|
1743
1736
|
type: string;
|
|
1737
|
+
name: string;
|
|
1744
1738
|
description: string;
|
|
1745
1739
|
displayName: string;
|
|
1746
1740
|
required?: boolean | undefined;
|
|
1747
1741
|
default?: string | null | undefined;
|
|
1748
1742
|
}, {
|
|
1749
|
-
name: string;
|
|
1750
1743
|
type: string;
|
|
1744
|
+
name: string;
|
|
1751
1745
|
description: string;
|
|
1752
1746
|
displayName: string;
|
|
1753
1747
|
required?: boolean | undefined;
|
|
@@ -1994,13 +1988,13 @@ declare const CreateAuthConfigResponseSchema: z.ZodObject<{
|
|
|
1994
1988
|
toolkit: z.ZodString;
|
|
1995
1989
|
}, "strip", z.ZodTypeAny, {
|
|
1996
1990
|
toolkit: string;
|
|
1997
|
-
authScheme: string;
|
|
1998
1991
|
id: string;
|
|
1992
|
+
authScheme: string;
|
|
1999
1993
|
isComposioManaged: boolean;
|
|
2000
1994
|
}, {
|
|
2001
1995
|
toolkit: string;
|
|
2002
|
-
authScheme: string;
|
|
2003
1996
|
id: string;
|
|
1997
|
+
authScheme: string;
|
|
2004
1998
|
isComposioManaged: boolean;
|
|
2005
1999
|
}>;
|
|
2006
2000
|
type CreateAuthConfigResponse = z.infer<typeof CreateAuthConfigResponseSchema>;
|
|
@@ -2019,7 +2013,6 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2019
2013
|
}>;
|
|
2020
2014
|
noOfConnections: z.ZodNumber;
|
|
2021
2015
|
status: z.ZodEnum<["ENABLED", "DISABLED"]>;
|
|
2022
|
-
uuid: z.ZodString;
|
|
2023
2016
|
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
|
|
2024
2017
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2025
2018
|
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -2043,50 +2036,48 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
2043
2036
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2044
2037
|
}>>;
|
|
2045
2038
|
}, "strip", z.ZodTypeAny, {
|
|
2046
|
-
name: string;
|
|
2047
|
-
status: "ENABLED" | "DISABLED";
|
|
2048
2039
|
toolkit: {
|
|
2049
2040
|
slug: string;
|
|
2050
2041
|
logo: string;
|
|
2051
2042
|
};
|
|
2043
|
+
status: "ENABLED" | "DISABLED";
|
|
2044
|
+
name: string;
|
|
2052
2045
|
id: string;
|
|
2053
2046
|
noOfConnections: number;
|
|
2054
|
-
|
|
2047
|
+
createdAt?: string | undefined;
|
|
2055
2048
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2049
|
+
isComposioManaged?: boolean | undefined;
|
|
2056
2050
|
credentials?: Record<string, unknown> | undefined;
|
|
2057
2051
|
toolAccessConfig?: {
|
|
2058
2052
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2059
2053
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2060
2054
|
} | undefined;
|
|
2061
2055
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2062
|
-
isComposioManaged?: boolean | undefined;
|
|
2063
2056
|
expectedInputFields?: unknown[] | undefined;
|
|
2064
2057
|
restrictToFollowingTools?: string[] | undefined;
|
|
2065
2058
|
createdBy?: string | undefined;
|
|
2066
|
-
createdAt?: string | undefined;
|
|
2067
2059
|
lastUpdatedAt?: string | undefined;
|
|
2068
2060
|
}, {
|
|
2069
|
-
name: string;
|
|
2070
|
-
status: "ENABLED" | "DISABLED";
|
|
2071
2061
|
toolkit: {
|
|
2072
2062
|
slug: string;
|
|
2073
2063
|
logo: string;
|
|
2074
2064
|
};
|
|
2065
|
+
status: "ENABLED" | "DISABLED";
|
|
2066
|
+
name: string;
|
|
2075
2067
|
id: string;
|
|
2076
2068
|
noOfConnections: number;
|
|
2077
|
-
|
|
2069
|
+
createdAt?: string | undefined;
|
|
2078
2070
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2071
|
+
isComposioManaged?: boolean | undefined;
|
|
2079
2072
|
credentials?: Record<string, unknown> | undefined;
|
|
2080
2073
|
toolAccessConfig?: {
|
|
2081
2074
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2082
2075
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2083
2076
|
} | undefined;
|
|
2084
2077
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2085
|
-
isComposioManaged?: boolean | undefined;
|
|
2086
2078
|
expectedInputFields?: unknown[] | undefined;
|
|
2087
2079
|
restrictToFollowingTools?: string[] | undefined;
|
|
2088
2080
|
createdBy?: string | undefined;
|
|
2089
|
-
createdAt?: string | undefined;
|
|
2090
2081
|
lastUpdatedAt?: string | undefined;
|
|
2091
2082
|
}>;
|
|
2092
2083
|
type AuthConfigRetrieveResponse = z.infer<typeof AuthConfigRetrieveResponseSchema>;
|
|
@@ -2094,17 +2085,23 @@ declare const AuthConfigListParamsSchema: z.ZodObject<{
|
|
|
2094
2085
|
cursor: z.ZodOptional<z.ZodString>;
|
|
2095
2086
|
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
2096
2087
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2088
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2089
|
+
showDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
2097
2090
|
toolkit: z.ZodOptional<z.ZodString>;
|
|
2098
2091
|
}, "strip", z.ZodTypeAny, {
|
|
2099
2092
|
toolkit?: string | undefined;
|
|
2093
|
+
cursor?: string | undefined;
|
|
2100
2094
|
limit?: number | undefined;
|
|
2095
|
+
search?: string | undefined;
|
|
2101
2096
|
isComposioManaged?: boolean | undefined;
|
|
2102
|
-
|
|
2097
|
+
showDisabled?: boolean | undefined;
|
|
2103
2098
|
}, {
|
|
2104
2099
|
toolkit?: string | undefined;
|
|
2100
|
+
cursor?: string | undefined;
|
|
2105
2101
|
limit?: number | undefined;
|
|
2102
|
+
search?: string | undefined;
|
|
2106
2103
|
isComposioManaged?: boolean | undefined;
|
|
2107
|
-
|
|
2104
|
+
showDisabled?: boolean | undefined;
|
|
2108
2105
|
}>;
|
|
2109
2106
|
type AuthConfigListParams = z.infer<typeof AuthConfigListParamsSchema>;
|
|
2110
2107
|
declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
@@ -2123,7 +2120,6 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2123
2120
|
}>;
|
|
2124
2121
|
noOfConnections: z.ZodNumber;
|
|
2125
2122
|
status: z.ZodEnum<["ENABLED", "DISABLED"]>;
|
|
2126
|
-
uuid: z.ZodString;
|
|
2127
2123
|
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "CALCOM_AUTH", "SERVICE_ACCOUNT", "SAML", "DCR_OAUTH", "S2S_OAUTH2"]>>;
|
|
2128
2124
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2129
2125
|
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -2147,104 +2143,100 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
2147
2143
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2148
2144
|
}>>;
|
|
2149
2145
|
}, "strip", z.ZodTypeAny, {
|
|
2150
|
-
name: string;
|
|
2151
|
-
status: "ENABLED" | "DISABLED";
|
|
2152
2146
|
toolkit: {
|
|
2153
2147
|
slug: string;
|
|
2154
2148
|
logo: string;
|
|
2155
2149
|
};
|
|
2150
|
+
status: "ENABLED" | "DISABLED";
|
|
2151
|
+
name: string;
|
|
2156
2152
|
id: string;
|
|
2157
2153
|
noOfConnections: number;
|
|
2158
|
-
|
|
2154
|
+
createdAt?: string | undefined;
|
|
2159
2155
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2156
|
+
isComposioManaged?: boolean | undefined;
|
|
2160
2157
|
credentials?: Record<string, unknown> | undefined;
|
|
2161
2158
|
toolAccessConfig?: {
|
|
2162
2159
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2163
2160
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2164
2161
|
} | undefined;
|
|
2165
2162
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2166
|
-
isComposioManaged?: boolean | undefined;
|
|
2167
2163
|
expectedInputFields?: unknown[] | undefined;
|
|
2168
2164
|
restrictToFollowingTools?: string[] | undefined;
|
|
2169
2165
|
createdBy?: string | undefined;
|
|
2170
|
-
createdAt?: string | undefined;
|
|
2171
2166
|
lastUpdatedAt?: string | undefined;
|
|
2172
2167
|
}, {
|
|
2173
|
-
name: string;
|
|
2174
|
-
status: "ENABLED" | "DISABLED";
|
|
2175
2168
|
toolkit: {
|
|
2176
2169
|
slug: string;
|
|
2177
2170
|
logo: string;
|
|
2178
2171
|
};
|
|
2172
|
+
status: "ENABLED" | "DISABLED";
|
|
2173
|
+
name: string;
|
|
2179
2174
|
id: string;
|
|
2180
2175
|
noOfConnections: number;
|
|
2181
|
-
|
|
2176
|
+
createdAt?: string | undefined;
|
|
2182
2177
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2178
|
+
isComposioManaged?: boolean | undefined;
|
|
2183
2179
|
credentials?: Record<string, unknown> | undefined;
|
|
2184
2180
|
toolAccessConfig?: {
|
|
2185
2181
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2186
2182
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2187
2183
|
} | undefined;
|
|
2188
2184
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2189
|
-
isComposioManaged?: boolean | undefined;
|
|
2190
2185
|
expectedInputFields?: unknown[] | undefined;
|
|
2191
2186
|
restrictToFollowingTools?: string[] | undefined;
|
|
2192
2187
|
createdBy?: string | undefined;
|
|
2193
|
-
createdAt?: string | undefined;
|
|
2194
2188
|
lastUpdatedAt?: string | undefined;
|
|
2195
2189
|
}>, "many">;
|
|
2196
2190
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2197
2191
|
totalPages: z.ZodNumber;
|
|
2198
2192
|
}, "strip", z.ZodTypeAny, {
|
|
2199
2193
|
items: {
|
|
2200
|
-
name: string;
|
|
2201
|
-
status: "ENABLED" | "DISABLED";
|
|
2202
2194
|
toolkit: {
|
|
2203
2195
|
slug: string;
|
|
2204
2196
|
logo: string;
|
|
2205
2197
|
};
|
|
2198
|
+
status: "ENABLED" | "DISABLED";
|
|
2199
|
+
name: string;
|
|
2206
2200
|
id: string;
|
|
2207
2201
|
noOfConnections: number;
|
|
2208
|
-
|
|
2202
|
+
createdAt?: string | undefined;
|
|
2209
2203
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2204
|
+
isComposioManaged?: boolean | undefined;
|
|
2210
2205
|
credentials?: Record<string, unknown> | undefined;
|
|
2211
2206
|
toolAccessConfig?: {
|
|
2212
2207
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2213
2208
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2214
2209
|
} | undefined;
|
|
2215
2210
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2216
|
-
isComposioManaged?: boolean | undefined;
|
|
2217
2211
|
expectedInputFields?: unknown[] | undefined;
|
|
2218
2212
|
restrictToFollowingTools?: string[] | undefined;
|
|
2219
2213
|
createdBy?: string | undefined;
|
|
2220
|
-
createdAt?: string | undefined;
|
|
2221
2214
|
lastUpdatedAt?: string | undefined;
|
|
2222
2215
|
}[];
|
|
2223
2216
|
nextCursor: string | null;
|
|
2224
2217
|
totalPages: number;
|
|
2225
2218
|
}, {
|
|
2226
2219
|
items: {
|
|
2227
|
-
name: string;
|
|
2228
|
-
status: "ENABLED" | "DISABLED";
|
|
2229
2220
|
toolkit: {
|
|
2230
2221
|
slug: string;
|
|
2231
2222
|
logo: string;
|
|
2232
2223
|
};
|
|
2224
|
+
status: "ENABLED" | "DISABLED";
|
|
2225
|
+
name: string;
|
|
2233
2226
|
id: string;
|
|
2234
2227
|
noOfConnections: number;
|
|
2235
|
-
|
|
2228
|
+
createdAt?: string | undefined;
|
|
2236
2229
|
authScheme?: "OAUTH1" | "OAUTH2" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BILLCOM_AUTH" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "CALCOM_AUTH" | "SERVICE_ACCOUNT" | "SAML" | "DCR_OAUTH" | "S2S_OAUTH2" | undefined;
|
|
2230
|
+
isComposioManaged?: boolean | undefined;
|
|
2237
2231
|
credentials?: Record<string, unknown> | undefined;
|
|
2238
2232
|
toolAccessConfig?: {
|
|
2239
2233
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
2240
2234
|
toolsAvailableForExecution?: string[] | undefined;
|
|
2241
2235
|
} | undefined;
|
|
2242
2236
|
isEnabledForToolRouter?: boolean | undefined;
|
|
2243
|
-
isComposioManaged?: boolean | undefined;
|
|
2244
2237
|
expectedInputFields?: unknown[] | undefined;
|
|
2245
2238
|
restrictToFollowingTools?: string[] | undefined;
|
|
2246
2239
|
createdBy?: string | undefined;
|
|
2247
|
-
createdAt?: string | undefined;
|
|
2248
2240
|
lastUpdatedAt?: string | undefined;
|
|
2249
2241
|
}[];
|
|
2250
2242
|
nextCursor: string | null;
|
|
@@ -2465,7 +2457,7 @@ declare class Toolkits {
|
|
|
2465
2457
|
*
|
|
2466
2458
|
* @private
|
|
2467
2459
|
*/
|
|
2468
|
-
protected getToolkitBySlug(slug: string): Promise<ToolkitRetrieveResponse>;
|
|
2460
|
+
protected getToolkitBySlug(slug: string, requestOptions?: ComposioRequestOptions): Promise<ToolkitRetrieveResponse>;
|
|
2469
2461
|
/**
|
|
2470
2462
|
* Retrieves a specific toolkit by its slug identifier.
|
|
2471
2463
|
*
|
|
@@ -2481,7 +2473,7 @@ declare class Toolkits {
|
|
|
2481
2473
|
* console.log(githubToolkit.authConfigDetails); // Authentication configuration details
|
|
2482
2474
|
* ```
|
|
2483
2475
|
*/
|
|
2484
|
-
get(slug: string): Promise<ToolkitRetrieveResponse>;
|
|
2476
|
+
get(slug: string, requestOptions?: ComposioRequestOptions): Promise<ToolkitRetrieveResponse>;
|
|
2485
2477
|
/**
|
|
2486
2478
|
* Retrieves a list of toolkits based on the provided query parameters.
|
|
2487
2479
|
*
|
|
@@ -2504,7 +2496,7 @@ declare class Toolkits {
|
|
|
2504
2496
|
* });
|
|
2505
2497
|
* ```
|
|
2506
2498
|
*/
|
|
2507
|
-
get(query?: ToolkitListParams): Promise<ToolKitListResponse>;
|
|
2499
|
+
get(query?: ToolkitListParams, requestOptions?: ComposioRequestOptions): Promise<ToolKitListResponse>;
|
|
2508
2500
|
private getAuthConfigFields;
|
|
2509
2501
|
/**
|
|
2510
2502
|
* Retrieves the fields required for creating an auth config for a toolkit.
|
|
@@ -2545,7 +2537,7 @@ declare class Toolkits {
|
|
|
2545
2537
|
* console.log(categories.items); // Array of category objects
|
|
2546
2538
|
* ```
|
|
2547
2539
|
*/
|
|
2548
|
-
listCategories(): Promise<ToolkitRetrieveCategoriesResponse>;
|
|
2540
|
+
listCategories(requestOptions?: ComposioRequestOptions): Promise<ToolkitRetrieveCategoriesResponse>;
|
|
2549
2541
|
/**
|
|
2550
2542
|
* Authorizes a user to use a toolkit.
|
|
2551
2543
|
* This method will create an auth config if one doesn't exist and initiate a connection request.
|
|
@@ -2559,7 +2551,7 @@ declare class Toolkits {
|
|
|
2559
2551
|
* ```
|
|
2560
2552
|
*
|
|
2561
2553
|
*/
|
|
2562
|
-
authorize(userId: string, toolkitSlug: string, authConfigId?: string): Promise<ConnectionRequest>;
|
|
2554
|
+
authorize(userId: string, toolkitSlug: string, authConfigId?: string, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>;
|
|
2563
2555
|
}
|
|
2564
2556
|
//#endregion
|
|
2565
2557
|
//#region src/types/triggers.types.d.ts
|
|
@@ -2578,19 +2570,19 @@ declare const TriggerSubscribeParamSchema: z.ZodObject<{
|
|
|
2578
2570
|
triggerData: z.ZodOptional<z.ZodString>;
|
|
2579
2571
|
userId: z.ZodOptional<z.ZodString>;
|
|
2580
2572
|
}, "strip", z.ZodTypeAny, {
|
|
2573
|
+
authConfigId?: string | undefined;
|
|
2574
|
+
userId?: string | undefined;
|
|
2581
2575
|
toolkits?: string[] | undefined;
|
|
2582
2576
|
connectedAccountId?: string | undefined;
|
|
2583
|
-
userId?: string | undefined;
|
|
2584
2577
|
triggerId?: string | undefined;
|
|
2585
|
-
authConfigId?: string | undefined;
|
|
2586
2578
|
triggerSlug?: string[] | undefined;
|
|
2587
2579
|
triggerData?: string | undefined;
|
|
2588
2580
|
}, {
|
|
2581
|
+
authConfigId?: string | undefined;
|
|
2582
|
+
userId?: string | undefined;
|
|
2589
2583
|
toolkits?: string[] | undefined;
|
|
2590
2584
|
connectedAccountId?: string | undefined;
|
|
2591
|
-
userId?: string | undefined;
|
|
2592
2585
|
triggerId?: string | undefined;
|
|
2593
|
-
authConfigId?: string | undefined;
|
|
2594
2586
|
triggerSlug?: string[] | undefined;
|
|
2595
2587
|
triggerData?: string | undefined;
|
|
2596
2588
|
}>;
|
|
@@ -2604,18 +2596,18 @@ declare const TriggerInstanceListActiveParamsSchema: z.ZodObject<{
|
|
|
2604
2596
|
triggerIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2605
2597
|
triggerNames: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2606
2598
|
}, "strip", z.ZodTypeAny, {
|
|
2607
|
-
|
|
2599
|
+
connectedAccountIds?: string[] | null | undefined;
|
|
2608
2600
|
authConfigIds?: string[] | null | undefined;
|
|
2609
2601
|
cursor?: string | undefined;
|
|
2610
|
-
|
|
2602
|
+
limit?: number | undefined;
|
|
2611
2603
|
showDisabled?: boolean | null | undefined;
|
|
2612
2604
|
triggerIds?: string[] | null | undefined;
|
|
2613
2605
|
triggerNames?: string[] | null | undefined;
|
|
2614
2606
|
}, {
|
|
2615
|
-
|
|
2607
|
+
connectedAccountIds?: string[] | null | undefined;
|
|
2616
2608
|
authConfigIds?: string[] | null | undefined;
|
|
2617
2609
|
cursor?: string | undefined;
|
|
2618
|
-
|
|
2610
|
+
limit?: number | undefined;
|
|
2619
2611
|
showDisabled?: boolean | null | undefined;
|
|
2620
2612
|
triggerIds?: string[] | null | undefined;
|
|
2621
2613
|
triggerNames?: string[] | null | undefined;
|
|
@@ -2632,9 +2624,9 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
|
|
|
2632
2624
|
triggerData: z.ZodOptional<z.ZodString>;
|
|
2633
2625
|
uuid: z.ZodOptional<z.ZodString>;
|
|
2634
2626
|
}, "strip", z.ZodTypeAny, {
|
|
2635
|
-
connectedAccountId: string;
|
|
2636
2627
|
id: string;
|
|
2637
2628
|
updatedAt: string;
|
|
2629
|
+
connectedAccountId: string;
|
|
2638
2630
|
disabledAt: string | null;
|
|
2639
2631
|
state: Record<string, unknown>;
|
|
2640
2632
|
triggerConfig: Record<string, unknown>;
|
|
@@ -2642,9 +2634,9 @@ declare const TriggerInstanceListActiveResponseItemSchema: z.ZodObject<{
|
|
|
2642
2634
|
uuid?: string | undefined;
|
|
2643
2635
|
triggerData?: string | undefined;
|
|
2644
2636
|
}, {
|
|
2645
|
-
connectedAccountId: string;
|
|
2646
2637
|
id: string;
|
|
2647
2638
|
updatedAt: string;
|
|
2639
|
+
connectedAccountId: string;
|
|
2648
2640
|
disabledAt: string | null;
|
|
2649
2641
|
state: Record<string, unknown>;
|
|
2650
2642
|
triggerConfig: Record<string, unknown>;
|
|
@@ -2664,9 +2656,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2664
2656
|
triggerData: z.ZodOptional<z.ZodString>;
|
|
2665
2657
|
uuid: z.ZodOptional<z.ZodString>;
|
|
2666
2658
|
}, "strip", z.ZodTypeAny, {
|
|
2667
|
-
connectedAccountId: string;
|
|
2668
2659
|
id: string;
|
|
2669
2660
|
updatedAt: string;
|
|
2661
|
+
connectedAccountId: string;
|
|
2670
2662
|
disabledAt: string | null;
|
|
2671
2663
|
state: Record<string, unknown>;
|
|
2672
2664
|
triggerConfig: Record<string, unknown>;
|
|
@@ -2674,9 +2666,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2674
2666
|
uuid?: string | undefined;
|
|
2675
2667
|
triggerData?: string | undefined;
|
|
2676
2668
|
}, {
|
|
2677
|
-
connectedAccountId: string;
|
|
2678
2669
|
id: string;
|
|
2679
2670
|
updatedAt: string;
|
|
2671
|
+
connectedAccountId: string;
|
|
2680
2672
|
disabledAt: string | null;
|
|
2681
2673
|
state: Record<string, unknown>;
|
|
2682
2674
|
triggerConfig: Record<string, unknown>;
|
|
@@ -2688,9 +2680,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2688
2680
|
totalPages: z.ZodNumber;
|
|
2689
2681
|
}, "strip", z.ZodTypeAny, {
|
|
2690
2682
|
items: {
|
|
2691
|
-
connectedAccountId: string;
|
|
2692
2683
|
id: string;
|
|
2693
2684
|
updatedAt: string;
|
|
2685
|
+
connectedAccountId: string;
|
|
2694
2686
|
disabledAt: string | null;
|
|
2695
2687
|
state: Record<string, unknown>;
|
|
2696
2688
|
triggerConfig: Record<string, unknown>;
|
|
@@ -2702,9 +2694,9 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
|
|
|
2702
2694
|
totalPages: number;
|
|
2703
2695
|
}, {
|
|
2704
2696
|
items: {
|
|
2705
|
-
connectedAccountId: string;
|
|
2706
2697
|
id: string;
|
|
2707
2698
|
updatedAt: string;
|
|
2699
|
+
connectedAccountId: string;
|
|
2708
2700
|
disabledAt: string | null;
|
|
2709
2701
|
state: Record<string, unknown>;
|
|
2710
2702
|
triggerConfig: Record<string, unknown>;
|
|
@@ -2739,9 +2731,9 @@ type TriggerInstanceUpsertResponse = z.infer<typeof TriggerInstanceUpsertRespons
|
|
|
2739
2731
|
declare const TriggerInstanceManageUpdateParamsSchema: z.ZodObject<{
|
|
2740
2732
|
status: z.ZodEnum<["enable", "disable"]>;
|
|
2741
2733
|
}, "strip", z.ZodTypeAny, {
|
|
2742
|
-
status: "
|
|
2734
|
+
status: "disable" | "enable";
|
|
2743
2735
|
}, {
|
|
2744
|
-
status: "
|
|
2736
|
+
status: "disable" | "enable";
|
|
2745
2737
|
}>;
|
|
2746
2738
|
type TriggerInstanceManageUpdateParams = z.infer<typeof TriggerInstanceManageUpdateParamsSchema>;
|
|
2747
2739
|
declare const TriggerInstanceManageUpdateResponseSchema: z.ZodObject<{
|
|
@@ -2783,45 +2775,45 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
2783
2775
|
userId: z.ZodString;
|
|
2784
2776
|
status: z.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
2785
2777
|
}, "strip", z.ZodTypeAny, {
|
|
2778
|
+
authConfigId: string;
|
|
2786
2779
|
status: "ACTIVE" | "INACTIVE";
|
|
2787
2780
|
userId: string;
|
|
2788
|
-
id: string;
|
|
2789
2781
|
uuid: string;
|
|
2790
|
-
|
|
2782
|
+
id: string;
|
|
2791
2783
|
authConfigUUID: string;
|
|
2792
2784
|
}, {
|
|
2785
|
+
authConfigId: string;
|
|
2793
2786
|
status: "ACTIVE" | "INACTIVE";
|
|
2794
2787
|
userId: string;
|
|
2795
|
-
id: string;
|
|
2796
2788
|
uuid: string;
|
|
2797
|
-
|
|
2789
|
+
id: string;
|
|
2798
2790
|
authConfigUUID: string;
|
|
2799
2791
|
}>;
|
|
2800
2792
|
}, "strip", z.ZodTypeAny, {
|
|
2801
|
-
toolkitSlug: string;
|
|
2802
|
-
id: string;
|
|
2803
2793
|
uuid: string;
|
|
2794
|
+
id: string;
|
|
2795
|
+
toolkitSlug: string;
|
|
2804
2796
|
connectedAccount: {
|
|
2797
|
+
authConfigId: string;
|
|
2805
2798
|
status: "ACTIVE" | "INACTIVE";
|
|
2806
2799
|
userId: string;
|
|
2807
|
-
id: string;
|
|
2808
2800
|
uuid: string;
|
|
2809
|
-
|
|
2801
|
+
id: string;
|
|
2810
2802
|
authConfigUUID: string;
|
|
2811
2803
|
};
|
|
2812
2804
|
triggerSlug: string;
|
|
2813
2805
|
triggerConfig: Record<string, unknown>;
|
|
2814
2806
|
triggerData?: string | undefined;
|
|
2815
2807
|
}, {
|
|
2816
|
-
toolkitSlug: string;
|
|
2817
|
-
id: string;
|
|
2818
2808
|
uuid: string;
|
|
2809
|
+
id: string;
|
|
2810
|
+
toolkitSlug: string;
|
|
2819
2811
|
connectedAccount: {
|
|
2812
|
+
authConfigId: string;
|
|
2820
2813
|
status: "ACTIVE" | "INACTIVE";
|
|
2821
2814
|
userId: string;
|
|
2822
|
-
id: string;
|
|
2823
2815
|
uuid: string;
|
|
2824
|
-
|
|
2816
|
+
id: string;
|
|
2825
2817
|
authConfigUUID: string;
|
|
2826
2818
|
};
|
|
2827
2819
|
triggerSlug: string;
|
|
@@ -2829,21 +2821,21 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
2829
2821
|
triggerData?: string | undefined;
|
|
2830
2822
|
}>;
|
|
2831
2823
|
}, "strip", z.ZodTypeAny, {
|
|
2832
|
-
toolkitSlug: string;
|
|
2833
2824
|
userId: string;
|
|
2834
|
-
id: string;
|
|
2835
2825
|
uuid: string;
|
|
2826
|
+
id: string;
|
|
2827
|
+
toolkitSlug: string;
|
|
2836
2828
|
triggerSlug: string;
|
|
2837
2829
|
metadata: {
|
|
2838
|
-
toolkitSlug: string;
|
|
2839
|
-
id: string;
|
|
2840
2830
|
uuid: string;
|
|
2831
|
+
id: string;
|
|
2832
|
+
toolkitSlug: string;
|
|
2841
2833
|
connectedAccount: {
|
|
2834
|
+
authConfigId: string;
|
|
2842
2835
|
status: "ACTIVE" | "INACTIVE";
|
|
2843
2836
|
userId: string;
|
|
2844
|
-
id: string;
|
|
2845
2837
|
uuid: string;
|
|
2846
|
-
|
|
2838
|
+
id: string;
|
|
2847
2839
|
authConfigUUID: string;
|
|
2848
2840
|
};
|
|
2849
2841
|
triggerSlug: string;
|
|
@@ -2853,21 +2845,21 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
2853
2845
|
payload?: Record<string, unknown> | undefined;
|
|
2854
2846
|
originalPayload?: Record<string, unknown> | undefined;
|
|
2855
2847
|
}, {
|
|
2856
|
-
toolkitSlug: string;
|
|
2857
2848
|
userId: string;
|
|
2858
|
-
id: string;
|
|
2859
2849
|
uuid: string;
|
|
2850
|
+
id: string;
|
|
2851
|
+
toolkitSlug: string;
|
|
2860
2852
|
triggerSlug: string;
|
|
2861
2853
|
metadata: {
|
|
2862
|
-
toolkitSlug: string;
|
|
2863
|
-
id: string;
|
|
2864
2854
|
uuid: string;
|
|
2855
|
+
id: string;
|
|
2856
|
+
toolkitSlug: string;
|
|
2865
2857
|
connectedAccount: {
|
|
2858
|
+
authConfigId: string;
|
|
2866
2859
|
status: "ACTIVE" | "INACTIVE";
|
|
2867
2860
|
userId: string;
|
|
2868
|
-
id: string;
|
|
2869
2861
|
uuid: string;
|
|
2870
|
-
|
|
2862
|
+
id: string;
|
|
2871
2863
|
authConfigUUID: string;
|
|
2872
2864
|
};
|
|
2873
2865
|
triggerSlug: string;
|
|
@@ -2905,12 +2897,12 @@ declare const TriggersTypeListParamsSchema: z.ZodObject<{
|
|
|
2905
2897
|
toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
2906
2898
|
}, "strip", z.ZodTypeAny, {
|
|
2907
2899
|
toolkits?: string[] | null | undefined;
|
|
2908
|
-
limit?: number | null | undefined;
|
|
2909
2900
|
cursor?: string | undefined;
|
|
2901
|
+
limit?: number | null | undefined;
|
|
2910
2902
|
}, {
|
|
2911
2903
|
toolkits?: string[] | null | undefined;
|
|
2912
|
-
limit?: number | null | undefined;
|
|
2913
2904
|
cursor?: string | undefined;
|
|
2905
|
+
limit?: number | null | undefined;
|
|
2914
2906
|
}>;
|
|
2915
2907
|
type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
|
|
2916
2908
|
declare const TriggerTypeSchema: z.ZodObject<{
|
|
@@ -2923,41 +2915,41 @@ declare const TriggerTypeSchema: z.ZodObject<{
|
|
|
2923
2915
|
slug: z.ZodString;
|
|
2924
2916
|
name: z.ZodString;
|
|
2925
2917
|
}, "strip", z.ZodTypeAny, {
|
|
2926
|
-
slug: string;
|
|
2927
2918
|
name: string;
|
|
2919
|
+
slug: string;
|
|
2928
2920
|
logo: string;
|
|
2929
2921
|
}, {
|
|
2930
|
-
slug: string;
|
|
2931
2922
|
name: string;
|
|
2923
|
+
slug: string;
|
|
2932
2924
|
logo: string;
|
|
2933
2925
|
}>;
|
|
2934
2926
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2935
2927
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2936
2928
|
version: z.ZodOptional<z.ZodString>;
|
|
2937
2929
|
}, "strip", z.ZodTypeAny, {
|
|
2938
|
-
slug: string;
|
|
2939
|
-
name: string;
|
|
2940
|
-
description: string;
|
|
2941
2930
|
toolkit: {
|
|
2942
|
-
slug: string;
|
|
2943
2931
|
name: string;
|
|
2932
|
+
slug: string;
|
|
2944
2933
|
logo: string;
|
|
2945
2934
|
};
|
|
2946
|
-
|
|
2935
|
+
name: string;
|
|
2947
2936
|
config: Record<string, unknown>;
|
|
2937
|
+
slug: string;
|
|
2938
|
+
description: string;
|
|
2939
|
+
payload: Record<string, unknown>;
|
|
2948
2940
|
version?: string | undefined;
|
|
2949
2941
|
instructions?: string | undefined;
|
|
2950
2942
|
}, {
|
|
2951
|
-
slug: string;
|
|
2952
|
-
name: string;
|
|
2953
|
-
description: string;
|
|
2954
2943
|
toolkit: {
|
|
2955
|
-
slug: string;
|
|
2956
2944
|
name: string;
|
|
2945
|
+
slug: string;
|
|
2957
2946
|
logo: string;
|
|
2958
2947
|
};
|
|
2959
|
-
|
|
2948
|
+
name: string;
|
|
2960
2949
|
config: Record<string, unknown>;
|
|
2950
|
+
slug: string;
|
|
2951
|
+
description: string;
|
|
2952
|
+
payload: Record<string, unknown>;
|
|
2961
2953
|
version?: string | undefined;
|
|
2962
2954
|
instructions?: string | undefined;
|
|
2963
2955
|
}>;
|
|
@@ -2973,41 +2965,41 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
|
2973
2965
|
slug: z.ZodString;
|
|
2974
2966
|
name: z.ZodString;
|
|
2975
2967
|
}, "strip", z.ZodTypeAny, {
|
|
2976
|
-
slug: string;
|
|
2977
2968
|
name: string;
|
|
2969
|
+
slug: string;
|
|
2978
2970
|
logo: string;
|
|
2979
2971
|
}, {
|
|
2980
|
-
slug: string;
|
|
2981
2972
|
name: string;
|
|
2973
|
+
slug: string;
|
|
2982
2974
|
logo: string;
|
|
2983
2975
|
}>;
|
|
2984
2976
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2985
2977
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2986
2978
|
version: z.ZodOptional<z.ZodString>;
|
|
2987
2979
|
}, "strip", z.ZodTypeAny, {
|
|
2988
|
-
slug: string;
|
|
2989
|
-
name: string;
|
|
2990
|
-
description: string;
|
|
2991
2980
|
toolkit: {
|
|
2992
|
-
slug: string;
|
|
2993
2981
|
name: string;
|
|
2982
|
+
slug: string;
|
|
2994
2983
|
logo: string;
|
|
2995
2984
|
};
|
|
2996
|
-
|
|
2985
|
+
name: string;
|
|
2997
2986
|
config: Record<string, unknown>;
|
|
2987
|
+
slug: string;
|
|
2988
|
+
description: string;
|
|
2989
|
+
payload: Record<string, unknown>;
|
|
2998
2990
|
version?: string | undefined;
|
|
2999
2991
|
instructions?: string | undefined;
|
|
3000
2992
|
}, {
|
|
3001
|
-
slug: string;
|
|
3002
|
-
name: string;
|
|
3003
|
-
description: string;
|
|
3004
2993
|
toolkit: {
|
|
3005
|
-
slug: string;
|
|
3006
2994
|
name: string;
|
|
2995
|
+
slug: string;
|
|
3007
2996
|
logo: string;
|
|
3008
2997
|
};
|
|
3009
|
-
|
|
2998
|
+
name: string;
|
|
3010
2999
|
config: Record<string, unknown>;
|
|
3000
|
+
slug: string;
|
|
3001
|
+
description: string;
|
|
3002
|
+
payload: Record<string, unknown>;
|
|
3011
3003
|
version?: string | undefined;
|
|
3012
3004
|
instructions?: string | undefined;
|
|
3013
3005
|
}>, "many">;
|
|
@@ -3015,16 +3007,16 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
|
3015
3007
|
totalPages: z.ZodNumber;
|
|
3016
3008
|
}, "strip", z.ZodTypeAny, {
|
|
3017
3009
|
items: {
|
|
3018
|
-
slug: string;
|
|
3019
|
-
name: string;
|
|
3020
|
-
description: string;
|
|
3021
3010
|
toolkit: {
|
|
3022
|
-
slug: string;
|
|
3023
3011
|
name: string;
|
|
3012
|
+
slug: string;
|
|
3024
3013
|
logo: string;
|
|
3025
3014
|
};
|
|
3026
|
-
|
|
3015
|
+
name: string;
|
|
3027
3016
|
config: Record<string, unknown>;
|
|
3017
|
+
slug: string;
|
|
3018
|
+
description: string;
|
|
3019
|
+
payload: Record<string, unknown>;
|
|
3028
3020
|
version?: string | undefined;
|
|
3029
3021
|
instructions?: string | undefined;
|
|
3030
3022
|
}[];
|
|
@@ -3032,16 +3024,16 @@ declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
|
3032
3024
|
nextCursor?: string | null | undefined;
|
|
3033
3025
|
}, {
|
|
3034
3026
|
items: {
|
|
3035
|
-
slug: string;
|
|
3036
|
-
name: string;
|
|
3037
|
-
description: string;
|
|
3038
3027
|
toolkit: {
|
|
3039
|
-
slug: string;
|
|
3040
3028
|
name: string;
|
|
3029
|
+
slug: string;
|
|
3041
3030
|
logo: string;
|
|
3042
3031
|
};
|
|
3043
|
-
|
|
3032
|
+
name: string;
|
|
3044
3033
|
config: Record<string, unknown>;
|
|
3034
|
+
slug: string;
|
|
3035
|
+
description: string;
|
|
3036
|
+
payload: Record<string, unknown>;
|
|
3045
3037
|
version?: string | undefined;
|
|
3046
3038
|
instructions?: string | undefined;
|
|
3047
3039
|
}[];
|
|
@@ -3154,14 +3146,14 @@ declare const WebhookPayloadV3Schema: z.ZodObject<{
|
|
|
3154
3146
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3155
3147
|
}, "strip", z.ZodTypeAny, {
|
|
3156
3148
|
type: string;
|
|
3157
|
-
data: Record<string, unknown>;
|
|
3158
3149
|
id: string;
|
|
3150
|
+
data: Record<string, unknown>;
|
|
3159
3151
|
metadata: Record<string, unknown>;
|
|
3160
3152
|
timestamp: string;
|
|
3161
3153
|
}, {
|
|
3162
3154
|
type: string;
|
|
3163
|
-
data: Record<string, unknown>;
|
|
3164
3155
|
id: string;
|
|
3156
|
+
data: Record<string, unknown>;
|
|
3165
3157
|
metadata: Record<string, unknown>;
|
|
3166
3158
|
timestamp: string;
|
|
3167
3159
|
}>;
|
|
@@ -3196,8 +3188,8 @@ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
|
|
|
3196
3188
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3197
3189
|
}, "strip", z.ZodTypeAny, {
|
|
3198
3190
|
type: string;
|
|
3199
|
-
data: Record<string, unknown>;
|
|
3200
3191
|
id: string;
|
|
3192
|
+
data: Record<string, unknown>;
|
|
3201
3193
|
metadata: {
|
|
3202
3194
|
trigger_id: string;
|
|
3203
3195
|
log_id: string;
|
|
@@ -3211,8 +3203,8 @@ declare const WebhookTriggerPayloadV3Schema: z.ZodObject<{
|
|
|
3211
3203
|
timestamp: string;
|
|
3212
3204
|
}, {
|
|
3213
3205
|
type: string;
|
|
3214
|
-
data: Record<string, unknown>;
|
|
3215
3206
|
id: string;
|
|
3207
|
+
data: Record<string, unknown>;
|
|
3216
3208
|
metadata: {
|
|
3217
3209
|
trigger_id: string;
|
|
3218
3210
|
log_id: string;
|
|
@@ -3235,14 +3227,14 @@ declare const WebhookPayloadSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
3235
3227
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3236
3228
|
}, "strip", z.ZodTypeAny, {
|
|
3237
3229
|
type: string;
|
|
3238
|
-
data: Record<string, unknown>;
|
|
3239
3230
|
id: string;
|
|
3231
|
+
data: Record<string, unknown>;
|
|
3240
3232
|
metadata: Record<string, unknown>;
|
|
3241
3233
|
timestamp: string;
|
|
3242
3234
|
}, {
|
|
3243
3235
|
type: string;
|
|
3244
|
-
data: Record<string, unknown>;
|
|
3245
3236
|
id: string;
|
|
3237
|
+
data: Record<string, unknown>;
|
|
3246
3238
|
metadata: Record<string, unknown>;
|
|
3247
3239
|
timestamp: string;
|
|
3248
3240
|
}>, z.ZodObject<{
|
|
@@ -3329,10 +3321,8 @@ declare const VerifyWebhookParamsSchema: z.ZodObject<{
|
|
|
3329
3321
|
* The webhook message ID from the 'webhook-id' header.
|
|
3330
3322
|
* Format: 'msg_xxx'
|
|
3331
3323
|
*/
|
|
3332
|
-
id: z.ZodString;
|
|
3333
|
-
/** The
|
|
3334
|
-
payload: z.ZodString;
|
|
3335
|
-
/** The webhook secret used to sign the payload (from Composio dashboard) */
|
|
3324
|
+
id: z.ZodString; /** The raw webhook payload as a string (request body) */
|
|
3325
|
+
payload: z.ZodString; /** The webhook secret used to sign the payload (from Composio dashboard) */
|
|
3336
3326
|
secret: z.ZodString;
|
|
3337
3327
|
/**
|
|
3338
3328
|
* The signature from the 'webhook-signature' header.
|
|
@@ -3372,11 +3362,8 @@ type VerifyWebhookParams = z.input<typeof VerifyWebhookParamsSchema>;
|
|
|
3372
3362
|
* Contains the parsed payload along with version information.
|
|
3373
3363
|
*/
|
|
3374
3364
|
type VerifyWebhookResult = {
|
|
3375
|
-
/** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */
|
|
3376
|
-
|
|
3377
|
-
/** The parsed and normalized webhook payload */
|
|
3378
|
-
payload: IncomingTriggerPayload;
|
|
3379
|
-
/** The raw parsed payload before normalization */
|
|
3365
|
+
/** The webhook version (V1, V2, or V3), from 'x-composio-webhook-version' */version: WebhookVersion; /** The parsed and normalized webhook payload */
|
|
3366
|
+
payload: IncomingTriggerPayload; /** The raw parsed payload before normalization */
|
|
3380
3367
|
rawPayload: WebhookPayload;
|
|
3381
3368
|
};
|
|
3382
3369
|
//#endregion
|
|
@@ -3408,7 +3395,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3408
3395
|
* });
|
|
3409
3396
|
* ```
|
|
3410
3397
|
*/
|
|
3411
|
-
listActive(query?: TriggerInstanceListActiveParams): Promise<TriggerInstanceListActiveResponse>;
|
|
3398
|
+
listActive(query?: TriggerInstanceListActiveParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceListActiveResponse>;
|
|
3412
3399
|
/**
|
|
3413
3400
|
* Create a new trigger instance for a user
|
|
3414
3401
|
* If the connected account id is not provided, the first connected account for the user and toolkit will be used
|
|
@@ -3418,7 +3405,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3418
3405
|
* @param {TriggerInstanceUpsertParams} body - The parameters to create the trigger instance
|
|
3419
3406
|
* @returns {Promise<TriggerInstanceUpsertResponse>} The created trigger instance
|
|
3420
3407
|
*/
|
|
3421
|
-
create(userId: string, slug: string, body?: TriggerInstanceUpsertParams): Promise<TriggerInstanceUpsertResponse>;
|
|
3408
|
+
create(userId: string, slug: string, body?: TriggerInstanceUpsertParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceUpsertResponse>;
|
|
3422
3409
|
/**
|
|
3423
3410
|
* Update an existing trigger instance
|
|
3424
3411
|
*
|
|
@@ -3426,28 +3413,28 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3426
3413
|
* @param {TriggerInstanceManageUpdateParams} body - The parameters to update the trigger instance
|
|
3427
3414
|
* @returns {Promise<TriggerInstanceManageUpdateResponse>} The updated trigger instance response
|
|
3428
3415
|
*/
|
|
3429
|
-
update(triggerId: string, body: TriggerInstanceManageUpdateParams): Promise<TriggerInstanceManageUpdateResponse>;
|
|
3416
|
+
update(triggerId: string, body: TriggerInstanceManageUpdateParams, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceManageUpdateResponse>;
|
|
3430
3417
|
/**
|
|
3431
3418
|
* Delete a trigger instance
|
|
3432
3419
|
*
|
|
3433
3420
|
* @param {string} triggerId - The slug of the trigger instance
|
|
3434
3421
|
* @returns
|
|
3435
3422
|
*/
|
|
3436
|
-
delete(triggerId: string): Promise<TriggerInstanceManageDeleteResponse>;
|
|
3423
|
+
delete(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<TriggerInstanceManageDeleteResponse>;
|
|
3437
3424
|
/**
|
|
3438
3425
|
* Disable a trigger instance
|
|
3439
3426
|
*
|
|
3440
3427
|
* @param {string} triggerId - The id of the trigger instance
|
|
3441
3428
|
* @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
|
|
3442
3429
|
*/
|
|
3443
|
-
disable(triggerId: string): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
|
|
3430
|
+
disable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
|
|
3444
3431
|
/**
|
|
3445
3432
|
* Enable a trigger instance
|
|
3446
3433
|
*
|
|
3447
3434
|
* @param {string} triggerId - The id of the trigger instance
|
|
3448
3435
|
* @returns {Promise<TriggerInstanceUpsertResponse>} The updated trigger instance
|
|
3449
3436
|
*/
|
|
3450
|
-
enable(triggerId: string): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
|
|
3437
|
+
enable(triggerId: string, requestOptions?: ComposioRequestOptions): Promise<ComposioClient.TriggerInstances.Manage.ManageUpdateResponse>;
|
|
3451
3438
|
/**
|
|
3452
3439
|
* @TODO Learn about trigger types
|
|
3453
3440
|
*/
|
|
@@ -3458,7 +3445,7 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3458
3445
|
* @param {RequestOptions} options - Request options
|
|
3459
3446
|
* @returns {Promise<TriggersTypeListResponse>} The list of trigger types
|
|
3460
3447
|
*/
|
|
3461
|
-
listTypes(query?: TriggersTypeListParams): Promise<TriggersTypeListResponse>;
|
|
3448
|
+
listTypes(query?: TriggersTypeListParams, requestOptions?: ComposioRequestOptions): Promise<TriggersTypeListResponse>;
|
|
3462
3449
|
/**
|
|
3463
3450
|
* Retrieve a trigger type by its slug for the provided version of the app
|
|
3464
3451
|
* Use the global toolkit versions param when initializing composio to pass a toolkitversion
|
|
@@ -3466,14 +3453,14 @@ declare class Triggers<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
3466
3453
|
* @param {string} slug - The slug of the trigger type
|
|
3467
3454
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
3468
3455
|
*/
|
|
3469
|
-
getType(slug: string): Promise<TriggersTypeRetrieveResponse>;
|
|
3456
|
+
getType(slug: string, requestOptions?: ComposioRequestOptions): Promise<TriggersTypeRetrieveResponse>;
|
|
3470
3457
|
/**
|
|
3471
3458
|
* Fetches the list of all the available trigger enums
|
|
3472
3459
|
*
|
|
3473
3460
|
* This method is used by the CLI where filters are not required.
|
|
3474
3461
|
* @returns
|
|
3475
3462
|
*/
|
|
3476
|
-
listEnum(): Promise<TriggersTypeRetrieveEnumResponse>;
|
|
3463
|
+
listEnum(requestOptions?: ComposioRequestOptions): Promise<TriggersTypeRetrieveEnumResponse>;
|
|
3477
3464
|
/**
|
|
3478
3465
|
* Applies compound filters to the trigger data
|
|
3479
3466
|
* @param data data to apply filters to
|
|
@@ -3640,13 +3627,19 @@ declare class AuthConfigs {
|
|
|
3640
3627
|
* toolkit: 'github'
|
|
3641
3628
|
* });
|
|
3642
3629
|
*
|
|
3630
|
+
* // Search auth configs by name or id
|
|
3631
|
+
* const searchedConfigs = await composio.authConfigs.list({
|
|
3632
|
+
* search: 'github',
|
|
3633
|
+
* showDisabled: true
|
|
3634
|
+
* });
|
|
3635
|
+
*
|
|
3643
3636
|
* // List Composio-managed auth configs
|
|
3644
3637
|
* const managedConfigs = await composio.authConfigs.list({
|
|
3645
3638
|
* isComposioManaged: true
|
|
3646
3639
|
* });
|
|
3647
3640
|
* ```
|
|
3648
3641
|
*/
|
|
3649
|
-
list(query?: AuthConfigListParams): Promise<AuthConfigListResponse>;
|
|
3642
|
+
list(query?: AuthConfigListParams, requestOptions?: ComposioRequestOptions): Promise<AuthConfigListResponse>;
|
|
3650
3643
|
/**
|
|
3651
3644
|
* Create a new auth config
|
|
3652
3645
|
* @param {string} toolkit - Unique identifier of the toolkit
|
|
@@ -3665,7 +3658,7 @@ declare class AuthConfigs {
|
|
|
3665
3658
|
*
|
|
3666
3659
|
* @link https://docs.composio.dev/reference/auth-configs/create-auth-config
|
|
3667
3660
|
*/
|
|
3668
|
-
create(toolkit: string, options?: CreateAuthConfigParams): Promise<CreateAuthConfigResponse>;
|
|
3661
|
+
create(toolkit: string, options?: CreateAuthConfigParams, requestOptions?: ComposioRequestOptions): Promise<CreateAuthConfigResponse>;
|
|
3669
3662
|
/**
|
|
3670
3663
|
* Retrieves a specific authentication configuration by its ID.
|
|
3671
3664
|
*
|
|
@@ -3685,7 +3678,7 @@ declare class AuthConfigs {
|
|
|
3685
3678
|
* console.log(authConfig.toolkit.slug); // e.g., 'github'
|
|
3686
3679
|
* ```
|
|
3687
3680
|
*/
|
|
3688
|
-
get(nanoid: string): Promise<AuthConfigRetrieveResponse>;
|
|
3681
|
+
get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigRetrieveResponse>;
|
|
3689
3682
|
/**
|
|
3690
3683
|
* Updates an existing authentication configuration.
|
|
3691
3684
|
*
|
|
@@ -3716,7 +3709,7 @@ declare class AuthConfigs {
|
|
|
3716
3709
|
* });
|
|
3717
3710
|
* ```
|
|
3718
3711
|
*/
|
|
3719
|
-
update(nanoid: string, data: AuthConfigUpdateParams): Promise<AuthConfigUpdateResponse>;
|
|
3712
|
+
update(nanoid: string, data: AuthConfigUpdateParams, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateResponse>;
|
|
3720
3713
|
/**
|
|
3721
3714
|
* Deletes an authentication configuration.
|
|
3722
3715
|
*
|
|
@@ -3734,7 +3727,7 @@ declare class AuthConfigs {
|
|
|
3734
3727
|
* await composio.authConfigs.delete('auth_abc123');
|
|
3735
3728
|
* ```
|
|
3736
3729
|
*/
|
|
3737
|
-
delete(nanoid: string): Promise<AuthConfigDeleteResponse>;
|
|
3730
|
+
delete(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigDeleteResponse>;
|
|
3738
3731
|
/**
|
|
3739
3732
|
* Updates the status of an authentication configuration.
|
|
3740
3733
|
*
|
|
@@ -3756,7 +3749,7 @@ declare class AuthConfigs {
|
|
|
3756
3749
|
* await composio.authConfigs.updateStatus('ENABLED', 'auth_abc123');
|
|
3757
3750
|
* ```
|
|
3758
3751
|
*/
|
|
3759
|
-
updateStatus(status: 'ENABLED' | 'DISABLED', nanoid: string): Promise<AuthConfigUpdateStatusResponse>;
|
|
3752
|
+
updateStatus(status: 'ENABLED' | 'DISABLED', nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateStatusResponse>;
|
|
3760
3753
|
/**
|
|
3761
3754
|
* Enables an authentication configuration.
|
|
3762
3755
|
*
|
|
@@ -3774,7 +3767,7 @@ declare class AuthConfigs {
|
|
|
3774
3767
|
* await composio.authConfigs.enable('auth_abc123');
|
|
3775
3768
|
* ```
|
|
3776
3769
|
*/
|
|
3777
|
-
enable(nanoid: string): Promise<AuthConfigUpdateStatusResponse>;
|
|
3770
|
+
enable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateStatusResponse>;
|
|
3778
3771
|
/**
|
|
3779
3772
|
* Disables an authentication configuration.
|
|
3780
3773
|
*
|
|
@@ -3792,7 +3785,7 @@ declare class AuthConfigs {
|
|
|
3792
3785
|
* await composio.authConfigs.disable('auth_abc123');
|
|
3793
3786
|
* ```
|
|
3794
3787
|
*/
|
|
3795
|
-
disable(nanoid: string): Promise<AuthConfigUpdateStatusResponse>;
|
|
3788
|
+
disable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<AuthConfigUpdateStatusResponse>;
|
|
3796
3789
|
}
|
|
3797
3790
|
//#endregion
|
|
3798
3791
|
//#region src/models/ConnectedAccounts.d.ts
|
|
@@ -3829,7 +3822,7 @@ declare class ConnectedAccounts {
|
|
|
3829
3822
|
* });
|
|
3830
3823
|
* ```
|
|
3831
3824
|
*/
|
|
3832
|
-
list(query?: ConnectedAccountListParams): Promise<ConnectedAccountListResponse>;
|
|
3825
|
+
list(query?: ConnectedAccountListParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountListResponse>;
|
|
3833
3826
|
/**
|
|
3834
3827
|
* Compound function to create a new connected account.
|
|
3835
3828
|
* This function creates a new connected account and returns a connection request.
|
|
@@ -3897,7 +3890,7 @@ declare class ConnectedAccounts {
|
|
|
3897
3890
|
*
|
|
3898
3891
|
* @link https://docs.composio.dev/reference/connected-accounts/create-connected-account
|
|
3899
3892
|
*/
|
|
3900
|
-
initiate(userId: string, authConfigId: string, options?: CreateConnectedAccountOptions): Promise<ConnectionRequest>;
|
|
3893
|
+
initiate(userId: string, authConfigId: string, options?: CreateConnectedAccountOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>;
|
|
3901
3894
|
/**
|
|
3902
3895
|
* @description Create a Composio Connect Link for a user to connect their account to a given auth config. This method will return an external link which you can use the user to connect their account.
|
|
3903
3896
|
*
|
|
@@ -3933,7 +3926,7 @@ declare class ConnectedAccounts {
|
|
|
3933
3926
|
* const connectedAccount = await composio.connectedAccounts.waitForConnection(connectionRequest.id);
|
|
3934
3927
|
* ```
|
|
3935
3928
|
*/
|
|
3936
|
-
link(userId: string, authConfigId: string, options?: CreateConnectedAccountLinkOptions): Promise<ConnectionRequest>;
|
|
3929
|
+
link(userId: string, authConfigId: string, options?: CreateConnectedAccountLinkOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectionRequest>;
|
|
3937
3930
|
/**
|
|
3938
3931
|
* Waits for a connection request to complete and become active.
|
|
3939
3932
|
*
|
|
@@ -3975,7 +3968,7 @@ declare class ConnectedAccounts {
|
|
|
3975
3968
|
* console.log(account.toolkit.slug); // e.g., 'github'
|
|
3976
3969
|
* ```
|
|
3977
3970
|
*/
|
|
3978
|
-
get(nanoid: string): Promise<ConnectedAccountRetrieveResponse>;
|
|
3971
|
+
get(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRetrieveResponse>;
|
|
3979
3972
|
/**
|
|
3980
3973
|
* Deletes a connected account.
|
|
3981
3974
|
*
|
|
@@ -3992,7 +3985,7 @@ declare class ConnectedAccounts {
|
|
|
3992
3985
|
* await composio.connectedAccounts.delete('conn_abc123');
|
|
3993
3986
|
* ```
|
|
3994
3987
|
*/
|
|
3995
|
-
delete(nanoid: string): Promise<ConnectedAccountDeleteResponse>;
|
|
3988
|
+
delete(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountDeleteResponse>;
|
|
3996
3989
|
/**
|
|
3997
3990
|
* Refreshes a connected account's authentication credentials.
|
|
3998
3991
|
*
|
|
@@ -4009,7 +4002,7 @@ declare class ConnectedAccounts {
|
|
|
4009
4002
|
* const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
|
|
4010
4003
|
* ```
|
|
4011
4004
|
*/
|
|
4012
|
-
refresh(nanoid: string, options?: ConnectedAccountRefreshOptions): Promise<ConnectedAccountRefreshResponse>;
|
|
4005
|
+
refresh(nanoid: string, options?: ConnectedAccountRefreshOptions, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountRefreshResponse>;
|
|
4013
4006
|
/**
|
|
4014
4007
|
* Update the status of a connected account
|
|
4015
4008
|
* @param {string} nanoid - Unique identifier of the connected account
|
|
@@ -4030,7 +4023,7 @@ declare class ConnectedAccounts {
|
|
|
4030
4023
|
* });
|
|
4031
4024
|
* ```
|
|
4032
4025
|
*/
|
|
4033
|
-
updateStatus(nanoid: string, params: ConnectedAccountUpdateStatusParams): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4026
|
+
updateStatus(nanoid: string, params: ConnectedAccountUpdateStatusParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4034
4027
|
/**
|
|
4035
4028
|
* Enable a connected account
|
|
4036
4029
|
* @param {string} nanoid - Unique identifier of the connected account
|
|
@@ -4043,7 +4036,7 @@ declare class ConnectedAccounts {
|
|
|
4043
4036
|
* console.log(enabledAccount.isDisabled); // false
|
|
4044
4037
|
* ```
|
|
4045
4038
|
*/
|
|
4046
|
-
enable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4039
|
+
enable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4047
4040
|
/**
|
|
4048
4041
|
* Disable a connected account
|
|
4049
4042
|
* @param {string} nanoid - Unique identifier of the connected account
|
|
@@ -4062,7 +4055,7 @@ declare class ConnectedAccounts {
|
|
|
4062
4055
|
* // });
|
|
4063
4056
|
* ```
|
|
4064
4057
|
*/
|
|
4065
|
-
disable(nanoid: string): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4058
|
+
disable(nanoid: string, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4066
4059
|
/**
|
|
4067
4060
|
* Enable or disable a connected account. Accepts `{ enabled: boolean }`.
|
|
4068
4061
|
*
|
|
@@ -4079,7 +4072,7 @@ declare class ConnectedAccounts {
|
|
|
4079
4072
|
* await composio.connectedAccounts.update('ca_abc123', { enabled: false });
|
|
4080
4073
|
* ```
|
|
4081
4074
|
*/
|
|
4082
|
-
update(nanoid: string, params: UpdateConnectedAccountParams): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4075
|
+
update(nanoid: string, params: UpdateConnectedAccountParams, requestOptions?: ComposioRequestOptions): Promise<ConnectedAccountUpdateStatusResponse>;
|
|
4083
4076
|
}
|
|
4084
4077
|
//#endregion
|
|
4085
4078
|
//#region src/models/Experimental.d.ts
|
|
@@ -4160,21 +4153,21 @@ declare const MCPServerInstanceSchema: z$1.ZodObject<{
|
|
|
4160
4153
|
allowedTools: z$1.ZodArray<z$1.ZodString, "many">;
|
|
4161
4154
|
authConfigs: z$1.ZodArray<z$1.ZodString, "many">;
|
|
4162
4155
|
}, "strip", z$1.ZodTypeAny, {
|
|
4163
|
-
name: string;
|
|
4164
4156
|
type: "streamable_http";
|
|
4157
|
+
allowedTools: string[];
|
|
4165
4158
|
userId: string;
|
|
4166
|
-
id: string;
|
|
4167
4159
|
url: string;
|
|
4160
|
+
name: string;
|
|
4161
|
+
id: string;
|
|
4168
4162
|
authConfigs: string[];
|
|
4169
|
-
allowedTools: string[];
|
|
4170
4163
|
}, {
|
|
4171
|
-
name: string;
|
|
4172
4164
|
type: "streamable_http";
|
|
4165
|
+
allowedTools: string[];
|
|
4173
4166
|
userId: string;
|
|
4174
|
-
id: string;
|
|
4175
4167
|
url: string;
|
|
4168
|
+
name: string;
|
|
4169
|
+
id: string;
|
|
4176
4170
|
authConfigs: string[];
|
|
4177
|
-
allowedTools: string[];
|
|
4178
4171
|
}>;
|
|
4179
4172
|
type MCPServerInstance = z$1.infer<typeof MCPServerInstanceSchema>;
|
|
4180
4173
|
declare const MCPConfigCreationParamsSchema: z$1.ZodObject<{
|
|
@@ -4240,12 +4233,12 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
|
|
|
4240
4233
|
*/
|
|
4241
4234
|
windsurf: z$1.ZodString;
|
|
4242
4235
|
}, "strip", z$1.ZodTypeAny, {
|
|
4243
|
-
cursor: string;
|
|
4244
4236
|
claude: string;
|
|
4237
|
+
cursor: string;
|
|
4245
4238
|
windsurf: string;
|
|
4246
4239
|
}, {
|
|
4247
|
-
cursor: string;
|
|
4248
4240
|
claude: string;
|
|
4241
|
+
cursor: string;
|
|
4249
4242
|
windsurf: string;
|
|
4250
4243
|
}>;
|
|
4251
4244
|
/**
|
|
@@ -4253,24 +4246,24 @@ declare const MCPConfigResponseSchema: z$1.ZodObject<{
|
|
|
4253
4246
|
*/
|
|
4254
4247
|
MCPUrl: z$1.ZodString;
|
|
4255
4248
|
}, "strip", z$1.ZodTypeAny, {
|
|
4249
|
+
allowedTools: string[];
|
|
4256
4250
|
name: string;
|
|
4257
|
-
authConfigIds: string[];
|
|
4258
4251
|
id: string;
|
|
4259
|
-
|
|
4252
|
+
authConfigIds: string[];
|
|
4260
4253
|
commands: {
|
|
4261
|
-
cursor: string;
|
|
4262
4254
|
claude: string;
|
|
4255
|
+
cursor: string;
|
|
4263
4256
|
windsurf: string;
|
|
4264
4257
|
};
|
|
4265
4258
|
MCPUrl: string;
|
|
4266
4259
|
}, {
|
|
4260
|
+
allowedTools: string[];
|
|
4267
4261
|
name: string;
|
|
4268
|
-
authConfigIds: string[];
|
|
4269
4262
|
id: string;
|
|
4270
|
-
|
|
4263
|
+
authConfigIds: string[];
|
|
4271
4264
|
commands: {
|
|
4272
|
-
cursor: string;
|
|
4273
4265
|
claude: string;
|
|
4266
|
+
cursor: string;
|
|
4274
4267
|
windsurf: string;
|
|
4275
4268
|
};
|
|
4276
4269
|
MCPUrl: string;
|
|
@@ -4300,16 +4293,16 @@ declare const MCPListParamsSchema: z$1.ZodObject<{
|
|
|
4300
4293
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
4301
4294
|
}, "strip", z$1.ZodTypeAny, {
|
|
4302
4295
|
toolkits: string[];
|
|
4296
|
+
page: number;
|
|
4303
4297
|
limit: number;
|
|
4304
4298
|
authConfigs: string[];
|
|
4305
|
-
page: number;
|
|
4306
4299
|
name?: string | undefined;
|
|
4307
4300
|
}, {
|
|
4308
4301
|
name?: string | undefined;
|
|
4309
4302
|
toolkits?: string[] | undefined;
|
|
4303
|
+
page?: number | undefined;
|
|
4310
4304
|
limit?: number | undefined;
|
|
4311
4305
|
authConfigs?: string[] | undefined;
|
|
4312
|
-
page?: number | undefined;
|
|
4313
4306
|
}>;
|
|
4314
4307
|
type MCPListParams = z$1.infer<typeof MCPListParamsSchema>;
|
|
4315
4308
|
declare const MCPItemSchema: z$1.ZodObject<{
|
|
@@ -4346,12 +4339,12 @@ declare const MCPItemSchema: z$1.ZodObject<{
|
|
|
4346
4339
|
*/
|
|
4347
4340
|
windsurf: z$1.ZodString;
|
|
4348
4341
|
}, "strip", z$1.ZodTypeAny, {
|
|
4349
|
-
cursor: string;
|
|
4350
4342
|
claude: string;
|
|
4343
|
+
cursor: string;
|
|
4351
4344
|
windsurf: string;
|
|
4352
4345
|
}, {
|
|
4353
|
-
cursor: string;
|
|
4354
4346
|
claude: string;
|
|
4347
|
+
cursor: string;
|
|
4355
4348
|
windsurf: string;
|
|
4356
4349
|
}>;
|
|
4357
4350
|
/**
|
|
@@ -4363,28 +4356,28 @@ declare const MCPItemSchema: z$1.ZodObject<{
|
|
|
4363
4356
|
serverInstanceCount: z$1.ZodNumber;
|
|
4364
4357
|
toolkits: z$1.ZodArray<z$1.ZodString, "many">;
|
|
4365
4358
|
}, "strip", z$1.ZodTypeAny, {
|
|
4359
|
+
allowedTools: string[];
|
|
4366
4360
|
name: string;
|
|
4367
4361
|
toolkits: string[];
|
|
4368
|
-
authConfigIds: string[];
|
|
4369
4362
|
id: string;
|
|
4370
|
-
|
|
4363
|
+
authConfigIds: string[];
|
|
4371
4364
|
commands: {
|
|
4372
|
-
cursor: string;
|
|
4373
4365
|
claude: string;
|
|
4366
|
+
cursor: string;
|
|
4374
4367
|
windsurf: string;
|
|
4375
4368
|
};
|
|
4376
4369
|
MCPUrl: string;
|
|
4377
4370
|
toolkitIcons: Record<string, string>;
|
|
4378
4371
|
serverInstanceCount: number;
|
|
4379
4372
|
}, {
|
|
4373
|
+
allowedTools: string[];
|
|
4380
4374
|
name: string;
|
|
4381
4375
|
toolkits: string[];
|
|
4382
|
-
authConfigIds: string[];
|
|
4383
4376
|
id: string;
|
|
4384
|
-
|
|
4377
|
+
authConfigIds: string[];
|
|
4385
4378
|
commands: {
|
|
4386
|
-
cursor: string;
|
|
4387
4379
|
claude: string;
|
|
4380
|
+
cursor: string;
|
|
4388
4381
|
windsurf: string;
|
|
4389
4382
|
};
|
|
4390
4383
|
MCPUrl: string;
|
|
@@ -4427,12 +4420,12 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4427
4420
|
*/
|
|
4428
4421
|
windsurf: z$1.ZodString;
|
|
4429
4422
|
}, "strip", z$1.ZodTypeAny, {
|
|
4430
|
-
cursor: string;
|
|
4431
4423
|
claude: string;
|
|
4424
|
+
cursor: string;
|
|
4432
4425
|
windsurf: string;
|
|
4433
4426
|
}, {
|
|
4434
|
-
cursor: string;
|
|
4435
4427
|
claude: string;
|
|
4428
|
+
cursor: string;
|
|
4436
4429
|
windsurf: string;
|
|
4437
4430
|
}>;
|
|
4438
4431
|
/**
|
|
@@ -4444,28 +4437,28 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4444
4437
|
serverInstanceCount: z$1.ZodNumber;
|
|
4445
4438
|
toolkits: z$1.ZodArray<z$1.ZodString, "many">;
|
|
4446
4439
|
}, "strip", z$1.ZodTypeAny, {
|
|
4440
|
+
allowedTools: string[];
|
|
4447
4441
|
name: string;
|
|
4448
4442
|
toolkits: string[];
|
|
4449
|
-
authConfigIds: string[];
|
|
4450
4443
|
id: string;
|
|
4451
|
-
|
|
4444
|
+
authConfigIds: string[];
|
|
4452
4445
|
commands: {
|
|
4453
|
-
cursor: string;
|
|
4454
4446
|
claude: string;
|
|
4447
|
+
cursor: string;
|
|
4455
4448
|
windsurf: string;
|
|
4456
4449
|
};
|
|
4457
4450
|
MCPUrl: string;
|
|
4458
4451
|
toolkitIcons: Record<string, string>;
|
|
4459
4452
|
serverInstanceCount: number;
|
|
4460
4453
|
}, {
|
|
4454
|
+
allowedTools: string[];
|
|
4461
4455
|
name: string;
|
|
4462
4456
|
toolkits: string[];
|
|
4463
|
-
authConfigIds: string[];
|
|
4464
4457
|
id: string;
|
|
4465
|
-
|
|
4458
|
+
authConfigIds: string[];
|
|
4466
4459
|
commands: {
|
|
4467
|
-
cursor: string;
|
|
4468
4460
|
claude: string;
|
|
4461
|
+
cursor: string;
|
|
4469
4462
|
windsurf: string;
|
|
4470
4463
|
};
|
|
4471
4464
|
MCPUrl: string;
|
|
@@ -4476,14 +4469,14 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4476
4469
|
totalPages: z$1.ZodNumber;
|
|
4477
4470
|
}, "strip", z$1.ZodTypeAny, {
|
|
4478
4471
|
items: {
|
|
4472
|
+
allowedTools: string[];
|
|
4479
4473
|
name: string;
|
|
4480
4474
|
toolkits: string[];
|
|
4481
|
-
authConfigIds: string[];
|
|
4482
4475
|
id: string;
|
|
4483
|
-
|
|
4476
|
+
authConfigIds: string[];
|
|
4484
4477
|
commands: {
|
|
4485
|
-
cursor: string;
|
|
4486
4478
|
claude: string;
|
|
4479
|
+
cursor: string;
|
|
4487
4480
|
windsurf: string;
|
|
4488
4481
|
};
|
|
4489
4482
|
MCPUrl: string;
|
|
@@ -4494,14 +4487,14 @@ declare const MCPListResponseSchema: z$1.ZodObject<{
|
|
|
4494
4487
|
currentPage: number;
|
|
4495
4488
|
}, {
|
|
4496
4489
|
items: {
|
|
4490
|
+
allowedTools: string[];
|
|
4497
4491
|
name: string;
|
|
4498
4492
|
toolkits: string[];
|
|
4499
|
-
authConfigIds: string[];
|
|
4500
4493
|
id: string;
|
|
4501
|
-
|
|
4494
|
+
authConfigIds: string[];
|
|
4502
4495
|
commands: {
|
|
4503
|
-
cursor: string;
|
|
4504
4496
|
claude: string;
|
|
4497
|
+
cursor: string;
|
|
4505
4498
|
windsurf: string;
|
|
4506
4499
|
};
|
|
4507
4500
|
MCPUrl: string;
|
|
@@ -4527,20 +4520,20 @@ declare const MCPUpdateParamsSchema: z$1.ZodObject<{
|
|
|
4527
4520
|
allowedTools: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString, "many">>;
|
|
4528
4521
|
manuallyManageConnections: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4529
4522
|
}, "strip", z$1.ZodTypeAny, {
|
|
4523
|
+
allowedTools?: string[] | undefined;
|
|
4530
4524
|
name?: string | undefined;
|
|
4531
4525
|
toolkits?: (string | {
|
|
4532
4526
|
toolkit?: string | undefined;
|
|
4533
4527
|
authConfigId?: string | undefined;
|
|
4534
4528
|
})[] | undefined;
|
|
4535
|
-
allowedTools?: string[] | undefined;
|
|
4536
4529
|
manuallyManageConnections?: boolean | undefined;
|
|
4537
4530
|
}, {
|
|
4531
|
+
allowedTools?: string[] | undefined;
|
|
4538
4532
|
name?: string | undefined;
|
|
4539
4533
|
toolkits?: (string | {
|
|
4540
4534
|
toolkit?: string | undefined;
|
|
4541
4535
|
authConfigId?: string | undefined;
|
|
4542
4536
|
})[] | undefined;
|
|
4543
|
-
allowedTools?: string[] | undefined;
|
|
4544
4537
|
manuallyManageConnections?: boolean | undefined;
|
|
4545
4538
|
}>;
|
|
4546
4539
|
type MCPUpdateParams = z$1.infer<typeof MCPUpdateParamsSchema>;
|
|
@@ -4580,7 +4573,7 @@ declare class MCP {
|
|
|
4580
4573
|
* });
|
|
4581
4574
|
* ```
|
|
4582
4575
|
*/
|
|
4583
|
-
create(name: string, mcpConfig: MCPConfigCreationParams): Promise<MCPConfigCreateResponse>;
|
|
4576
|
+
create(name: string, mcpConfig: MCPConfigCreationParams, requestOptions?: ComposioRequestOptions): Promise<MCPConfigCreateResponse>;
|
|
4584
4577
|
/**
|
|
4585
4578
|
* List the MCP servers with optional filtering and pagination
|
|
4586
4579
|
* @param {Object} options - Filtering and pagination options
|
|
@@ -4613,7 +4606,7 @@ declare class MCP {
|
|
|
4613
4606
|
* });
|
|
4614
4607
|
* ```
|
|
4615
4608
|
*/
|
|
4616
|
-
list(options: MCPListParams): Promise<MCPListResponse>;
|
|
4609
|
+
list(options: MCPListParams, requestOptions?: ComposioRequestOptions): Promise<MCPListResponse>;
|
|
4617
4610
|
/**
|
|
4618
4611
|
* Retrieve detailed information about a specific MCP server by its ID
|
|
4619
4612
|
* @param {string} serverId - The unique identifier of the MCP server to retrieve
|
|
@@ -4640,7 +4633,7 @@ declare class MCP {
|
|
|
4640
4633
|
*
|
|
4641
4634
|
* @throws {ValidationError} When the server ID is invalid or server not found
|
|
4642
4635
|
*/
|
|
4643
|
-
get(serverId: string): Promise<MCPItem>;
|
|
4636
|
+
get(serverId: string, requestOptions?: ComposioRequestOptions): Promise<MCPItem>;
|
|
4644
4637
|
/**
|
|
4645
4638
|
* Delete an MCP server configuration permanently
|
|
4646
4639
|
* @param {string} serverId - The unique identifier of the MCP server to delete
|
|
@@ -4677,7 +4670,7 @@ declare class MCP {
|
|
|
4677
4670
|
*
|
|
4678
4671
|
* @warning This operation is irreversible. Once deleted, the MCP server configuration and all its associated data will be permanently removed.
|
|
4679
4672
|
*/
|
|
4680
|
-
delete(serverId: string): Promise<{
|
|
4673
|
+
delete(serverId: string, requestOptions?: ComposioRequestOptions): Promise<{
|
|
4681
4674
|
id: string;
|
|
4682
4675
|
deleted: boolean;
|
|
4683
4676
|
}>;
|
|
@@ -4745,7 +4738,7 @@ declare class MCP {
|
|
|
4745
4738
|
* @note Only provided fields will be updated. Omitted fields will retain their current values.
|
|
4746
4739
|
* @note When updating toolkits, the entire toolkit configuration is replaced, not merged.
|
|
4747
4740
|
*/
|
|
4748
|
-
update(serverId: string, config: MCPUpdateParams): Promise<MCPItem>;
|
|
4741
|
+
update(serverId: string, config: MCPUpdateParams, requestOptions?: ComposioRequestOptions): Promise<MCPItem>;
|
|
4749
4742
|
/**
|
|
4750
4743
|
* Get server URLs for an existing MCP server.
|
|
4751
4744
|
* The response is wrapped according to the provider's specifications.
|
|
@@ -4763,7 +4756,7 @@ declare class MCP {
|
|
|
4763
4756
|
* @param options {object} additional options
|
|
4764
4757
|
* @param options.isChatAuth {boolean} Authenticate the users via chat when they use the MCP Server
|
|
4765
4758
|
*/
|
|
4766
|
-
generate(userId: string, mcpConfigId: string, options?: MCPGetInstanceParams): Promise<MCPServerInstance>;
|
|
4759
|
+
generate(userId: string, mcpConfigId: string, options?: MCPGetInstanceParams, requestOptions?: ComposioRequestOptions): Promise<MCPServerInstance>;
|
|
4767
4760
|
}
|
|
4768
4761
|
//#endregion
|
|
4769
4762
|
//#region src/provider/OpenAIProvider.d.ts
|
|
@@ -5122,7 +5115,7 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
5122
5115
|
* });
|
|
5123
5116
|
* ```
|
|
5124
5117
|
*/
|
|
5125
|
-
create(userId: string, config?: ToolRouterCreateSessionConfig): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
5118
|
+
create(userId: string, config?: ToolRouterCreateSessionConfig, requestOptions?: ComposioRequestOptions): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
5126
5119
|
/**
|
|
5127
5120
|
* Use an existing session
|
|
5128
5121
|
* @param id {string} The id of the session to use
|
|
@@ -5143,7 +5136,7 @@ declare class ToolRouter<TToolCollection, TTool, TProvider extends BaseComposioP
|
|
|
5143
5136
|
use(id: string, options?: {
|
|
5144
5137
|
customTools?: CustomTool[];
|
|
5145
5138
|
customToolkits?: CustomToolkit[];
|
|
5146
|
-
}): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
5139
|
+
}, requestOptions?: ComposioRequestOptions): Promise<Session<TToolCollection, TTool, TProvider>>;
|
|
5147
5140
|
}
|
|
5148
5141
|
//#endregion
|
|
5149
5142
|
//#region src/composio.d.ts
|
|
@@ -5351,17 +5344,22 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
5351
5344
|
* console.log(session.tools());
|
|
5352
5345
|
* ```
|
|
5353
5346
|
*/
|
|
5354
|
-
create: (userId: string, routerConfig?: ToolRouterCreateSessionConfig) => Promise<Session<unknown, unknown, TProvider>>;
|
|
5347
|
+
create: (userId: string, routerConfig?: ToolRouterCreateSessionConfig, requestOptions?: ComposioRequestOptions) => Promise<Session<unknown, unknown, TProvider>>;
|
|
5355
5348
|
/**
|
|
5356
5349
|
* Use an existing tool router session
|
|
5357
5350
|
*
|
|
5358
5351
|
* @param id {string} The id of the session to use
|
|
5352
|
+
* @param options {object} Custom tools / toolkits to attach to the session
|
|
5353
|
+
* @param requestOptions {ComposioRequestOptions} Per-request cancellation
|
|
5354
|
+
* options. The supplied AbortSignal aborts the underlying session
|
|
5355
|
+
* retrieve/attach call only. Subsequent session method calls accept
|
|
5356
|
+
* their own per-call requestOptions.
|
|
5359
5357
|
* @returns {Promise<Session<TToolCollection, TTool, TProvider>>} The tool router session
|
|
5360
5358
|
*/
|
|
5361
5359
|
use: (id: string, options?: {
|
|
5362
5360
|
customTools?: CustomTool[];
|
|
5363
5361
|
customToolkits?: CustomToolkit[];
|
|
5364
|
-
}) => Promise<Session<unknown, unknown, TProvider>>;
|
|
5362
|
+
}, requestOptions?: ComposioRequestOptions) => Promise<Session<unknown, unknown, TProvider>>;
|
|
5365
5363
|
/**
|
|
5366
5364
|
* Creates a new instance of the Composio SDK.
|
|
5367
5365
|
*
|
|
@@ -5481,4 +5479,4 @@ declare class Composio$1<TProvider extends BaseComposioProvider<unknown, unknown
|
|
|
5481
5479
|
flush(): Promise<void>;
|
|
5482
5480
|
}
|
|
5483
5481
|
//#endregion
|
|
5484
|
-
export { WebhookVersions as $, TriggerSubscribeParamSchema as A, ToolkitAuthConfigDetailsSchema as At, VerifyWebhookParamsSchema as B, ToolkitRetrieveCategoriesResponse as Bt, TriggerInstanceUpsertParams as C, ToolKitItem as Ct, TriggerStatusEnum as D, ToolKitMeta as Dt, TriggerInstanceUpsertResponseSchema as E, ToolKitListResponseSchema as Et, TriggersTypeListParamsSchema as F, ToolkitCategory as Ft, WebhookPayloadV1Schema as G, ToolkitSortByEnumSchema as Gt, WebhookPayload as H, ToolkitRetrieveResponse as Ht, TriggersTypeListResponse as I, ToolkitCategorySchema as It, WebhookPayloadV3 as J, WebhookPayloadV2 as K, ToolkitsListParamsSchema as Kt, TriggersTypeListResponseSchema as L, ToolkitListParams as Lt, TriggerType as M, ToolkitAuthFieldSchema as Mt, TriggerTypeSchema as N, ToolkitAuthFieldsResponse as Nt, TriggerStatusType as O, ToolKitMetaSchema as Ot, TriggersTypeListParams as P, ToolkitAuthFieldsResponseSchema as Pt, WebhookVersion as Q, TriggersTypeRetrieveResponse as R, ToolkitMangedByEnum as Rt, TriggerInstanceManageUpdateResponseSchema as S, CreateCustomAuthConfigParamsSchema as St, TriggerInstanceUpsertResponse as T, ToolKitListResponse as Tt, WebhookPayloadSchema as U, ToolkitRetrieveResponseSchema as Ut, VerifyWebhookResult as V, ToolkitRetrieveCategoriesResponseSchema as Vt, WebhookPayloadV1 as W, ToolkitSortByEnum as Wt, WebhookTriggerPayloadV3 as X, WebhookPayloadV3Schema as Y, WebhookTriggerPayloadV3Schema as Z, TriggerInstanceManageDeleteResponse as _, CreateAuthConfigParams as _t, Experimental as a, AuthConfigRetrieveResponse as at, TriggerInstanceManageUpdateParamsSchema as b, CreateAuthConfigResponseSchema as bt, TriggerData as c, AuthConfigType as ct, TriggerInstanceListActiveParams as d, AuthConfigUpdateParamsSchema as dt, AuthConfigCreationToolAccessConfigSchema as et, TriggerInstanceListActiveParamsSchema as f, AuthCustomConfigUpdateParamsSchema as ft, TriggerInstanceListActiveResponseSchema as g, AuthSchemeTypes as gt, TriggerInstanceListActiveResponseItemSchema as h, AuthSchemeType as ht, MCP as i, AuthConfigListResponseSchema as it, TriggerSubscribeParams as j, ToolkitAuthField as jt, TriggerStatuses as k, ToolkitAuthConfigDetails as kt, TriggerEvent as l, AuthConfigTypes as lt, TriggerInstanceListActiveResponseItem as m, AuthSchemeEnum as mt, ComposioConfig as n, AuthConfigListParamsSchema as nt, IncomingTriggerPayload as o, AuthConfigRetrieveResponseSchema as ot, TriggerInstanceListActiveResponse as p, AuthDefaultConfigUpdateParamsSchema as pt, WebhookPayloadV2Schema as q, OpenAIProvider as r, AuthConfigListResponse as rt, IncomingTriggerPayloadSchema as s, AuthConfigToolAccessConfigSchema as st, Composio$1 as t, AuthConfigListParams as tt, TriggerEventData as u, AuthConfigUpdateParams as ut, TriggerInstanceManageDeleteResponseSchema as v, CreateAuthConfigParamsSchema as vt, TriggerInstanceUpsertParamsSchema as w, ToolKitItemSchema as wt, TriggerInstanceManageUpdateResponse as x, CreateComposioManagedAuthConfigParamsSchema as xt, TriggerInstanceManageUpdateParams as y, CreateAuthConfigResponse as yt, VerifyWebhookParams as z, ToolkitMangedByEnumSchema as zt };
|
|
5482
|
+
export { WebhookVersions as $, TriggerSubscribeParamSchema as A, ToolkitAuthConfigDetailsSchema as At, VerifyWebhookParamsSchema as B, ToolkitRetrieveCategoriesResponse as Bt, TriggerInstanceUpsertParams as C, ToolKitItem as Ct, TriggerStatusEnum as D, ToolKitMeta as Dt, TriggerInstanceUpsertResponseSchema as E, ToolKitListResponseSchema as Et, TriggersTypeListParamsSchema as F, ToolkitCategory as Ft, WebhookPayloadV1Schema as G, ToolkitSortByEnumSchema as Gt, WebhookPayload as H, ToolkitRetrieveResponse as Ht, TriggersTypeListResponse as I, ToolkitCategorySchema as It, WebhookPayloadV3 as J, WebhookPayloadV2 as K, ToolkitsListParamsSchema as Kt, TriggersTypeListResponseSchema as L, ToolkitListParams as Lt, TriggerType as M, ToolkitAuthFieldSchema as Mt, TriggerTypeSchema as N, ToolkitAuthFieldsResponse as Nt, TriggerStatusType as O, ToolKitMetaSchema as Ot, TriggersTypeListParams as P, ToolkitAuthFieldsResponseSchema as Pt, WebhookVersion as Q, TriggersTypeRetrieveResponse as R, ToolkitMangedByEnum as Rt, TriggerInstanceManageUpdateResponseSchema as S, CreateCustomAuthConfigParamsSchema as St, TriggerInstanceUpsertResponse as T, ToolKitListResponse as Tt, WebhookPayloadSchema as U, ToolkitRetrieveResponseSchema as Ut, VerifyWebhookResult as V, ToolkitRetrieveCategoriesResponseSchema as Vt, WebhookPayloadV1 as W, ToolkitSortByEnum as Wt, WebhookTriggerPayloadV3 as X, WebhookPayloadV3Schema as Y, WebhookTriggerPayloadV3Schema as Z, TriggerInstanceManageDeleteResponse as _, CreateAuthConfigParams as _t, Experimental as a, AuthConfigRetrieveResponse as at, TriggerInstanceManageUpdateParamsSchema as b, CreateAuthConfigResponseSchema as bt, TriggerData as c, AuthConfigType as ct, TriggerInstanceListActiveParams as d, AuthConfigUpdateParamsSchema as dt, AuthConfigCreationToolAccessConfigSchema as et, TriggerInstanceListActiveParamsSchema as f, AuthCustomConfigUpdateParamsSchema as ft, TriggerInstanceListActiveResponseSchema as g, AuthSchemeTypes as gt, TriggerInstanceListActiveResponseItemSchema as h, AuthSchemeType as ht, MCP as i, AuthConfigListResponseSchema as it, TriggerSubscribeParams as j, ToolkitAuthField as jt, TriggerStatuses as k, ToolkitAuthConfigDetails as kt, TriggerEvent as l, AuthConfigTypes as lt, TriggerInstanceListActiveResponseItem as m, AuthSchemeEnum as mt, ComposioConfig as n, AuthConfigListParamsSchema as nt, IncomingTriggerPayload as o, AuthConfigRetrieveResponseSchema as ot, TriggerInstanceListActiveResponse as p, AuthDefaultConfigUpdateParamsSchema as pt, WebhookPayloadV2Schema as q, ComposioRequestOptions as qt, OpenAIProvider as r, AuthConfigListResponse as rt, IncomingTriggerPayloadSchema as s, AuthConfigToolAccessConfigSchema as st, Composio$1 as t, AuthConfigListParams as tt, TriggerEventData as u, AuthConfigUpdateParams as ut, TriggerInstanceManageDeleteResponseSchema as v, CreateAuthConfigParamsSchema as vt, TriggerInstanceUpsertParamsSchema as w, ToolKitItemSchema as wt, TriggerInstanceManageUpdateResponse as x, CreateComposioManagedAuthConfigParamsSchema as xt, TriggerInstanceManageUpdateParams as y, CreateAuthConfigResponse as yt, VerifyWebhookParams as z, ToolkitMangedByEnumSchema as zt };
|