@composio/core 0.5.1 → 0.5.2
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/{fileUtils-CJjp8sBn.cjs → fileUtils-BbE-aKW0.cjs} +53 -1
- package/dist/{fileUtils-XEoNI39Q.mjs → fileUtils-BxTR8M_c.mjs} +53 -1
- package/dist/index.cjs +32 -2
- package/dist/index.d.cts +94 -66
- package/dist/index.d.mts +94 -66
- package/dist/index.mjs +32 -2
- package/dist/models/Files.node.cjs +1 -1
- package/dist/models/Files.node.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -566,17 +566,17 @@ declare const ToolListParamsSchema: z$1.ZodObject<{
|
|
|
566
566
|
}, "strip", z$1.ZodTypeAny, {
|
|
567
567
|
tags?: string[] | undefined;
|
|
568
568
|
scopes?: string[] | undefined;
|
|
569
|
+
limit?: number | undefined;
|
|
569
570
|
tools?: string[] | undefined;
|
|
570
571
|
toolkits?: string[] | undefined;
|
|
571
|
-
limit?: number | undefined;
|
|
572
572
|
search?: string | undefined;
|
|
573
573
|
authConfigIds?: string[] | undefined;
|
|
574
574
|
}, {
|
|
575
575
|
tags?: string[] | undefined;
|
|
576
576
|
scopes?: string[] | undefined;
|
|
577
|
+
limit?: number | undefined;
|
|
577
578
|
tools?: string[] | undefined;
|
|
578
579
|
toolkits?: string[] | undefined;
|
|
579
|
-
limit?: number | undefined;
|
|
580
580
|
search?: string | undefined;
|
|
581
581
|
authConfigIds?: string[] | undefined;
|
|
582
582
|
}>;
|
|
@@ -26617,10 +26617,10 @@ declare const McpRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
26617
26617
|
windsurf: string;
|
|
26618
26618
|
};
|
|
26619
26619
|
status?: string | undefined;
|
|
26620
|
+
createdAt?: string | undefined;
|
|
26620
26621
|
tools?: string[] | undefined;
|
|
26621
26622
|
toolkits?: string[] | undefined;
|
|
26622
26623
|
authConfigIds?: string[] | undefined;
|
|
26623
|
-
createdAt?: string | undefined;
|
|
26624
26624
|
updatedAt?: string | undefined;
|
|
26625
26625
|
managedAuthViaComposio?: boolean | undefined;
|
|
26626
26626
|
}, {
|
|
@@ -26633,10 +26633,10 @@ declare const McpRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
26633
26633
|
windsurf: string;
|
|
26634
26634
|
};
|
|
26635
26635
|
status?: string | undefined;
|
|
26636
|
+
createdAt?: string | undefined;
|
|
26636
26637
|
tools?: string[] | undefined;
|
|
26637
26638
|
toolkits?: string[] | undefined;
|
|
26638
26639
|
authConfigIds?: string[] | undefined;
|
|
26639
|
-
createdAt?: string | undefined;
|
|
26640
26640
|
updatedAt?: string | undefined;
|
|
26641
26641
|
managedAuthViaComposio?: boolean | undefined;
|
|
26642
26642
|
}>;
|
|
@@ -26706,17 +26706,17 @@ declare const McpUpdateResponseSchema: z$1.ZodObject<{
|
|
|
26706
26706
|
name: string;
|
|
26707
26707
|
id: string;
|
|
26708
26708
|
status?: string | undefined;
|
|
26709
|
+
createdAt?: string | undefined;
|
|
26709
26710
|
tools?: string[] | undefined;
|
|
26710
26711
|
toolkits?: string[] | undefined;
|
|
26711
|
-
createdAt?: string | undefined;
|
|
26712
26712
|
updatedAt?: string | undefined;
|
|
26713
26713
|
}, {
|
|
26714
26714
|
name: string;
|
|
26715
26715
|
id: string;
|
|
26716
26716
|
status?: string | undefined;
|
|
26717
|
+
createdAt?: string | undefined;
|
|
26717
26718
|
tools?: string[] | undefined;
|
|
26718
26719
|
toolkits?: string[] | undefined;
|
|
26719
|
-
createdAt?: string | undefined;
|
|
26720
26720
|
updatedAt?: string | undefined;
|
|
26721
26721
|
}>;
|
|
26722
26722
|
declare const ComposioMcpUpdateResponseSchema: z$1.ZodObject<{
|
|
@@ -27398,14 +27398,14 @@ declare const ToolkitsListParamsSchema: z$1.ZodObject<{
|
|
|
27398
27398
|
cursor: z$1.ZodOptional<z$1.ZodString>;
|
|
27399
27399
|
limit: z$1.ZodOptional<z$1.ZodNumber>;
|
|
27400
27400
|
}, "strip", z$1.ZodTypeAny, {
|
|
27401
|
-
limit?: number | undefined;
|
|
27402
27401
|
cursor?: string | undefined;
|
|
27402
|
+
limit?: number | undefined;
|
|
27403
27403
|
category?: string | undefined;
|
|
27404
27404
|
managedBy?: "all" | "composio" | "project" | undefined;
|
|
27405
27405
|
sortBy?: "usage" | "alphabetically" | undefined;
|
|
27406
27406
|
}, {
|
|
27407
|
-
limit?: number | undefined;
|
|
27408
27407
|
cursor?: string | undefined;
|
|
27408
|
+
limit?: number | undefined;
|
|
27409
27409
|
category?: string | undefined;
|
|
27410
27410
|
managedBy?: "all" | "composio" | "project" | undefined;
|
|
27411
27411
|
sortBy?: "usage" | "alphabetically" | undefined;
|
|
@@ -28691,12 +28691,12 @@ declare const CreateConnectedAccountResponseSchema: z$1.ZodObject<{
|
|
|
28691
28691
|
redirectUrl: z$1.ZodNullable<z$1.ZodString>;
|
|
28692
28692
|
}, "strip", z$1.ZodTypeAny, {
|
|
28693
28693
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
|
|
28694
|
-
redirectUrl: string | null;
|
|
28695
28694
|
id: string;
|
|
28695
|
+
redirectUrl: string | null;
|
|
28696
28696
|
}, {
|
|
28697
28697
|
status: "INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE";
|
|
28698
|
-
redirectUrl: string | null;
|
|
28699
28698
|
id: string;
|
|
28699
|
+
redirectUrl: string | null;
|
|
28700
28700
|
}>;
|
|
28701
28701
|
type CreateConnectedAccountResponse = z$1.infer<typeof CreateConnectedAccountResponseSchema>;
|
|
28702
28702
|
declare const ConnectedAccountAuthConfigSchema: z$1.ZodObject<{
|
|
@@ -28745,17 +28745,17 @@ declare const ConnectedAccountListParamsSchema: z$1.ZodObject<{
|
|
|
28745
28745
|
toolkitSlugs: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
28746
28746
|
userIds: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
28747
28747
|
}, "strip", z$1.ZodTypeAny, {
|
|
28748
|
+
cursor?: string | null | undefined;
|
|
28748
28749
|
limit?: number | null | undefined;
|
|
28749
28750
|
authConfigIds?: string[] | null | undefined;
|
|
28750
|
-
cursor?: string | null | undefined;
|
|
28751
28751
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
28752
28752
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
28753
28753
|
toolkitSlugs?: string[] | null | undefined;
|
|
28754
28754
|
userIds?: string[] | null | undefined;
|
|
28755
28755
|
}, {
|
|
28756
|
+
cursor?: string | null | undefined;
|
|
28756
28757
|
limit?: number | null | undefined;
|
|
28757
28758
|
authConfigIds?: string[] | null | undefined;
|
|
28758
|
-
cursor?: string | null | undefined;
|
|
28759
28759
|
orderBy?: "created_at" | "updated_at" | undefined;
|
|
28760
28760
|
statuses?: ("INITIALIZING" | "INITIATED" | "ACTIVE" | "FAILED" | "EXPIRED" | "INACTIVE")[] | null | undefined;
|
|
28761
28761
|
toolkitSlugs?: string[] | null | undefined;
|
|
@@ -28947,8 +28947,8 @@ declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
|
|
|
28947
28947
|
isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
28948
28948
|
}, "strip", z$1.ZodTypeAny, {
|
|
28949
28949
|
type: "use_custom_auth";
|
|
28950
|
-
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";
|
|
28951
28950
|
credentials: Record<string, string | number | boolean>;
|
|
28951
|
+
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";
|
|
28952
28952
|
name?: string | undefined;
|
|
28953
28953
|
proxyConfig?: {
|
|
28954
28954
|
proxyUrl: string;
|
|
@@ -28960,8 +28960,8 @@ declare const CreateCustomAuthConfigParamsSchema: z$1.ZodObject<{
|
|
|
28960
28960
|
isEnabledForToolRouter?: boolean | undefined;
|
|
28961
28961
|
}, {
|
|
28962
28962
|
type: "use_custom_auth";
|
|
28963
|
-
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";
|
|
28964
28963
|
credentials: Record<string, string | number | boolean>;
|
|
28964
|
+
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";
|
|
28965
28965
|
name?: string | undefined;
|
|
28966
28966
|
proxyConfig?: {
|
|
28967
28967
|
proxyUrl: string;
|
|
@@ -29044,8 +29044,8 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
|
|
|
29044
29044
|
isEnabledForToolRouter: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
29045
29045
|
}, "strip", z$1.ZodTypeAny, {
|
|
29046
29046
|
type: "use_custom_auth";
|
|
29047
|
-
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";
|
|
29048
29047
|
credentials: Record<string, string | number | boolean>;
|
|
29048
|
+
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";
|
|
29049
29049
|
name?: string | undefined;
|
|
29050
29050
|
proxyConfig?: {
|
|
29051
29051
|
proxyUrl: string;
|
|
@@ -29057,8 +29057,8 @@ declare const CreateAuthConfigParamsSchema: z$1.ZodDiscriminatedUnion<"type", [z
|
|
|
29057
29057
|
isEnabledForToolRouter?: boolean | undefined;
|
|
29058
29058
|
}, {
|
|
29059
29059
|
type: "use_custom_auth";
|
|
29060
|
-
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";
|
|
29061
29060
|
credentials: Record<string, string | number | boolean>;
|
|
29061
|
+
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";
|
|
29062
29062
|
name?: string | undefined;
|
|
29063
29063
|
proxyConfig?: {
|
|
29064
29064
|
proxyUrl: string;
|
|
@@ -29178,8 +29178,8 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
29178
29178
|
id: string;
|
|
29179
29179
|
noOfConnections: number;
|
|
29180
29180
|
uuid: string;
|
|
29181
|
-
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" | undefined;
|
|
29182
29181
|
credentials?: Record<string, unknown> | undefined;
|
|
29182
|
+
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" | undefined;
|
|
29183
29183
|
toolAccessConfig?: {
|
|
29184
29184
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
29185
29185
|
toolsAvailableForExecution?: string[] | undefined;
|
|
@@ -29201,8 +29201,8 @@ declare const AuthConfigRetrieveResponseSchema: z$1.ZodObject<{
|
|
|
29201
29201
|
id: string;
|
|
29202
29202
|
noOfConnections: number;
|
|
29203
29203
|
uuid: string;
|
|
29204
|
-
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" | undefined;
|
|
29205
29204
|
credentials?: Record<string, unknown> | undefined;
|
|
29205
|
+
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" | undefined;
|
|
29206
29206
|
toolAccessConfig?: {
|
|
29207
29207
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
29208
29208
|
toolsAvailableForExecution?: string[] | undefined;
|
|
@@ -29223,14 +29223,14 @@ declare const AuthConfigListParamsSchema: z$1.ZodObject<{
|
|
|
29223
29223
|
toolkit: z$1.ZodOptional<z$1.ZodString>;
|
|
29224
29224
|
}, "strip", z$1.ZodTypeAny, {
|
|
29225
29225
|
toolkit?: string | undefined;
|
|
29226
|
-
limit?: number | undefined;
|
|
29227
29226
|
isComposioManaged?: boolean | undefined;
|
|
29228
29227
|
cursor?: string | undefined;
|
|
29228
|
+
limit?: number | undefined;
|
|
29229
29229
|
}, {
|
|
29230
29230
|
toolkit?: string | undefined;
|
|
29231
|
-
limit?: number | undefined;
|
|
29232
29231
|
isComposioManaged?: boolean | undefined;
|
|
29233
29232
|
cursor?: string | undefined;
|
|
29233
|
+
limit?: number | undefined;
|
|
29234
29234
|
}>;
|
|
29235
29235
|
type AuthConfigListParams = z$1.infer<typeof AuthConfigListParamsSchema>;
|
|
29236
29236
|
declare const AuthConfigListResponseSchema: z$1.ZodObject<{
|
|
@@ -29282,8 +29282,8 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
|
|
|
29282
29282
|
id: string;
|
|
29283
29283
|
noOfConnections: number;
|
|
29284
29284
|
uuid: string;
|
|
29285
|
-
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" | undefined;
|
|
29286
29285
|
credentials?: Record<string, unknown> | undefined;
|
|
29286
|
+
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" | undefined;
|
|
29287
29287
|
toolAccessConfig?: {
|
|
29288
29288
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
29289
29289
|
toolsAvailableForExecution?: string[] | undefined;
|
|
@@ -29305,8 +29305,8 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
|
|
|
29305
29305
|
id: string;
|
|
29306
29306
|
noOfConnections: number;
|
|
29307
29307
|
uuid: string;
|
|
29308
|
-
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" | undefined;
|
|
29309
29308
|
credentials?: Record<string, unknown> | undefined;
|
|
29309
|
+
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" | undefined;
|
|
29310
29310
|
toolAccessConfig?: {
|
|
29311
29311
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
29312
29312
|
toolsAvailableForExecution?: string[] | undefined;
|
|
@@ -29332,8 +29332,8 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
|
|
|
29332
29332
|
id: string;
|
|
29333
29333
|
noOfConnections: number;
|
|
29334
29334
|
uuid: string;
|
|
29335
|
-
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" | undefined;
|
|
29336
29335
|
credentials?: Record<string, unknown> | undefined;
|
|
29336
|
+
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" | undefined;
|
|
29337
29337
|
toolAccessConfig?: {
|
|
29338
29338
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
29339
29339
|
toolsAvailableForExecution?: string[] | undefined;
|
|
@@ -29359,8 +29359,8 @@ declare const AuthConfigListResponseSchema: z$1.ZodObject<{
|
|
|
29359
29359
|
id: string;
|
|
29360
29360
|
noOfConnections: number;
|
|
29361
29361
|
uuid: string;
|
|
29362
|
-
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" | undefined;
|
|
29363
29362
|
credentials?: Record<string, unknown> | undefined;
|
|
29363
|
+
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" | undefined;
|
|
29364
29364
|
toolAccessConfig?: {
|
|
29365
29365
|
toolsForConnectedAccountCreation?: string[] | undefined;
|
|
29366
29366
|
toolsAvailableForExecution?: string[] | undefined;
|
|
@@ -29758,8 +29758,8 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
|
29758
29758
|
triggerData: z$1.ZodOptional<z$1.ZodString>;
|
|
29759
29759
|
uuid: z$1.ZodOptional<z$1.ZodString>;
|
|
29760
29760
|
}, "strip", z$1.ZodTypeAny, {
|
|
29761
|
-
connectedAccountId: string;
|
|
29762
29761
|
id: string;
|
|
29762
|
+
connectedAccountId: string;
|
|
29763
29763
|
updatedAt: string;
|
|
29764
29764
|
disabledAt: string | null;
|
|
29765
29765
|
state: Record<string, unknown>;
|
|
@@ -29768,8 +29768,8 @@ declare const TriggerInstanceListActiveResponseItemSchema: z$1.ZodObject<{
|
|
|
29768
29768
|
uuid?: string | undefined;
|
|
29769
29769
|
triggerData?: string | undefined;
|
|
29770
29770
|
}, {
|
|
29771
|
-
connectedAccountId: string;
|
|
29772
29771
|
id: string;
|
|
29772
|
+
connectedAccountId: string;
|
|
29773
29773
|
updatedAt: string;
|
|
29774
29774
|
disabledAt: string | null;
|
|
29775
29775
|
state: Record<string, unknown>;
|
|
@@ -29790,8 +29790,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
29790
29790
|
triggerData: z$1.ZodOptional<z$1.ZodString>;
|
|
29791
29791
|
uuid: z$1.ZodOptional<z$1.ZodString>;
|
|
29792
29792
|
}, "strip", z$1.ZodTypeAny, {
|
|
29793
|
-
connectedAccountId: string;
|
|
29794
29793
|
id: string;
|
|
29794
|
+
connectedAccountId: string;
|
|
29795
29795
|
updatedAt: string;
|
|
29796
29796
|
disabledAt: string | null;
|
|
29797
29797
|
state: Record<string, unknown>;
|
|
@@ -29800,8 +29800,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
29800
29800
|
uuid?: string | undefined;
|
|
29801
29801
|
triggerData?: string | undefined;
|
|
29802
29802
|
}, {
|
|
29803
|
-
connectedAccountId: string;
|
|
29804
29803
|
id: string;
|
|
29804
|
+
connectedAccountId: string;
|
|
29805
29805
|
updatedAt: string;
|
|
29806
29806
|
disabledAt: string | null;
|
|
29807
29807
|
state: Record<string, unknown>;
|
|
@@ -29814,8 +29814,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
29814
29814
|
totalPages: z$1.ZodNumber;
|
|
29815
29815
|
}, "strip", z$1.ZodTypeAny, {
|
|
29816
29816
|
items: {
|
|
29817
|
-
connectedAccountId: string;
|
|
29818
29817
|
id: string;
|
|
29818
|
+
connectedAccountId: string;
|
|
29819
29819
|
updatedAt: string;
|
|
29820
29820
|
disabledAt: string | null;
|
|
29821
29821
|
state: Record<string, unknown>;
|
|
@@ -29828,8 +29828,8 @@ declare const TriggerInstanceListActiveResponseSchema: z$1.ZodObject<{
|
|
|
29828
29828
|
totalPages: number;
|
|
29829
29829
|
}, {
|
|
29830
29830
|
items: {
|
|
29831
|
-
connectedAccountId: string;
|
|
29832
29831
|
id: string;
|
|
29832
|
+
connectedAccountId: string;
|
|
29833
29833
|
updatedAt: string;
|
|
29834
29834
|
disabledAt: string | null;
|
|
29835
29835
|
state: Record<string, unknown>;
|
|
@@ -29910,67 +29910,67 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
29910
29910
|
status: z$1.ZodEnum<["ACTIVE", "INACTIVE"]>;
|
|
29911
29911
|
}, "strip", z$1.ZodTypeAny, {
|
|
29912
29912
|
status: "ACTIVE" | "INACTIVE";
|
|
29913
|
-
userId: string;
|
|
29914
29913
|
id: string;
|
|
29915
29914
|
uuid: string;
|
|
29915
|
+
userId: string;
|
|
29916
29916
|
authConfigId: string;
|
|
29917
29917
|
authConfigUUID: string;
|
|
29918
29918
|
}, {
|
|
29919
29919
|
status: "ACTIVE" | "INACTIVE";
|
|
29920
|
-
userId: string;
|
|
29921
29920
|
id: string;
|
|
29922
29921
|
uuid: string;
|
|
29922
|
+
userId: string;
|
|
29923
29923
|
authConfigId: string;
|
|
29924
29924
|
authConfigUUID: string;
|
|
29925
29925
|
}>;
|
|
29926
29926
|
}, "strip", z$1.ZodTypeAny, {
|
|
29927
|
-
toolkitSlug: string;
|
|
29928
29927
|
id: string;
|
|
29929
29928
|
uuid: string;
|
|
29929
|
+
toolkitSlug: string;
|
|
29930
29930
|
triggerSlug: string;
|
|
29931
29931
|
triggerConfig: Record<string, unknown>;
|
|
29932
29932
|
connectedAccount: {
|
|
29933
29933
|
status: "ACTIVE" | "INACTIVE";
|
|
29934
|
-
userId: string;
|
|
29935
29934
|
id: string;
|
|
29936
29935
|
uuid: string;
|
|
29936
|
+
userId: string;
|
|
29937
29937
|
authConfigId: string;
|
|
29938
29938
|
authConfigUUID: string;
|
|
29939
29939
|
};
|
|
29940
29940
|
triggerData?: string | undefined;
|
|
29941
29941
|
}, {
|
|
29942
|
-
toolkitSlug: string;
|
|
29943
29942
|
id: string;
|
|
29944
29943
|
uuid: string;
|
|
29944
|
+
toolkitSlug: string;
|
|
29945
29945
|
triggerSlug: string;
|
|
29946
29946
|
triggerConfig: Record<string, unknown>;
|
|
29947
29947
|
connectedAccount: {
|
|
29948
29948
|
status: "ACTIVE" | "INACTIVE";
|
|
29949
|
-
userId: string;
|
|
29950
29949
|
id: string;
|
|
29951
29950
|
uuid: string;
|
|
29951
|
+
userId: string;
|
|
29952
29952
|
authConfigId: string;
|
|
29953
29953
|
authConfigUUID: string;
|
|
29954
29954
|
};
|
|
29955
29955
|
triggerData?: string | undefined;
|
|
29956
29956
|
}>;
|
|
29957
29957
|
}, "strip", z$1.ZodTypeAny, {
|
|
29958
|
-
toolkitSlug: string;
|
|
29959
|
-
userId: string;
|
|
29960
29958
|
id: string;
|
|
29961
29959
|
uuid: string;
|
|
29960
|
+
toolkitSlug: string;
|
|
29961
|
+
userId: string;
|
|
29962
29962
|
triggerSlug: string;
|
|
29963
29963
|
metadata: {
|
|
29964
|
-
toolkitSlug: string;
|
|
29965
29964
|
id: string;
|
|
29966
29965
|
uuid: string;
|
|
29966
|
+
toolkitSlug: string;
|
|
29967
29967
|
triggerSlug: string;
|
|
29968
29968
|
triggerConfig: Record<string, unknown>;
|
|
29969
29969
|
connectedAccount: {
|
|
29970
29970
|
status: "ACTIVE" | "INACTIVE";
|
|
29971
|
-
userId: string;
|
|
29972
29971
|
id: string;
|
|
29973
29972
|
uuid: string;
|
|
29973
|
+
userId: string;
|
|
29974
29974
|
authConfigId: string;
|
|
29975
29975
|
authConfigUUID: string;
|
|
29976
29976
|
};
|
|
@@ -29979,22 +29979,22 @@ declare const IncomingTriggerPayloadSchema: z$1.ZodObject<{
|
|
|
29979
29979
|
payload?: Record<string, unknown> | undefined;
|
|
29980
29980
|
originalPayload?: Record<string, unknown> | undefined;
|
|
29981
29981
|
}, {
|
|
29982
|
-
toolkitSlug: string;
|
|
29983
|
-
userId: string;
|
|
29984
29982
|
id: string;
|
|
29985
29983
|
uuid: string;
|
|
29984
|
+
toolkitSlug: string;
|
|
29985
|
+
userId: string;
|
|
29986
29986
|
triggerSlug: string;
|
|
29987
29987
|
metadata: {
|
|
29988
|
-
toolkitSlug: string;
|
|
29989
29988
|
id: string;
|
|
29990
29989
|
uuid: string;
|
|
29990
|
+
toolkitSlug: string;
|
|
29991
29991
|
triggerSlug: string;
|
|
29992
29992
|
triggerConfig: Record<string, unknown>;
|
|
29993
29993
|
connectedAccount: {
|
|
29994
29994
|
status: "ACTIVE" | "INACTIVE";
|
|
29995
|
-
userId: string;
|
|
29996
29995
|
id: string;
|
|
29997
29996
|
uuid: string;
|
|
29997
|
+
userId: string;
|
|
29998
29998
|
authConfigId: string;
|
|
29999
29999
|
authConfigUUID: string;
|
|
30000
30000
|
};
|
|
@@ -30030,13 +30030,13 @@ declare const TriggersTypeListParamsSchema: z$1.ZodObject<{
|
|
|
30030
30030
|
limit: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodNumber>>;
|
|
30031
30031
|
toolkits: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodArray<z$1.ZodString, "many">>>;
|
|
30032
30032
|
}, "strip", z$1.ZodTypeAny, {
|
|
30033
|
-
toolkits?: string[] | null | undefined;
|
|
30034
|
-
limit?: number | null | undefined;
|
|
30035
30033
|
cursor?: string | undefined;
|
|
30036
|
-
}, {
|
|
30037
|
-
toolkits?: string[] | null | undefined;
|
|
30038
30034
|
limit?: number | null | undefined;
|
|
30035
|
+
toolkits?: string[] | null | undefined;
|
|
30036
|
+
}, {
|
|
30039
30037
|
cursor?: string | undefined;
|
|
30038
|
+
limit?: number | null | undefined;
|
|
30039
|
+
toolkits?: string[] | null | undefined;
|
|
30040
30040
|
}>;
|
|
30041
30041
|
type TriggersTypeListParams = z$1.infer<typeof TriggersTypeListParamsSchema>;
|
|
30042
30042
|
declare const TriggerTypeSchema: z$1.ZodObject<{
|
|
@@ -30301,8 +30301,8 @@ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
|
|
|
30301
30301
|
data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
30302
30302
|
}, "strip", z$1.ZodTypeAny, {
|
|
30303
30303
|
type: "composio.trigger.message";
|
|
30304
|
-
data: Record<string, unknown>;
|
|
30305
30304
|
id: string;
|
|
30305
|
+
data: Record<string, unknown>;
|
|
30306
30306
|
metadata: {
|
|
30307
30307
|
trigger_id: string;
|
|
30308
30308
|
log_id: string;
|
|
@@ -30314,8 +30314,8 @@ declare const WebhookPayloadV3Schema: z$1.ZodObject<{
|
|
|
30314
30314
|
timestamp: string;
|
|
30315
30315
|
}, {
|
|
30316
30316
|
type: "composio.trigger.message";
|
|
30317
|
-
data: Record<string, unknown>;
|
|
30318
30317
|
id: string;
|
|
30318
|
+
data: Record<string, unknown>;
|
|
30319
30319
|
metadata: {
|
|
30320
30320
|
trigger_id: string;
|
|
30321
30321
|
log_id: string;
|
|
@@ -30357,8 +30357,8 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
|
|
|
30357
30357
|
data: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
30358
30358
|
}, "strip", z$1.ZodTypeAny, {
|
|
30359
30359
|
type: "composio.trigger.message";
|
|
30360
|
-
data: Record<string, unknown>;
|
|
30361
30360
|
id: string;
|
|
30361
|
+
data: Record<string, unknown>;
|
|
30362
30362
|
metadata: {
|
|
30363
30363
|
trigger_id: string;
|
|
30364
30364
|
log_id: string;
|
|
@@ -30370,8 +30370,8 @@ declare const WebhookPayloadSchema: z$1.ZodUnion<[z$1.ZodObject<{
|
|
|
30370
30370
|
timestamp: string;
|
|
30371
30371
|
}, {
|
|
30372
30372
|
type: "composio.trigger.message";
|
|
30373
|
-
data: Record<string, unknown>;
|
|
30374
30373
|
id: string;
|
|
30374
|
+
data: Record<string, unknown>;
|
|
30375
30375
|
metadata: {
|
|
30376
30376
|
trigger_id: string;
|
|
30377
30377
|
log_id: string;
|
|
@@ -31185,16 +31185,16 @@ declare const MCPServerInstanceSchema: z.ZodObject<{
|
|
|
31185
31185
|
}, "strip", z.ZodTypeAny, {
|
|
31186
31186
|
name: string;
|
|
31187
31187
|
type: "streamable_http";
|
|
31188
|
-
userId: string;
|
|
31189
31188
|
id: string;
|
|
31189
|
+
userId: string;
|
|
31190
31190
|
allowedTools: string[];
|
|
31191
31191
|
url: string;
|
|
31192
31192
|
authConfigs: string[];
|
|
31193
31193
|
}, {
|
|
31194
31194
|
name: string;
|
|
31195
31195
|
type: "streamable_http";
|
|
31196
|
-
userId: string;
|
|
31197
31196
|
id: string;
|
|
31197
|
+
userId: string;
|
|
31198
31198
|
allowedTools: string[];
|
|
31199
31199
|
url: string;
|
|
31200
31200
|
authConfigs: string[];
|
|
@@ -31277,8 +31277,8 @@ declare const MCPConfigResponseSchema: z.ZodObject<{
|
|
|
31277
31277
|
MCPUrl: z.ZodString;
|
|
31278
31278
|
}, "strip", z.ZodTypeAny, {
|
|
31279
31279
|
name: string;
|
|
31280
|
-
authConfigIds: string[];
|
|
31281
31280
|
id: string;
|
|
31281
|
+
authConfigIds: string[];
|
|
31282
31282
|
allowedTools: string[];
|
|
31283
31283
|
commands: {
|
|
31284
31284
|
cursor: string;
|
|
@@ -31288,8 +31288,8 @@ declare const MCPConfigResponseSchema: z.ZodObject<{
|
|
|
31288
31288
|
MCPUrl: string;
|
|
31289
31289
|
}, {
|
|
31290
31290
|
name: string;
|
|
31291
|
-
authConfigIds: string[];
|
|
31292
31291
|
id: string;
|
|
31292
|
+
authConfigIds: string[];
|
|
31293
31293
|
allowedTools: string[];
|
|
31294
31294
|
commands: {
|
|
31295
31295
|
cursor: string;
|
|
@@ -31322,15 +31322,15 @@ declare const MCPListParamsSchema: z.ZodObject<{
|
|
|
31322
31322
|
authConfigs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
31323
31323
|
name: z.ZodOptional<z.ZodString>;
|
|
31324
31324
|
}, "strip", z.ZodTypeAny, {
|
|
31325
|
-
toolkits: string[];
|
|
31326
31325
|
limit: number;
|
|
31326
|
+
toolkits: string[];
|
|
31327
31327
|
page: number;
|
|
31328
31328
|
authConfigs: string[];
|
|
31329
31329
|
name?: string | undefined;
|
|
31330
31330
|
}, {
|
|
31331
31331
|
name?: string | undefined;
|
|
31332
|
-
toolkits?: string[] | undefined;
|
|
31333
31332
|
limit?: number | undefined;
|
|
31333
|
+
toolkits?: string[] | undefined;
|
|
31334
31334
|
page?: number | undefined;
|
|
31335
31335
|
authConfigs?: string[] | undefined;
|
|
31336
31336
|
}>;
|
|
@@ -31387,9 +31387,9 @@ declare const MCPItemSchema: z.ZodObject<{
|
|
|
31387
31387
|
toolkits: z.ZodArray<z.ZodString, "many">;
|
|
31388
31388
|
}, "strip", z.ZodTypeAny, {
|
|
31389
31389
|
name: string;
|
|
31390
|
+
id: string;
|
|
31390
31391
|
toolkits: string[];
|
|
31391
31392
|
authConfigIds: string[];
|
|
31392
|
-
id: string;
|
|
31393
31393
|
allowedTools: string[];
|
|
31394
31394
|
commands: {
|
|
31395
31395
|
cursor: string;
|
|
@@ -31401,9 +31401,9 @@ declare const MCPItemSchema: z.ZodObject<{
|
|
|
31401
31401
|
serverInstanceCount: number;
|
|
31402
31402
|
}, {
|
|
31403
31403
|
name: string;
|
|
31404
|
+
id: string;
|
|
31404
31405
|
toolkits: string[];
|
|
31405
31406
|
authConfigIds: string[];
|
|
31406
|
-
id: string;
|
|
31407
31407
|
allowedTools: string[];
|
|
31408
31408
|
commands: {
|
|
31409
31409
|
cursor: string;
|
|
@@ -31468,9 +31468,9 @@ declare const MCPListResponseSchema: z.ZodObject<{
|
|
|
31468
31468
|
toolkits: z.ZodArray<z.ZodString, "many">;
|
|
31469
31469
|
}, "strip", z.ZodTypeAny, {
|
|
31470
31470
|
name: string;
|
|
31471
|
+
id: string;
|
|
31471
31472
|
toolkits: string[];
|
|
31472
31473
|
authConfigIds: string[];
|
|
31473
|
-
id: string;
|
|
31474
31474
|
allowedTools: string[];
|
|
31475
31475
|
commands: {
|
|
31476
31476
|
cursor: string;
|
|
@@ -31482,9 +31482,9 @@ declare const MCPListResponseSchema: z.ZodObject<{
|
|
|
31482
31482
|
serverInstanceCount: number;
|
|
31483
31483
|
}, {
|
|
31484
31484
|
name: string;
|
|
31485
|
+
id: string;
|
|
31485
31486
|
toolkits: string[];
|
|
31486
31487
|
authConfigIds: string[];
|
|
31487
|
-
id: string;
|
|
31488
31488
|
allowedTools: string[];
|
|
31489
31489
|
commands: {
|
|
31490
31490
|
cursor: string;
|
|
@@ -31500,9 +31500,9 @@ declare const MCPListResponseSchema: z.ZodObject<{
|
|
|
31500
31500
|
}, "strip", z.ZodTypeAny, {
|
|
31501
31501
|
items: {
|
|
31502
31502
|
name: string;
|
|
31503
|
+
id: string;
|
|
31503
31504
|
toolkits: string[];
|
|
31504
31505
|
authConfigIds: string[];
|
|
31505
|
-
id: string;
|
|
31506
31506
|
allowedTools: string[];
|
|
31507
31507
|
commands: {
|
|
31508
31508
|
cursor: string;
|
|
@@ -31518,9 +31518,9 @@ declare const MCPListResponseSchema: z.ZodObject<{
|
|
|
31518
31518
|
}, {
|
|
31519
31519
|
items: {
|
|
31520
31520
|
name: string;
|
|
31521
|
+
id: string;
|
|
31521
31522
|
toolkits: string[];
|
|
31522
31523
|
authConfigIds: string[];
|
|
31523
|
-
id: string;
|
|
31524
31524
|
allowedTools: string[];
|
|
31525
31525
|
commands: {
|
|
31526
31526
|
cursor: string;
|
|
@@ -32683,15 +32683,15 @@ declare const ToolRouterToolkitsOptionsSchema: z.ZodObject<{
|
|
|
32683
32683
|
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
32684
32684
|
search: z.ZodOptional<z.ZodString>;
|
|
32685
32685
|
}, "strip", z.ZodTypeAny, {
|
|
32686
|
+
limit?: number | undefined;
|
|
32686
32687
|
nextCursor?: string | undefined;
|
|
32687
32688
|
toolkits?: string[] | undefined;
|
|
32688
|
-
limit?: number | undefined;
|
|
32689
32689
|
search?: string | undefined;
|
|
32690
32690
|
isConnected?: boolean | undefined;
|
|
32691
32691
|
}, {
|
|
32692
|
+
limit?: number | undefined;
|
|
32692
32693
|
nextCursor?: string | undefined;
|
|
32693
32694
|
toolkits?: string[] | undefined;
|
|
32694
|
-
limit?: number | undefined;
|
|
32695
32695
|
search?: string | undefined;
|
|
32696
32696
|
isConnected?: boolean | undefined;
|
|
32697
32697
|
}>;
|
|
@@ -33066,6 +33066,34 @@ declare class Composio<TProvider extends BaseComposioProvider<unknown, unknown,
|
|
|
33066
33066
|
createSession(options?: {
|
|
33067
33067
|
headers?: ComposioRequestHeaders;
|
|
33068
33068
|
}): Composio<TProvider>;
|
|
33069
|
+
/**
|
|
33070
|
+
* Flush any pending telemetry and wait for it to complete.
|
|
33071
|
+
*
|
|
33072
|
+
* In Node.js-compatible environments, telemetry is automatically flushed on process exit.
|
|
33073
|
+
* However, in environments like Cloudflare Workers that don't support process exit events,
|
|
33074
|
+
* you should call this method manually to ensure all telemetry is sent.
|
|
33075
|
+
*
|
|
33076
|
+
* @returns {Promise<void>} A promise that resolves when all pending telemetry has been sent.
|
|
33077
|
+
*
|
|
33078
|
+
* @example
|
|
33079
|
+
* ```typescript
|
|
33080
|
+
* // In a Cloudflare Worker, use ctx.waitUntil to ensure telemetry is flushed
|
|
33081
|
+
* export default {
|
|
33082
|
+
* async fetch(request: Request, env: Env, ctx: ExecutionContext) {
|
|
33083
|
+
* const composio = new Composio({ apiKey: env.COMPOSIO_API_KEY });
|
|
33084
|
+
*
|
|
33085
|
+
* // Do your work...
|
|
33086
|
+
* const result = await composio.tools.execute(...);
|
|
33087
|
+
*
|
|
33088
|
+
* // Ensure telemetry flushes before worker terminates
|
|
33089
|
+
* ctx.waitUntil(composio.flush());
|
|
33090
|
+
*
|
|
33091
|
+
* return new Response(JSON.stringify(result));
|
|
33092
|
+
* }
|
|
33093
|
+
* };
|
|
33094
|
+
* ```
|
|
33095
|
+
*/
|
|
33096
|
+
flush(): Promise<void>;
|
|
33069
33097
|
}
|
|
33070
33098
|
//#endregion
|
|
33071
33099
|
//#region src/provider/ComposioProvider.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-0j-ceAHr.mjs";
|
|
2
|
-
import { a as logger_default, c as DEFAULT_BASE_URL, d as constants_exports, f as getEnvVariable, i as ComposioError, l as IS_DEVELOPMENT_OR_CI, n as getFileDataAfterUploadingToS3, o as COMPOSIO_DIR, p as getEnvsWithPrefix, r as telemetry, s as COMPOSIO_LOG_LEVEL, t as downloadFileFromS3, u as USER_DATA_FILE_NAME } from "./fileUtils-
|
|
2
|
+
import { a as logger_default, c as DEFAULT_BASE_URL, d as constants_exports, f as getEnvVariable, i as ComposioError, l as IS_DEVELOPMENT_OR_CI, n as getFileDataAfterUploadingToS3, o as COMPOSIO_DIR, p as getEnvsWithPrefix, r as telemetry, s as COMPOSIO_LOG_LEVEL, t as downloadFileFromS3, u as USER_DATA_FILE_NAME } from "./fileUtils-BxTR8M_c.mjs";
|
|
3
3
|
import ComposioClient, { APIError } from "@composio/client";
|
|
4
4
|
import z, { ZodError, z as z$1 } from "zod/v3";
|
|
5
5
|
import * as zodToJsonSchema from "zod-to-json-schema";
|
|
@@ -5633,7 +5633,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
|
|
|
5633
5633
|
|
|
5634
5634
|
//#endregion
|
|
5635
5635
|
//#region package.json
|
|
5636
|
-
var version = "0.5.
|
|
5636
|
+
var version = "0.5.2";
|
|
5637
5637
|
|
|
5638
5638
|
//#endregion
|
|
5639
5639
|
//#region src/utils/session.ts
|
|
@@ -6254,6 +6254,36 @@ var Composio = class Composio {
|
|
|
6254
6254
|
defaultHeaders: sessionHeaders
|
|
6255
6255
|
});
|
|
6256
6256
|
}
|
|
6257
|
+
/**
|
|
6258
|
+
* Flush any pending telemetry and wait for it to complete.
|
|
6259
|
+
*
|
|
6260
|
+
* In Node.js-compatible environments, telemetry is automatically flushed on process exit.
|
|
6261
|
+
* However, in environments like Cloudflare Workers that don't support process exit events,
|
|
6262
|
+
* you should call this method manually to ensure all telemetry is sent.
|
|
6263
|
+
*
|
|
6264
|
+
* @returns {Promise<void>} A promise that resolves when all pending telemetry has been sent.
|
|
6265
|
+
*
|
|
6266
|
+
* @example
|
|
6267
|
+
* ```typescript
|
|
6268
|
+
* // In a Cloudflare Worker, use ctx.waitUntil to ensure telemetry is flushed
|
|
6269
|
+
* export default {
|
|
6270
|
+
* async fetch(request: Request, env: Env, ctx: ExecutionContext) {
|
|
6271
|
+
* const composio = new Composio({ apiKey: env.COMPOSIO_API_KEY });
|
|
6272
|
+
*
|
|
6273
|
+
* // Do your work...
|
|
6274
|
+
* const result = await composio.tools.execute(...);
|
|
6275
|
+
*
|
|
6276
|
+
* // Ensure telemetry flushes before worker terminates
|
|
6277
|
+
* ctx.waitUntil(composio.flush());
|
|
6278
|
+
*
|
|
6279
|
+
* return new Response(JSON.stringify(result));
|
|
6280
|
+
* }
|
|
6281
|
+
* };
|
|
6282
|
+
* ```
|
|
6283
|
+
*/
|
|
6284
|
+
async flush() {
|
|
6285
|
+
await telemetry.flush();
|
|
6286
|
+
}
|
|
6257
6287
|
};
|
|
6258
6288
|
|
|
6259
6289
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-0j-ceAHr.mjs";
|
|
2
|
-
import { n as getFileDataAfterUploadingToS3, r as telemetry, t as downloadFileFromS3 } from "../fileUtils-
|
|
2
|
+
import { n as getFileDataAfterUploadingToS3, r as telemetry, t as downloadFileFromS3 } from "../fileUtils-BxTR8M_c.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/models/Files.node.ts
|
|
5
5
|
var Files = class {
|