@composio/core 0.1.34 → 0.1.35
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/index.cjs +80 -3
- package/dist/index.d.cts +145 -2
- package/dist/index.d.ts +145 -2
- package/dist/index.js +77 -3
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -159,6 +159,9 @@ __export(index_exports, {
|
|
|
159
159
|
TriggerStatusEnum: () => TriggerStatusEnum,
|
|
160
160
|
TriggerStatuses: () => TriggerStatuses,
|
|
161
161
|
TriggerSubscribeParamSchema: () => TriggerSubscribeParamSchema,
|
|
162
|
+
TriggerTypeSchema: () => TriggerTypeSchema,
|
|
163
|
+
TriggersTypeListParamsSchema: () => TriggersTypeListParamsSchema,
|
|
164
|
+
TriggersTypeListResponseSchema: () => TriggersTypeListResponseSchema,
|
|
162
165
|
ValidationError: () => ValidationError,
|
|
163
166
|
ValidationErrorCodes: () => ValidationErrorCodes,
|
|
164
167
|
constants: () => constants_exports,
|
|
@@ -4257,6 +4260,29 @@ var IncomingTriggerPayloadSchema = import_zod8.z.object({
|
|
|
4257
4260
|
})
|
|
4258
4261
|
})
|
|
4259
4262
|
});
|
|
4263
|
+
var TriggersTypeListParamsSchema = import_zod8.z.object({
|
|
4264
|
+
cursor: import_zod8.z.string().optional(),
|
|
4265
|
+
limit: import_zod8.z.number().nullish(),
|
|
4266
|
+
toolkits: import_zod8.z.array(import_zod8.z.string()).nullish()
|
|
4267
|
+
});
|
|
4268
|
+
var TriggerTypeSchema = import_zod8.z.object({
|
|
4269
|
+
slug: import_zod8.z.string(),
|
|
4270
|
+
name: import_zod8.z.string(),
|
|
4271
|
+
description: import_zod8.z.string(),
|
|
4272
|
+
instructions: import_zod8.z.string().optional(),
|
|
4273
|
+
toolkit: import_zod8.z.object({
|
|
4274
|
+
logo: import_zod8.z.string(),
|
|
4275
|
+
slug: import_zod8.z.string(),
|
|
4276
|
+
name: import_zod8.z.string()
|
|
4277
|
+
}),
|
|
4278
|
+
payload: import_zod8.z.record(import_zod8.z.unknown()),
|
|
4279
|
+
config: import_zod8.z.record(import_zod8.z.unknown())
|
|
4280
|
+
});
|
|
4281
|
+
var TriggersTypeListResponseSchema = import_zod8.z.object({
|
|
4282
|
+
items: import_zod8.z.array(TriggerTypeSchema),
|
|
4283
|
+
nextCursor: import_zod8.z.string().nullable(),
|
|
4284
|
+
totalPages: import_zod8.z.number()
|
|
4285
|
+
});
|
|
4260
4286
|
|
|
4261
4287
|
// src/services/internal/InternalService.types.ts
|
|
4262
4288
|
var import_zod9 = require("zod");
|
|
@@ -4527,6 +4553,29 @@ var PusherService = class {
|
|
|
4527
4553
|
}
|
|
4528
4554
|
};
|
|
4529
4555
|
|
|
4556
|
+
// src/utils/transform.ts
|
|
4557
|
+
function transform(raw) {
|
|
4558
|
+
return {
|
|
4559
|
+
with(schema) {
|
|
4560
|
+
return {
|
|
4561
|
+
using(transformer, options) {
|
|
4562
|
+
const transformed = transformer(raw);
|
|
4563
|
+
const result = schema.safeParse(transformed);
|
|
4564
|
+
if (!result.success) {
|
|
4565
|
+
throw new ValidationError(
|
|
4566
|
+
`Failed to transform${options?.label ? ` ${options.label}` : ""}`,
|
|
4567
|
+
{
|
|
4568
|
+
cause: result.error
|
|
4569
|
+
}
|
|
4570
|
+
);
|
|
4571
|
+
}
|
|
4572
|
+
return result.data;
|
|
4573
|
+
}
|
|
4574
|
+
};
|
|
4575
|
+
}
|
|
4576
|
+
};
|
|
4577
|
+
}
|
|
4578
|
+
|
|
4530
4579
|
// src/models/Triggers.ts
|
|
4531
4580
|
var Triggers = class {
|
|
4532
4581
|
client;
|
|
@@ -4765,7 +4814,18 @@ var Triggers = class {
|
|
|
4765
4814
|
* @returns {Promise<TriggersTypeListResponse>} The list of trigger types
|
|
4766
4815
|
*/
|
|
4767
4816
|
async listTypes(query) {
|
|
4768
|
-
|
|
4817
|
+
const parsedQuery = transform(query ?? {}).with(TriggersTypeListParamsSchema).using((raw) => raw);
|
|
4818
|
+
const result = await this.client.triggersTypes.list({
|
|
4819
|
+
cursor: parsedQuery.cursor,
|
|
4820
|
+
limit: parsedQuery.limit,
|
|
4821
|
+
toolkit_slugs: parsedQuery.toolkits
|
|
4822
|
+
});
|
|
4823
|
+
const parsedResult = transform(result).with(TriggersTypeListResponseSchema).using((raw) => ({
|
|
4824
|
+
items: raw.items,
|
|
4825
|
+
nextCursor: raw.next_cursor,
|
|
4826
|
+
totalPages: raw.total_pages
|
|
4827
|
+
}));
|
|
4828
|
+
return parsedResult;
|
|
4769
4829
|
}
|
|
4770
4830
|
/**
|
|
4771
4831
|
* Retrieve a trigger type by its slug
|
|
@@ -4775,7 +4835,21 @@ var Triggers = class {
|
|
|
4775
4835
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
4776
4836
|
*/
|
|
4777
4837
|
async getType(slug) {
|
|
4778
|
-
|
|
4838
|
+
const result = await this.client.triggersTypes.retrieve(slug);
|
|
4839
|
+
const parsedResult = transform(result).with(TriggerTypeSchema).using((raw) => ({
|
|
4840
|
+
slug: raw.slug,
|
|
4841
|
+
name: raw.name,
|
|
4842
|
+
description: raw.description,
|
|
4843
|
+
instructions: raw.instructions,
|
|
4844
|
+
toolkit: {
|
|
4845
|
+
logo: raw.toolkit.logo,
|
|
4846
|
+
slug: raw.toolkit.slug,
|
|
4847
|
+
name: raw.toolkit.name
|
|
4848
|
+
},
|
|
4849
|
+
payload: raw.payload,
|
|
4850
|
+
config: raw.config
|
|
4851
|
+
}));
|
|
4852
|
+
return parsedResult;
|
|
4779
4853
|
}
|
|
4780
4854
|
/**
|
|
4781
4855
|
* Fetches the list of all the available trigger enums
|
|
@@ -6135,7 +6209,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
6135
6209
|
};
|
|
6136
6210
|
|
|
6137
6211
|
// package.json
|
|
6138
|
-
var version = "0.1.
|
|
6212
|
+
var version = "0.1.35";
|
|
6139
6213
|
|
|
6140
6214
|
// src/models/Files.ts
|
|
6141
6215
|
var Files = class {
|
|
@@ -6658,6 +6732,9 @@ var AuthScheme = class {
|
|
|
6658
6732
|
TriggerStatusEnum,
|
|
6659
6733
|
TriggerStatuses,
|
|
6660
6734
|
TriggerSubscribeParamSchema,
|
|
6735
|
+
TriggerTypeSchema,
|
|
6736
|
+
TriggersTypeListParamsSchema,
|
|
6737
|
+
TriggersTypeListResponseSchema,
|
|
6661
6738
|
ValidationError,
|
|
6662
6739
|
ValidationErrorCodes,
|
|
6663
6740
|
constants,
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { McpCreateResponse, CustomCreateResponse as CustomCreateResponse$1, GenerateURLResponse as GenerateURLResponse$1 } from '@composio/client/resources/mcp';
|
|
3
3
|
import ComposioClient from '@composio/client';
|
|
4
4
|
import { ToolExecuteResponse as ToolExecuteResponse$1, ToolRetrieveEnumResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse } from '@composio/client/resources/tools';
|
|
5
|
-
import {
|
|
5
|
+
import { TriggersTypeRetrieveEnumResponse } from '@composio/client/resources/index';
|
|
6
6
|
import { AuthConfigUpdateResponse, AuthConfigDeleteResponse, AuthConfigUpdateStatusResponse } from '@composio/client/resources/auth-configs';
|
|
7
7
|
import { ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from '@composio/client/resources/connected-accounts';
|
|
8
8
|
import { OpenAI } from 'openai';
|
|
@@ -49655,6 +49655,149 @@ type TriggerData = {
|
|
|
49655
49655
|
};
|
|
49656
49656
|
};
|
|
49657
49657
|
};
|
|
49658
|
+
declare const TriggersTypeListParamsSchema: z.ZodObject<{
|
|
49659
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
49660
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49661
|
+
toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
49662
|
+
}, "strip", z.ZodTypeAny, {
|
|
49663
|
+
toolkits?: string[] | null | undefined;
|
|
49664
|
+
limit?: number | null | undefined;
|
|
49665
|
+
cursor?: string | undefined;
|
|
49666
|
+
}, {
|
|
49667
|
+
toolkits?: string[] | null | undefined;
|
|
49668
|
+
limit?: number | null | undefined;
|
|
49669
|
+
cursor?: string | undefined;
|
|
49670
|
+
}>;
|
|
49671
|
+
type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
|
|
49672
|
+
declare const TriggerTypeSchema: z.ZodObject<{
|
|
49673
|
+
slug: z.ZodString;
|
|
49674
|
+
name: z.ZodString;
|
|
49675
|
+
description: z.ZodString;
|
|
49676
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
49677
|
+
toolkit: z.ZodObject<{
|
|
49678
|
+
logo: z.ZodString;
|
|
49679
|
+
slug: z.ZodString;
|
|
49680
|
+
name: z.ZodString;
|
|
49681
|
+
}, "strip", z.ZodTypeAny, {
|
|
49682
|
+
slug: string;
|
|
49683
|
+
name: string;
|
|
49684
|
+
logo: string;
|
|
49685
|
+
}, {
|
|
49686
|
+
slug: string;
|
|
49687
|
+
name: string;
|
|
49688
|
+
logo: string;
|
|
49689
|
+
}>;
|
|
49690
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49691
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49692
|
+
}, "strip", z.ZodTypeAny, {
|
|
49693
|
+
slug: string;
|
|
49694
|
+
name: string;
|
|
49695
|
+
description: string;
|
|
49696
|
+
toolkit: {
|
|
49697
|
+
slug: string;
|
|
49698
|
+
name: string;
|
|
49699
|
+
logo: string;
|
|
49700
|
+
};
|
|
49701
|
+
config: Record<string, unknown>;
|
|
49702
|
+
payload: Record<string, unknown>;
|
|
49703
|
+
instructions?: string | undefined;
|
|
49704
|
+
}, {
|
|
49705
|
+
slug: string;
|
|
49706
|
+
name: string;
|
|
49707
|
+
description: string;
|
|
49708
|
+
toolkit: {
|
|
49709
|
+
slug: string;
|
|
49710
|
+
name: string;
|
|
49711
|
+
logo: string;
|
|
49712
|
+
};
|
|
49713
|
+
config: Record<string, unknown>;
|
|
49714
|
+
payload: Record<string, unknown>;
|
|
49715
|
+
instructions?: string | undefined;
|
|
49716
|
+
}>;
|
|
49717
|
+
type TriggerType = z.infer<typeof TriggerTypeSchema>;
|
|
49718
|
+
declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
49719
|
+
items: z.ZodArray<z.ZodObject<{
|
|
49720
|
+
slug: z.ZodString;
|
|
49721
|
+
name: z.ZodString;
|
|
49722
|
+
description: z.ZodString;
|
|
49723
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
49724
|
+
toolkit: z.ZodObject<{
|
|
49725
|
+
logo: z.ZodString;
|
|
49726
|
+
slug: z.ZodString;
|
|
49727
|
+
name: z.ZodString;
|
|
49728
|
+
}, "strip", z.ZodTypeAny, {
|
|
49729
|
+
slug: string;
|
|
49730
|
+
name: string;
|
|
49731
|
+
logo: string;
|
|
49732
|
+
}, {
|
|
49733
|
+
slug: string;
|
|
49734
|
+
name: string;
|
|
49735
|
+
logo: string;
|
|
49736
|
+
}>;
|
|
49737
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49738
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49739
|
+
}, "strip", z.ZodTypeAny, {
|
|
49740
|
+
slug: string;
|
|
49741
|
+
name: string;
|
|
49742
|
+
description: string;
|
|
49743
|
+
toolkit: {
|
|
49744
|
+
slug: string;
|
|
49745
|
+
name: string;
|
|
49746
|
+
logo: string;
|
|
49747
|
+
};
|
|
49748
|
+
config: Record<string, unknown>;
|
|
49749
|
+
payload: Record<string, unknown>;
|
|
49750
|
+
instructions?: string | undefined;
|
|
49751
|
+
}, {
|
|
49752
|
+
slug: string;
|
|
49753
|
+
name: string;
|
|
49754
|
+
description: string;
|
|
49755
|
+
toolkit: {
|
|
49756
|
+
slug: string;
|
|
49757
|
+
name: string;
|
|
49758
|
+
logo: string;
|
|
49759
|
+
};
|
|
49760
|
+
config: Record<string, unknown>;
|
|
49761
|
+
payload: Record<string, unknown>;
|
|
49762
|
+
instructions?: string | undefined;
|
|
49763
|
+
}>, "many">;
|
|
49764
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
49765
|
+
totalPages: z.ZodNumber;
|
|
49766
|
+
}, "strip", z.ZodTypeAny, {
|
|
49767
|
+
items: {
|
|
49768
|
+
slug: string;
|
|
49769
|
+
name: string;
|
|
49770
|
+
description: string;
|
|
49771
|
+
toolkit: {
|
|
49772
|
+
slug: string;
|
|
49773
|
+
name: string;
|
|
49774
|
+
logo: string;
|
|
49775
|
+
};
|
|
49776
|
+
config: Record<string, unknown>;
|
|
49777
|
+
payload: Record<string, unknown>;
|
|
49778
|
+
instructions?: string | undefined;
|
|
49779
|
+
}[];
|
|
49780
|
+
nextCursor: string | null;
|
|
49781
|
+
totalPages: number;
|
|
49782
|
+
}, {
|
|
49783
|
+
items: {
|
|
49784
|
+
slug: string;
|
|
49785
|
+
name: string;
|
|
49786
|
+
description: string;
|
|
49787
|
+
toolkit: {
|
|
49788
|
+
slug: string;
|
|
49789
|
+
name: string;
|
|
49790
|
+
logo: string;
|
|
49791
|
+
};
|
|
49792
|
+
config: Record<string, unknown>;
|
|
49793
|
+
payload: Record<string, unknown>;
|
|
49794
|
+
instructions?: string | undefined;
|
|
49795
|
+
}[];
|
|
49796
|
+
nextCursor: string | null;
|
|
49797
|
+
totalPages: number;
|
|
49798
|
+
}>;
|
|
49799
|
+
type TriggersTypeListResponse = z.infer<typeof TriggersTypeListResponseSchema>;
|
|
49800
|
+
type TriggersTypeRetrieveResponse = z.infer<typeof TriggerTypeSchema>;
|
|
49658
49801
|
|
|
49659
49802
|
/**
|
|
49660
49803
|
* Trigger (Instance) class
|
|
@@ -51390,4 +51533,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
|
|
|
51390
51533
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
51391
51534
|
}
|
|
51392
51535
|
|
|
51393
|
-
export { type AgenticToolOptions, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, type BaseConnectionFields, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, type ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, type ConnectedAccountListParams, ConnectedAccountListParamsSchema, type ConnectedAccountListResponse, type ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, type ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, type ConnectedAccountStatus, type ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, type ConnectionData, ConnectionDataSchema, type ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, type ConnectionRequestState, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, type CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, type CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, type CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomCreateResponse, CustomCreateResponseSchema, type CustomCreateResponseValidated, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type FileDownloadData, type FileUploadData, type GenerateURLParams, GenerateURLParamsSchema, type GenerateURLResponse, GenerateURLResponseSchema, type GenerateURLResponseValidated, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, type JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, type MCPAuthOptions, MCPAuthOptionsSchema, type MCPCreateMethodResponse, type MCPGenerateURLParams, MCPGenerateURLParamsSchema, type MCPGetServerParams, MCPGetServerParamsSchema, type MCPInstanceParams, type MCPMultiAppServer, MCPMultiAppServerSchema, type MCPServer, type MCPServerCreateResponse, MCPServerCreateResponseSchema, type MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, type MCPServerUpdateParams, MCPServerUpdateParamsSchema, type MCPSingleAppServer, MCPSingleAppServerSchema, type MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, type McpDeleteResponse, McpDeleteResponseSchema, type McpListResponse, McpListResponseSchema, type McpRetrieveResponse, McpRetrieveResponseSchema, type McpServerCreateResponse, type McpServerGetResponse, type McpServerUrlInfo, type McpUpdateResponse, McpUpdateResponseSchema, type McpUrlResponse, type McpUrlResponseCamelCase, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, constants, createConnectionRequest, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
|
51536
|
+
export { type AgenticToolOptions, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, type BaseConnectionFields, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, type ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, type ConnectedAccountListParams, ConnectedAccountListParamsSchema, type ConnectedAccountListResponse, type ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, type ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, type ConnectedAccountStatus, type ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, type ConnectionData, ConnectionDataSchema, type ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, type ConnectionRequestState, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, type CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, type CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, type CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomCreateResponse, CustomCreateResponseSchema, type CustomCreateResponseValidated, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type FileDownloadData, type FileUploadData, type GenerateURLParams, GenerateURLParamsSchema, type GenerateURLResponse, GenerateURLResponseSchema, type GenerateURLResponseValidated, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, type JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, type MCPAuthOptions, MCPAuthOptionsSchema, type MCPCreateMethodResponse, type MCPGenerateURLParams, MCPGenerateURLParamsSchema, type MCPGetServerParams, MCPGetServerParamsSchema, type MCPInstanceParams, type MCPMultiAppServer, MCPMultiAppServerSchema, type MCPServer, type MCPServerCreateResponse, MCPServerCreateResponseSchema, type MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, type MCPServerUpdateParams, MCPServerUpdateParamsSchema, type MCPSingleAppServer, MCPSingleAppServerSchema, type MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, type McpDeleteResponse, McpDeleteResponseSchema, type McpListResponse, McpListResponseSchema, type McpRetrieveResponse, McpRetrieveResponseSchema, type McpServerCreateResponse, type McpServerGetResponse, type McpServerUrlInfo, type McpUpdateResponse, McpUpdateResponseSchema, type McpUrlResponse, type McpUrlResponseCamelCase, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, type TriggerType, TriggerTypeSchema, type TriggersTypeListParams, TriggersTypeListParamsSchema, type TriggersTypeListResponse, TriggersTypeListResponseSchema, type TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, constants, createConnectionRequest, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { McpCreateResponse, CustomCreateResponse as CustomCreateResponse$1, GenerateURLResponse as GenerateURLResponse$1 } from '@composio/client/resources/mcp';
|
|
3
3
|
import ComposioClient from '@composio/client';
|
|
4
4
|
import { ToolExecuteResponse as ToolExecuteResponse$1, ToolRetrieveEnumResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse } from '@composio/client/resources/tools';
|
|
5
|
-
import {
|
|
5
|
+
import { TriggersTypeRetrieveEnumResponse } from '@composio/client/resources/index';
|
|
6
6
|
import { AuthConfigUpdateResponse, AuthConfigDeleteResponse, AuthConfigUpdateStatusResponse } from '@composio/client/resources/auth-configs';
|
|
7
7
|
import { ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from '@composio/client/resources/connected-accounts';
|
|
8
8
|
import { OpenAI } from 'openai';
|
|
@@ -49655,6 +49655,149 @@ type TriggerData = {
|
|
|
49655
49655
|
};
|
|
49656
49656
|
};
|
|
49657
49657
|
};
|
|
49658
|
+
declare const TriggersTypeListParamsSchema: z.ZodObject<{
|
|
49659
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
49660
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49661
|
+
toolkits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
49662
|
+
}, "strip", z.ZodTypeAny, {
|
|
49663
|
+
toolkits?: string[] | null | undefined;
|
|
49664
|
+
limit?: number | null | undefined;
|
|
49665
|
+
cursor?: string | undefined;
|
|
49666
|
+
}, {
|
|
49667
|
+
toolkits?: string[] | null | undefined;
|
|
49668
|
+
limit?: number | null | undefined;
|
|
49669
|
+
cursor?: string | undefined;
|
|
49670
|
+
}>;
|
|
49671
|
+
type TriggersTypeListParams = z.infer<typeof TriggersTypeListParamsSchema>;
|
|
49672
|
+
declare const TriggerTypeSchema: z.ZodObject<{
|
|
49673
|
+
slug: z.ZodString;
|
|
49674
|
+
name: z.ZodString;
|
|
49675
|
+
description: z.ZodString;
|
|
49676
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
49677
|
+
toolkit: z.ZodObject<{
|
|
49678
|
+
logo: z.ZodString;
|
|
49679
|
+
slug: z.ZodString;
|
|
49680
|
+
name: z.ZodString;
|
|
49681
|
+
}, "strip", z.ZodTypeAny, {
|
|
49682
|
+
slug: string;
|
|
49683
|
+
name: string;
|
|
49684
|
+
logo: string;
|
|
49685
|
+
}, {
|
|
49686
|
+
slug: string;
|
|
49687
|
+
name: string;
|
|
49688
|
+
logo: string;
|
|
49689
|
+
}>;
|
|
49690
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49691
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49692
|
+
}, "strip", z.ZodTypeAny, {
|
|
49693
|
+
slug: string;
|
|
49694
|
+
name: string;
|
|
49695
|
+
description: string;
|
|
49696
|
+
toolkit: {
|
|
49697
|
+
slug: string;
|
|
49698
|
+
name: string;
|
|
49699
|
+
logo: string;
|
|
49700
|
+
};
|
|
49701
|
+
config: Record<string, unknown>;
|
|
49702
|
+
payload: Record<string, unknown>;
|
|
49703
|
+
instructions?: string | undefined;
|
|
49704
|
+
}, {
|
|
49705
|
+
slug: string;
|
|
49706
|
+
name: string;
|
|
49707
|
+
description: string;
|
|
49708
|
+
toolkit: {
|
|
49709
|
+
slug: string;
|
|
49710
|
+
name: string;
|
|
49711
|
+
logo: string;
|
|
49712
|
+
};
|
|
49713
|
+
config: Record<string, unknown>;
|
|
49714
|
+
payload: Record<string, unknown>;
|
|
49715
|
+
instructions?: string | undefined;
|
|
49716
|
+
}>;
|
|
49717
|
+
type TriggerType = z.infer<typeof TriggerTypeSchema>;
|
|
49718
|
+
declare const TriggersTypeListResponseSchema: z.ZodObject<{
|
|
49719
|
+
items: z.ZodArray<z.ZodObject<{
|
|
49720
|
+
slug: z.ZodString;
|
|
49721
|
+
name: z.ZodString;
|
|
49722
|
+
description: z.ZodString;
|
|
49723
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
49724
|
+
toolkit: z.ZodObject<{
|
|
49725
|
+
logo: z.ZodString;
|
|
49726
|
+
slug: z.ZodString;
|
|
49727
|
+
name: z.ZodString;
|
|
49728
|
+
}, "strip", z.ZodTypeAny, {
|
|
49729
|
+
slug: string;
|
|
49730
|
+
name: string;
|
|
49731
|
+
logo: string;
|
|
49732
|
+
}, {
|
|
49733
|
+
slug: string;
|
|
49734
|
+
name: string;
|
|
49735
|
+
logo: string;
|
|
49736
|
+
}>;
|
|
49737
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49738
|
+
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49739
|
+
}, "strip", z.ZodTypeAny, {
|
|
49740
|
+
slug: string;
|
|
49741
|
+
name: string;
|
|
49742
|
+
description: string;
|
|
49743
|
+
toolkit: {
|
|
49744
|
+
slug: string;
|
|
49745
|
+
name: string;
|
|
49746
|
+
logo: string;
|
|
49747
|
+
};
|
|
49748
|
+
config: Record<string, unknown>;
|
|
49749
|
+
payload: Record<string, unknown>;
|
|
49750
|
+
instructions?: string | undefined;
|
|
49751
|
+
}, {
|
|
49752
|
+
slug: string;
|
|
49753
|
+
name: string;
|
|
49754
|
+
description: string;
|
|
49755
|
+
toolkit: {
|
|
49756
|
+
slug: string;
|
|
49757
|
+
name: string;
|
|
49758
|
+
logo: string;
|
|
49759
|
+
};
|
|
49760
|
+
config: Record<string, unknown>;
|
|
49761
|
+
payload: Record<string, unknown>;
|
|
49762
|
+
instructions?: string | undefined;
|
|
49763
|
+
}>, "many">;
|
|
49764
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
49765
|
+
totalPages: z.ZodNumber;
|
|
49766
|
+
}, "strip", z.ZodTypeAny, {
|
|
49767
|
+
items: {
|
|
49768
|
+
slug: string;
|
|
49769
|
+
name: string;
|
|
49770
|
+
description: string;
|
|
49771
|
+
toolkit: {
|
|
49772
|
+
slug: string;
|
|
49773
|
+
name: string;
|
|
49774
|
+
logo: string;
|
|
49775
|
+
};
|
|
49776
|
+
config: Record<string, unknown>;
|
|
49777
|
+
payload: Record<string, unknown>;
|
|
49778
|
+
instructions?: string | undefined;
|
|
49779
|
+
}[];
|
|
49780
|
+
nextCursor: string | null;
|
|
49781
|
+
totalPages: number;
|
|
49782
|
+
}, {
|
|
49783
|
+
items: {
|
|
49784
|
+
slug: string;
|
|
49785
|
+
name: string;
|
|
49786
|
+
description: string;
|
|
49787
|
+
toolkit: {
|
|
49788
|
+
slug: string;
|
|
49789
|
+
name: string;
|
|
49790
|
+
logo: string;
|
|
49791
|
+
};
|
|
49792
|
+
config: Record<string, unknown>;
|
|
49793
|
+
payload: Record<string, unknown>;
|
|
49794
|
+
instructions?: string | undefined;
|
|
49795
|
+
}[];
|
|
49796
|
+
nextCursor: string | null;
|
|
49797
|
+
totalPages: number;
|
|
49798
|
+
}>;
|
|
49799
|
+
type TriggersTypeListResponse = z.infer<typeof TriggersTypeListResponseSchema>;
|
|
49800
|
+
type TriggersTypeRetrieveResponse = z.infer<typeof TriggerTypeSchema>;
|
|
49658
49801
|
|
|
49659
49802
|
/**
|
|
49660
49803
|
* Trigger (Instance) class
|
|
@@ -51390,4 +51533,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
|
|
|
51390
51533
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
51391
51534
|
}
|
|
51392
51535
|
|
|
51393
|
-
export { type AgenticToolOptions, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, type BaseConnectionFields, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, type ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, type ConnectedAccountListParams, ConnectedAccountListParamsSchema, type ConnectedAccountListResponse, type ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, type ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, type ConnectedAccountStatus, type ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, type ConnectionData, ConnectionDataSchema, type ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, type ConnectionRequestState, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, type CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, type CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, type CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomCreateResponse, CustomCreateResponseSchema, type CustomCreateResponseValidated, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type FileDownloadData, type FileUploadData, type GenerateURLParams, GenerateURLParamsSchema, type GenerateURLResponse, GenerateURLResponseSchema, type GenerateURLResponseValidated, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, type JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, type MCPAuthOptions, MCPAuthOptionsSchema, type MCPCreateMethodResponse, type MCPGenerateURLParams, MCPGenerateURLParamsSchema, type MCPGetServerParams, MCPGetServerParamsSchema, type MCPInstanceParams, type MCPMultiAppServer, MCPMultiAppServerSchema, type MCPServer, type MCPServerCreateResponse, MCPServerCreateResponseSchema, type MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, type MCPServerUpdateParams, MCPServerUpdateParamsSchema, type MCPSingleAppServer, MCPSingleAppServerSchema, type MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, type McpDeleteResponse, McpDeleteResponseSchema, type McpListResponse, McpListResponseSchema, type McpRetrieveResponse, McpRetrieveResponseSchema, type McpServerCreateResponse, type McpServerGetResponse, type McpServerUrlInfo, type McpUpdateResponse, McpUpdateResponseSchema, type McpUrlResponse, type McpUrlResponseCamelCase, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, constants, createConnectionRequest, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
|
51536
|
+
export { type AgenticToolOptions, AuthConfigErrorCodes, type AuthConfigListParams, AuthConfigListParamsSchema, type AuthConfigListResponse, AuthConfigListResponseSchema, type AuthConfigRetrieveResponse, AuthConfigRetrieveResponseSchema, type AuthConfigType, AuthConfigTypes, type AuthConfigUpdateParams, AuthConfigUpdateParamsSchema, AuthCustomConfigUpdateParamsSchema, AuthDefaultConfigUpdateParamsSchema, AuthScheme, AuthSchemeEnum, type AuthSchemeType, AuthSchemeTypes, BaseAgenticProvider, type BaseComposioProvider, type BaseConnectionFields, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomCreateResponseSchema, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGenerateURLParamsSchema, ComposioGenerateURLResponseSchema, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioMcpDeleteResponseSchema, ComposioMcpListResponseSchema, ComposioMcpRetrieveResponseSchema, ComposioMcpUpdateResponseSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, type ConnectedAccountAuthConfig, ConnectedAccountAuthConfigSchema, ConnectedAccountErrorCodes, type ConnectedAccountListParams, ConnectedAccountListParamsSchema, type ConnectedAccountListResponse, type ConnectedAccountListResponseItem, ConnectedAccountListResponseSchema, type ConnectedAccountRetrieveResponse, ConnectedAccountRetrieveResponseSchema, type ConnectedAccountStatus, type ConnectedAccountStatusEnum, ConnectedAccountStatusSchema, ConnectedAccountStatuses, type ConnectionData, ConnectionDataSchema, type ConnectionRequest, ConnectionRequestErrorCodes, ConnectionRequestFailedError, type ConnectionRequestState, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, type CreateConnectedAccountOptions, CreateConnectedAccountOptionsSchema, type CreateConnectedAccountParams, CreateConnectedAccountParamsSchema, type CreateConnectedAccountResponse, CreateConnectedAccountResponseSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomCreateResponse, CustomCreateResponseSchema, type CustomCreateResponseValidated, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, DefaultCreateConnectedAccountParamsSchema, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type FileDownloadData, type FileUploadData, type GenerateURLParams, GenerateURLParamsSchema, type GenerateURLResponse, GenerateURLResponseSchema, type GenerateURLResponseValidated, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, type JSONSchemaProperty, JSONSchemaPropertySchema, JsonSchemaToZodError, MCP, type MCPAuthOptions, MCPAuthOptionsSchema, type MCPCreateMethodResponse, type MCPGenerateURLParams, MCPGenerateURLParamsSchema, type MCPGetServerParams, MCPGetServerParamsSchema, type MCPInstanceParams, type MCPMultiAppServer, MCPMultiAppServerSchema, type MCPServer, type MCPServerCreateResponse, MCPServerCreateResponseSchema, type MCPServerListResponse, MCPServerListResponseSchema, MCPServerSchema, type MCPServerUpdateParams, MCPServerUpdateParamsSchema, type MCPSingleAppServer, MCPSingleAppServerSchema, type MCPToolkitConfig, MCPToolkitConfigSchema, MCPToolkitConfigsArraySchema, type McpDeleteResponse, McpDeleteResponseSchema, type McpListResponse, McpListResponseSchema, type McpRetrieveResponse, McpRetrieveResponseSchema, type McpServerCreateResponse, type McpServerGetResponse, type McpServerUrlInfo, type McpUpdateResponse, McpUpdateResponseSchema, type McpUrlResponse, type McpUrlResponseCamelCase, type Oauth1ActiveConnectionData, Oauth1ActiveConnectionDataSchema, type Oauth1ConnectionData, Oauth1ConnectionDataSchema, type Oauth1ExpiredConnectionData, Oauth1ExpiredConnectionDataSchema, type Oauth1FailedConnectionData, Oauth1FailedConnectionDataSchema, type Oauth1InitiatedConnectionData, Oauth1InitiatedConnectionDataSchema, type Oauth1InitiatingConnectionData, Oauth1InitiatingConnectionDataSchema, type Oauth2ActiveConnectionData, Oauth2ActiveConnectionDataSchema, type Oauth2ConnectionData, Oauth2ConnectionDataSchema, type Oauth2ExpiredConnectionData, Oauth2ExpiredConnectionDataSchema, type Oauth2FailedConnectionData, Oauth2FailedConnectionDataSchema, type Oauth2InitiatedConnectionData, Oauth2InitiatedConnectionDataSchema, type Oauth2InitiatingConnectionData, Oauth2InitiatingConnectionDataSchema, OpenAIProvider, type Provider, type ProviderOptions, RedirectableAuthSchemeSchema, SDKErrorCodes, type Tool, ToolErrorCodes, type ToolExecuteParams, ToolExecuteParamsSchema, type ToolExecuteResponse, ToolExecuteResponseSchema, type ToolKitItem, ToolKitItemSchema, type ToolKitListResponse, ToolKitListResponseSchema, type ToolKitMeta, ToolKitMetaSchema, type ToolList, type ToolListParams, ToolListParamsSchema, type ToolListResponse, ToolListResponseSchema, type ToolOptions, type ToolProxyParams, ToolProxyParamsSchema, ToolSchema, type Toolkit, type ToolkitAuthConfigDetails, ToolkitAuthConfigDetailsSchema, type ToolkitAuthField, ToolkitAuthFieldSchema, type ToolkitAuthFieldsResponse, ToolkitAuthFieldsResponseSchema, type ToolkitCategory, ToolkitCategorySchema, ToolkitErrorCodes, type ToolkitListParams, type ToolkitMangedByEnum, ToolkitMangedByEnumSchema, type ToolkitRetrieveCategoriesResponse, ToolkitRetrieveCategoriesResponseSchema, type ToolkitRetrieveResponse, ToolkitRetrieveResponseSchema, ToolkitSchema, type ToolkitSortByEnum, ToolkitSortByEnumSchema, ToolkitsListParamsSchema, type TransformToolSchemaModifier, type TriggerData, type TriggerInstanceListActiveParams, TriggerInstanceListActiveParamsSchema, type TriggerInstanceListActiveResponse, type TriggerInstanceListActiveResponseItem, TriggerInstanceListActiveResponseItemSchema, TriggerInstanceListActiveResponseSchema, type TriggerInstanceManageDeleteResponse, TriggerInstanceManageDeleteResponseSchema, type TriggerInstanceManageUpdateParams, TriggerInstanceManageUpdateParamsSchema, type TriggerInstanceManageUpdateResponse, TriggerInstanceManageUpdateResponseSchema, type TriggerInstanceUpsertParams, TriggerInstanceUpsertParamsSchema, type TriggerInstanceUpsertResponse, TriggerInstanceUpsertResponseSchema, TriggerStatusEnum, type TriggerStatusType, TriggerStatuses, TriggerSubscribeParamSchema, type TriggerSubscribeParams, type TriggerType, TriggerTypeSchema, type TriggersTypeListParams, TriggersTypeListParamsSchema, type TriggersTypeListResponse, TriggersTypeListResponseSchema, type TriggersTypeRetrieveResponse, ValidationError, ValidationErrorCodes, type afterExecuteModifier, type beforeExecuteModifier, constants, createConnectionRequest, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|
package/dist/index.js
CHANGED
|
@@ -4098,6 +4098,29 @@ var IncomingTriggerPayloadSchema = z6.object({
|
|
|
4098
4098
|
})
|
|
4099
4099
|
})
|
|
4100
4100
|
});
|
|
4101
|
+
var TriggersTypeListParamsSchema = z6.object({
|
|
4102
|
+
cursor: z6.string().optional(),
|
|
4103
|
+
limit: z6.number().nullish(),
|
|
4104
|
+
toolkits: z6.array(z6.string()).nullish()
|
|
4105
|
+
});
|
|
4106
|
+
var TriggerTypeSchema = z6.object({
|
|
4107
|
+
slug: z6.string(),
|
|
4108
|
+
name: z6.string(),
|
|
4109
|
+
description: z6.string(),
|
|
4110
|
+
instructions: z6.string().optional(),
|
|
4111
|
+
toolkit: z6.object({
|
|
4112
|
+
logo: z6.string(),
|
|
4113
|
+
slug: z6.string(),
|
|
4114
|
+
name: z6.string()
|
|
4115
|
+
}),
|
|
4116
|
+
payload: z6.record(z6.unknown()),
|
|
4117
|
+
config: z6.record(z6.unknown())
|
|
4118
|
+
});
|
|
4119
|
+
var TriggersTypeListResponseSchema = z6.object({
|
|
4120
|
+
items: z6.array(TriggerTypeSchema),
|
|
4121
|
+
nextCursor: z6.string().nullable(),
|
|
4122
|
+
totalPages: z6.number()
|
|
4123
|
+
});
|
|
4101
4124
|
|
|
4102
4125
|
// src/services/internal/InternalService.types.ts
|
|
4103
4126
|
import { z as z7 } from "zod";
|
|
@@ -4368,6 +4391,29 @@ var PusherService = class {
|
|
|
4368
4391
|
}
|
|
4369
4392
|
};
|
|
4370
4393
|
|
|
4394
|
+
// src/utils/transform.ts
|
|
4395
|
+
function transform(raw) {
|
|
4396
|
+
return {
|
|
4397
|
+
with(schema) {
|
|
4398
|
+
return {
|
|
4399
|
+
using(transformer, options) {
|
|
4400
|
+
const transformed = transformer(raw);
|
|
4401
|
+
const result = schema.safeParse(transformed);
|
|
4402
|
+
if (!result.success) {
|
|
4403
|
+
throw new ValidationError(
|
|
4404
|
+
`Failed to transform${options?.label ? ` ${options.label}` : ""}`,
|
|
4405
|
+
{
|
|
4406
|
+
cause: result.error
|
|
4407
|
+
}
|
|
4408
|
+
);
|
|
4409
|
+
}
|
|
4410
|
+
return result.data;
|
|
4411
|
+
}
|
|
4412
|
+
};
|
|
4413
|
+
}
|
|
4414
|
+
};
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4371
4417
|
// src/models/Triggers.ts
|
|
4372
4418
|
var Triggers = class {
|
|
4373
4419
|
client;
|
|
@@ -4606,7 +4652,18 @@ var Triggers = class {
|
|
|
4606
4652
|
* @returns {Promise<TriggersTypeListResponse>} The list of trigger types
|
|
4607
4653
|
*/
|
|
4608
4654
|
async listTypes(query) {
|
|
4609
|
-
|
|
4655
|
+
const parsedQuery = transform(query ?? {}).with(TriggersTypeListParamsSchema).using((raw) => raw);
|
|
4656
|
+
const result = await this.client.triggersTypes.list({
|
|
4657
|
+
cursor: parsedQuery.cursor,
|
|
4658
|
+
limit: parsedQuery.limit,
|
|
4659
|
+
toolkit_slugs: parsedQuery.toolkits
|
|
4660
|
+
});
|
|
4661
|
+
const parsedResult = transform(result).with(TriggersTypeListResponseSchema).using((raw) => ({
|
|
4662
|
+
items: raw.items,
|
|
4663
|
+
nextCursor: raw.next_cursor,
|
|
4664
|
+
totalPages: raw.total_pages
|
|
4665
|
+
}));
|
|
4666
|
+
return parsedResult;
|
|
4610
4667
|
}
|
|
4611
4668
|
/**
|
|
4612
4669
|
* Retrieve a trigger type by its slug
|
|
@@ -4616,7 +4673,21 @@ var Triggers = class {
|
|
|
4616
4673
|
* @returns {Promise<TriggersTypeRetrieveResponse>} The trigger type object
|
|
4617
4674
|
*/
|
|
4618
4675
|
async getType(slug) {
|
|
4619
|
-
|
|
4676
|
+
const result = await this.client.triggersTypes.retrieve(slug);
|
|
4677
|
+
const parsedResult = transform(result).with(TriggerTypeSchema).using((raw) => ({
|
|
4678
|
+
slug: raw.slug,
|
|
4679
|
+
name: raw.name,
|
|
4680
|
+
description: raw.description,
|
|
4681
|
+
instructions: raw.instructions,
|
|
4682
|
+
toolkit: {
|
|
4683
|
+
logo: raw.toolkit.logo,
|
|
4684
|
+
slug: raw.toolkit.slug,
|
|
4685
|
+
name: raw.toolkit.name
|
|
4686
|
+
},
|
|
4687
|
+
payload: raw.payload,
|
|
4688
|
+
config: raw.config
|
|
4689
|
+
}));
|
|
4690
|
+
return parsedResult;
|
|
4620
4691
|
}
|
|
4621
4692
|
/**
|
|
4622
4693
|
* Fetches the list of all the available trigger enums
|
|
@@ -5976,7 +6047,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5976
6047
|
};
|
|
5977
6048
|
|
|
5978
6049
|
// package.json
|
|
5979
|
-
var version = "0.1.
|
|
6050
|
+
var version = "0.1.35";
|
|
5980
6051
|
|
|
5981
6052
|
// src/models/Files.ts
|
|
5982
6053
|
var Files = class {
|
|
@@ -6498,6 +6569,9 @@ export {
|
|
|
6498
6569
|
TriggerStatusEnum,
|
|
6499
6570
|
TriggerStatuses,
|
|
6500
6571
|
TriggerSubscribeParamSchema,
|
|
6572
|
+
TriggerTypeSchema,
|
|
6573
|
+
TriggersTypeListParamsSchema,
|
|
6574
|
+
TriggersTypeListResponseSchema,
|
|
6501
6575
|
ValidationError,
|
|
6502
6576
|
ValidationErrorCodes,
|
|
6503
6577
|
constants_exports as constants,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@composio/json-schema-to-zod": "0.1.9"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@composio/client": "0.1.0-alpha.
|
|
33
|
+
"@composio/client": "0.1.0-alpha.25",
|
|
34
34
|
"@composio/json-schema-to-zod": "0.1.9",
|
|
35
35
|
"@types/json-schema": "^7.0.15",
|
|
36
36
|
"chalk": "^5.4.1",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",
|
|
45
45
|
"scripts": {
|
|
46
|
+
"clean": "git clean -xdf node_modules",
|
|
46
47
|
"build": "tsup",
|
|
47
48
|
"test": "vitest run"
|
|
48
49
|
},
|