@composio/core 0.1.21 → 0.1.23
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 +226 -111
- package/dist/index.d.cts +52 -22
- package/dist/index.d.ts +52 -22
- package/dist/index.js +223 -110
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -502,21 +502,18 @@ declare const ToolListFilterByToolkitsSchema: z.ZodObject<{
|
|
|
502
502
|
cursor: z.ZodOptional<z.ZodString>;
|
|
503
503
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
504
504
|
search: z.ZodOptional<z.ZodString>;
|
|
505
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
506
505
|
}, "strip", z.ZodTypeAny, {
|
|
507
506
|
toolkits: string[];
|
|
508
507
|
important?: boolean | undefined;
|
|
509
508
|
cursor?: string | undefined;
|
|
510
509
|
limit?: number | undefined;
|
|
511
510
|
search?: string | undefined;
|
|
512
|
-
strict?: boolean | undefined;
|
|
513
511
|
}, {
|
|
514
512
|
toolkits: string[];
|
|
515
513
|
important?: boolean | undefined;
|
|
516
514
|
cursor?: string | undefined;
|
|
517
515
|
limit?: number | undefined;
|
|
518
516
|
search?: string | undefined;
|
|
519
|
-
strict?: boolean | undefined;
|
|
520
517
|
}>;
|
|
521
518
|
type ToolListFilterByToolkits = z.infer<typeof ToolListFilterByToolkitsSchema>;
|
|
522
519
|
declare const ToolListFilterBySearchSchema: z.ZodObject<{
|
|
@@ -524,19 +521,16 @@ declare const ToolListFilterBySearchSchema: z.ZodObject<{
|
|
|
524
521
|
toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
525
522
|
cursor: z.ZodOptional<z.ZodString>;
|
|
526
523
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
527
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
528
524
|
}, "strip", z.ZodTypeAny, {
|
|
529
525
|
search: string;
|
|
530
526
|
toolkits?: string[] | undefined;
|
|
531
527
|
cursor?: string | undefined;
|
|
532
528
|
limit?: number | undefined;
|
|
533
|
-
strict?: boolean | undefined;
|
|
534
529
|
}, {
|
|
535
530
|
search: string;
|
|
536
531
|
toolkits?: string[] | undefined;
|
|
537
532
|
cursor?: string | undefined;
|
|
538
533
|
limit?: number | undefined;
|
|
539
|
-
strict?: boolean | undefined;
|
|
540
534
|
}>;
|
|
541
535
|
type ToolListFilterBySearch = z.infer<typeof ToolListFilterBySearchSchema>;
|
|
542
536
|
type ToolsOnlyParams = {
|
|
@@ -546,7 +540,6 @@ type ToolsOnlyParams = {
|
|
|
546
540
|
cursor?: never;
|
|
547
541
|
limit?: never;
|
|
548
542
|
search?: never;
|
|
549
|
-
strict?: boolean;
|
|
550
543
|
};
|
|
551
544
|
type ToolkitsOnlyParams = {
|
|
552
545
|
tools?: never;
|
|
@@ -555,7 +548,6 @@ type ToolkitsOnlyParams = {
|
|
|
555
548
|
cursor?: string;
|
|
556
549
|
limit?: number;
|
|
557
550
|
search?: never;
|
|
558
|
-
strict?: boolean;
|
|
559
551
|
};
|
|
560
552
|
type ToolkitSearchOnlyParams = {
|
|
561
553
|
tools?: never;
|
|
@@ -564,7 +556,6 @@ type ToolkitSearchOnlyParams = {
|
|
|
564
556
|
cursor?: string;
|
|
565
557
|
limit?: number;
|
|
566
558
|
search?: string;
|
|
567
|
-
strict?: boolean;
|
|
568
559
|
};
|
|
569
560
|
/**
|
|
570
561
|
* ToolListParams is the parameters for the list of tools.
|
|
@@ -583,39 +574,33 @@ declare const ToolListParamsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
583
574
|
cursor: z.ZodOptional<z.ZodString>;
|
|
584
575
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
585
576
|
search: z.ZodOptional<z.ZodString>;
|
|
586
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
587
577
|
}, "strip", z.ZodTypeAny, {
|
|
588
578
|
toolkits: string[];
|
|
589
579
|
important?: boolean | undefined;
|
|
590
580
|
cursor?: string | undefined;
|
|
591
581
|
limit?: number | undefined;
|
|
592
582
|
search?: string | undefined;
|
|
593
|
-
strict?: boolean | undefined;
|
|
594
583
|
}, {
|
|
595
584
|
toolkits: string[];
|
|
596
585
|
important?: boolean | undefined;
|
|
597
586
|
cursor?: string | undefined;
|
|
598
587
|
limit?: number | undefined;
|
|
599
588
|
search?: string | undefined;
|
|
600
|
-
strict?: boolean | undefined;
|
|
601
589
|
}>, z.ZodObject<{
|
|
602
590
|
search: z.ZodString;
|
|
603
591
|
toolkits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
604
592
|
cursor: z.ZodOptional<z.ZodString>;
|
|
605
593
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
606
|
-
strict: z.ZodOptional<z.ZodBoolean>;
|
|
607
594
|
}, "strip", z.ZodTypeAny, {
|
|
608
595
|
search: string;
|
|
609
596
|
toolkits?: string[] | undefined;
|
|
610
597
|
cursor?: string | undefined;
|
|
611
598
|
limit?: number | undefined;
|
|
612
|
-
strict?: boolean | undefined;
|
|
613
599
|
}, {
|
|
614
600
|
search: string;
|
|
615
601
|
toolkits?: string[] | undefined;
|
|
616
602
|
cursor?: string | undefined;
|
|
617
603
|
limit?: number | undefined;
|
|
618
|
-
strict?: boolean | undefined;
|
|
619
604
|
}>]>;
|
|
620
605
|
/**
|
|
621
606
|
* CustomAuthParams is the parameters for the custom authentication.
|
|
@@ -11502,10 +11487,11 @@ declare const ConnectedAccountStatuses: {
|
|
|
11502
11487
|
readonly ACTIVE: "ACTIVE";
|
|
11503
11488
|
readonly FAILED: "FAILED";
|
|
11504
11489
|
readonly EXPIRED: "EXPIRED";
|
|
11490
|
+
readonly INACTIVE: "INACTIVE";
|
|
11505
11491
|
};
|
|
11506
11492
|
type ConnectedAccountStatus = (typeof ConnectedAccountStatuses)[keyof typeof ConnectedAccountStatuses];
|
|
11507
|
-
type CreateConnectedAccountOptions = z.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
11508
11493
|
declare const CreateConnectedAccountOptionsSchema: z.ZodObject<{
|
|
11494
|
+
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
11509
11495
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
11510
11496
|
config: z.ZodOptional<z.ZodDiscriminatedUnion<"authScheme", [z.ZodObject<{
|
|
11511
11497
|
authScheme: z.ZodLiteral<"OAUTH1">;
|
|
@@ -17578,6 +17564,7 @@ declare const CreateConnectedAccountOptionsSchema: z.ZodObject<{
|
|
|
17578
17564
|
}>]>>;
|
|
17579
17565
|
}, "strip", z.ZodTypeAny, {
|
|
17580
17566
|
callbackUrl?: string | undefined;
|
|
17567
|
+
allowMultiple?: boolean | undefined;
|
|
17581
17568
|
config?: {
|
|
17582
17569
|
authScheme: "OAUTH1";
|
|
17583
17570
|
val: z.objectOutputType<{
|
|
@@ -18809,6 +18796,7 @@ declare const CreateConnectedAccountOptionsSchema: z.ZodObject<{
|
|
|
18809
18796
|
} | undefined;
|
|
18810
18797
|
}, {
|
|
18811
18798
|
callbackUrl?: string | undefined;
|
|
18799
|
+
allowMultiple?: boolean | undefined;
|
|
18812
18800
|
config?: {
|
|
18813
18801
|
authScheme: "OAUTH1";
|
|
18814
18802
|
val: z.objectInputType<{
|
|
@@ -20039,7 +20027,7 @@ declare const CreateConnectedAccountOptionsSchema: z.ZodObject<{
|
|
|
20039
20027
|
}, z.ZodUnknown, "strip">;
|
|
20040
20028
|
} | undefined;
|
|
20041
20029
|
}>;
|
|
20042
|
-
type
|
|
20030
|
+
type CreateConnectedAccountOptions = z.infer<typeof CreateConnectedAccountOptionsSchema>;
|
|
20043
20031
|
declare const ConnectedAccountRetrieveResponseSchema: z.ZodObject<{
|
|
20044
20032
|
id: z.ZodString;
|
|
20045
20033
|
authConfig: z.ZodObject<{
|
|
@@ -39941,6 +39929,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
39941
39929
|
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>>;
|
|
39942
39930
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39943
39931
|
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
39932
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39944
39933
|
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
39945
39934
|
createdBy: z.ZodOptional<z.ZodString>;
|
|
39946
39935
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -39957,6 +39946,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
39957
39946
|
uuid: string;
|
|
39958
39947
|
credentials?: Record<string, unknown> | undefined;
|
|
39959
39948
|
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
39949
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39960
39950
|
isComposioManaged?: boolean | undefined;
|
|
39961
39951
|
expectedInputFields?: unknown[] | undefined;
|
|
39962
39952
|
createdBy?: string | undefined;
|
|
@@ -39974,6 +39964,7 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
|
|
|
39974
39964
|
uuid: string;
|
|
39975
39965
|
credentials?: Record<string, unknown> | undefined;
|
|
39976
39966
|
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
39967
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
39977
39968
|
isComposioManaged?: boolean | undefined;
|
|
39978
39969
|
expectedInputFields?: unknown[] | undefined;
|
|
39979
39970
|
createdBy?: string | undefined;
|
|
@@ -40018,6 +40009,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
40018
40009
|
authScheme: z.ZodOptional<z.ZodEnum<["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>>;
|
|
40019
40010
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40020
40011
|
expectedInputFields: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
40012
|
+
restrictToFollowingTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40021
40013
|
isComposioManaged: z.ZodOptional<z.ZodBoolean>;
|
|
40022
40014
|
createdBy: z.ZodOptional<z.ZodString>;
|
|
40023
40015
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -40034,6 +40026,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
40034
40026
|
uuid: string;
|
|
40035
40027
|
credentials?: Record<string, unknown> | undefined;
|
|
40036
40028
|
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40029
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40037
40030
|
isComposioManaged?: boolean | undefined;
|
|
40038
40031
|
expectedInputFields?: unknown[] | undefined;
|
|
40039
40032
|
createdBy?: string | undefined;
|
|
@@ -40051,6 +40044,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
40051
40044
|
uuid: string;
|
|
40052
40045
|
credentials?: Record<string, unknown> | undefined;
|
|
40053
40046
|
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40047
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40054
40048
|
isComposioManaged?: boolean | undefined;
|
|
40055
40049
|
expectedInputFields?: unknown[] | undefined;
|
|
40056
40050
|
createdBy?: string | undefined;
|
|
@@ -40072,6 +40066,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
40072
40066
|
uuid: string;
|
|
40073
40067
|
credentials?: Record<string, unknown> | undefined;
|
|
40074
40068
|
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40069
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40075
40070
|
isComposioManaged?: boolean | undefined;
|
|
40076
40071
|
expectedInputFields?: unknown[] | undefined;
|
|
40077
40072
|
createdBy?: string | undefined;
|
|
@@ -40093,6 +40088,7 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
|
|
|
40093
40088
|
uuid: string;
|
|
40094
40089
|
credentials?: Record<string, unknown> | undefined;
|
|
40095
40090
|
authScheme?: "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
|
|
40091
|
+
restrictToFollowingTools?: string[] | undefined;
|
|
40096
40092
|
isComposioManaged?: boolean | undefined;
|
|
40097
40093
|
expectedInputFields?: unknown[] | undefined;
|
|
40098
40094
|
createdBy?: string | undefined;
|
|
@@ -40483,6 +40479,7 @@ declare const TriggerInstanceManageDeleteResponseSchema: z.ZodObject<{
|
|
|
40483
40479
|
type TriggerInstanceManageDeleteResponse = z.infer<typeof TriggerInstanceManageDeleteResponseSchema>;
|
|
40484
40480
|
declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
40485
40481
|
id: z.ZodString;
|
|
40482
|
+
uuid: z.ZodString;
|
|
40486
40483
|
triggerSlug: z.ZodString;
|
|
40487
40484
|
toolkitSlug: z.ZodString;
|
|
40488
40485
|
userId: z.ZodString;
|
|
@@ -40490,6 +40487,7 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40490
40487
|
originalPayload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40491
40488
|
metadata: z.ZodObject<{
|
|
40492
40489
|
id: z.ZodString;
|
|
40490
|
+
uuid: z.ZodString;
|
|
40493
40491
|
toolkitSlug: z.ZodString;
|
|
40494
40492
|
triggerSlug: z.ZodString;
|
|
40495
40493
|
triggerData: z.ZodOptional<z.ZodString>;
|
|
@@ -40518,6 +40516,7 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40518
40516
|
}>;
|
|
40519
40517
|
}, "strip", z.ZodTypeAny, {
|
|
40520
40518
|
id: string;
|
|
40519
|
+
uuid: string;
|
|
40521
40520
|
toolkitSlug: string;
|
|
40522
40521
|
triggerSlug: string;
|
|
40523
40522
|
triggerConfig: Record<string, unknown>;
|
|
@@ -40532,6 +40531,7 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40532
40531
|
triggerData?: string | undefined;
|
|
40533
40532
|
}, {
|
|
40534
40533
|
id: string;
|
|
40534
|
+
uuid: string;
|
|
40535
40535
|
toolkitSlug: string;
|
|
40536
40536
|
triggerSlug: string;
|
|
40537
40537
|
triggerConfig: Record<string, unknown>;
|
|
@@ -40548,8 +40548,10 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40548
40548
|
}, "strip", z.ZodTypeAny, {
|
|
40549
40549
|
userId: string;
|
|
40550
40550
|
id: string;
|
|
40551
|
+
uuid: string;
|
|
40551
40552
|
metadata: {
|
|
40552
40553
|
id: string;
|
|
40554
|
+
uuid: string;
|
|
40553
40555
|
toolkitSlug: string;
|
|
40554
40556
|
triggerSlug: string;
|
|
40555
40557
|
triggerConfig: Record<string, unknown>;
|
|
@@ -40570,8 +40572,10 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
|
|
|
40570
40572
|
}, {
|
|
40571
40573
|
userId: string;
|
|
40572
40574
|
id: string;
|
|
40575
|
+
uuid: string;
|
|
40573
40576
|
metadata: {
|
|
40574
40577
|
id: string;
|
|
40578
|
+
uuid: string;
|
|
40575
40579
|
toolkitSlug: string;
|
|
40576
40580
|
triggerSlug: string;
|
|
40577
40581
|
triggerConfig: Record<string, unknown>;
|
|
@@ -40598,6 +40602,7 @@ type TriggerData = {
|
|
|
40598
40602
|
originalPayload: Record<string, unknown>;
|
|
40599
40603
|
metadata: {
|
|
40600
40604
|
id: string;
|
|
40605
|
+
nanoId: string;
|
|
40601
40606
|
triggerName: string;
|
|
40602
40607
|
triggerData: string;
|
|
40603
40608
|
triggerConfig: Record<string, unknown>;
|
|
@@ -40647,13 +40652,15 @@ declare class Triggers {
|
|
|
40647
40652
|
*/
|
|
40648
40653
|
listActive(query?: TriggerInstanceListActiveParams): Promise<TriggerInstanceListActiveResponse>;
|
|
40649
40654
|
/**
|
|
40650
|
-
* Create a new trigger instance
|
|
40655
|
+
* Create a new trigger instance for a user
|
|
40656
|
+
* If the connected account id is not provided, the first connected account for the user and toolkit will be used
|
|
40651
40657
|
*
|
|
40658
|
+
* @param {string} userId - The user id of the trigger instance
|
|
40652
40659
|
* @param {string} slug - The slug of the trigger instance
|
|
40653
40660
|
* @param {TriggerInstanceUpsertParams} body - The parameters to create the trigger instance
|
|
40654
40661
|
* @returns {Promise<TriggerInstanceUpsertResponse>} The created trigger instance
|
|
40655
40662
|
*/
|
|
40656
|
-
create(slug: string, body
|
|
40663
|
+
create(userId: string, slug: string, body?: TriggerInstanceUpsertParams): Promise<TriggerInstanceUpsertResponse>;
|
|
40657
40664
|
/**
|
|
40658
40665
|
* Update an existing trigger instance
|
|
40659
40666
|
*
|
|
@@ -40710,6 +40717,12 @@ declare class Triggers {
|
|
|
40710
40717
|
* @returns
|
|
40711
40718
|
*/
|
|
40712
40719
|
listEnum(): Promise<TriggersTypeRetrieveEnumResponse>;
|
|
40720
|
+
/**
|
|
40721
|
+
* Applies compound filters to the trigger data
|
|
40722
|
+
* @param data data to apply filters to
|
|
40723
|
+
* @returns True if the trigger data matches the filters, false otherwise
|
|
40724
|
+
*/
|
|
40725
|
+
private shouldSendTriggerAfterFilters;
|
|
40713
40726
|
/**
|
|
40714
40727
|
* Subscribe to all the triggers
|
|
40715
40728
|
*
|
|
@@ -41657,6 +41670,19 @@ declare class ComposioProvider extends BaseNonAgenticProvider<Array<CustomTool>,
|
|
|
41657
41670
|
wrapTools(tools: Tool[]): CustomTool[];
|
|
41658
41671
|
}
|
|
41659
41672
|
|
|
41673
|
+
/**
|
|
41674
|
+
* Removes all non-required properties from the schema
|
|
41675
|
+
*
|
|
41676
|
+
* if no items are required, the schema is returned as is
|
|
41677
|
+
* @param schema - The JSON schema to remove non-required properties from
|
|
41678
|
+
* @returns The JSON schema with all non-required properties removed
|
|
41679
|
+
*/
|
|
41680
|
+
declare const removeNonRequiredProperties: <T extends {
|
|
41681
|
+
type: "object";
|
|
41682
|
+
properties: Record<string, unknown>;
|
|
41683
|
+
required?: string[];
|
|
41684
|
+
additionalProperties?: boolean;
|
|
41685
|
+
}>(schema: T) => T;
|
|
41660
41686
|
/**
|
|
41661
41687
|
* Convert a JSON schema to a Zod schema
|
|
41662
41688
|
* @param jsonSchema - The JSON schema to convert
|
|
@@ -41696,9 +41722,9 @@ declare class ComposioProvider extends BaseNonAgenticProvider<Array<CustomTool>,
|
|
|
41696
41722
|
* // })
|
|
41697
41723
|
* ```
|
|
41698
41724
|
*/
|
|
41699
|
-
declare function jsonSchemaToZodSchema(jsonSchema: Record<string, unknown>, { strict }?: {
|
|
41725
|
+
declare function jsonSchemaToZodSchema<T extends z.ZodTypeAny>(jsonSchema: Record<string, unknown>, { strict }?: {
|
|
41700
41726
|
strict?: boolean;
|
|
41701
|
-
}):
|
|
41727
|
+
}): T;
|
|
41702
41728
|
|
|
41703
41729
|
declare class AuthScheme {
|
|
41704
41730
|
/**
|
|
@@ -41946,10 +41972,14 @@ declare class ComposioAuthConfigNotFoundError extends ComposioError {
|
|
|
41946
41972
|
|
|
41947
41973
|
declare const ConnectedAccountErrorCodes: {
|
|
41948
41974
|
readonly CONNECTED_ACCOUNT_NOT_FOUND: "CONNECTED_ACCOUNT_NOT_FOUND";
|
|
41975
|
+
readonly MULTIPLE_CONNECTED_ACCOUNTS: "MULTIPLE_CONNECTED_ACCOUNTS";
|
|
41949
41976
|
};
|
|
41950
41977
|
declare class ComposioConnectedAccountNotFoundError extends ComposioError {
|
|
41951
41978
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
41952
41979
|
}
|
|
41980
|
+
declare class ComposioMultipleConnectedAccountsError extends ComposioError {
|
|
41981
|
+
constructor(message?: string);
|
|
41982
|
+
}
|
|
41953
41983
|
|
|
41954
41984
|
declare const ConnectionRequestErrorCodes: {
|
|
41955
41985
|
readonly CONNECTION_REQUEST_TIMEOUT: "CONNECTION_REQUEST_TIMEOUT";
|
|
@@ -42028,4 +42058,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
|
|
|
42028
42058
|
constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
|
|
42029
42059
|
}
|
|
42030
42060
|
|
|
42031
|
-
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, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ConnectedAccountErrorCodes, type ConnectionData, ConnectionDataSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, JsonSchemaToZodError, 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 ToolListFilterBySearch, ToolListFilterBySearchSchema, type ToolListFilterByToolkits, ToolListFilterByToolkitsSchema, type ToolListFilterByTools, ToolListFilterByToolsSchema, 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, jsonSchemaToZodSchema, logger };
|
|
42061
|
+
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, BaseNonAgenticProvider, BasicWithJwtConnectionDataSchema, BillcomAuthConnectionDataSchema, Composio, ComposioAuthConfigNotFoundError, ComposioConnectedAccountNotFoundError, ComposioCustomToolsNotInitializedError, ComposioError, type ComposioErrorOptions, ComposioGlobalExecuteToolFnNotSetError, ComposioInvalidExecuteFunctionError, ComposioInvalidModifierError, ComposioLinkConnectionDataSchema, ComposioMultipleConnectedAccountsError, ComposioNoAPIKeyError, ComposioProvider, ComposioProviderNotDefinedError, ComposioToolExecutionError, ComposioToolNotFoundError, ComposioToolkitFetchError, ComposioToolkitNotFoundError, ConnectedAccountErrorCodes, type ConnectionData, ConnectionDataSchema, ConnectionRequestErrorCodes, ConnectionRequestFailedError, ConnectionRequestTimeoutError, type ConnectionStatusEnum, ConnectionStatuses, type CreateAuthConfigParams, CreateAuthConfigParamsSchema, type CreateAuthConfigResponse, CreateAuthConfigResponseSchema, CreateComposioManagedAuthConfigParamsSchema, CreateCustomAuthConfigParamsSchema, type CustomAuthParams, CustomAuthParamsSchema, type CustomToolInputParameter, type CustomToolOptions, type CustomToolRegistry, type CustomToolRegistryItem, type ErrorHandleOptions, type ExecuteMetadata, type ExecuteToolFn, type ExecuteToolFnOptions, type ExecuteToolModifiers, type GlobalExecuteToolFn, type IncomingTriggerPayload, IncomingTriggerPayloadSchema, type InputParamsSchema, JsonSchemaToZodError, 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 ToolListFilterBySearch, ToolListFilterBySearchSchema, type ToolListFilterByToolkits, ToolListFilterByToolkitsSchema, type ToolListFilterByTools, ToolListFilterByToolsSchema, 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, jsonSchemaToZodSchema, logger, removeNonRequiredProperties };
|