@composio/core 0.1.23 → 0.1.24

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 CHANGED
@@ -5007,7 +5007,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
5007
5007
  };
5008
5008
 
5009
5009
  // package.json
5010
- var version = "0.1.23";
5010
+ var version = "0.1.24";
5011
5011
 
5012
5012
  // src/composio.ts
5013
5013
  var Composio = class _Composio {
@@ -5236,11 +5236,12 @@ var AuthScheme = class {
5236
5236
  * Creates a ConnectionData object for Composio Link authentication
5237
5237
  * @returns ConnectionData object
5238
5238
  */
5239
- static ComposioLink() {
5239
+ static ComposioLink(params) {
5240
5240
  return {
5241
5241
  authScheme: AuthSchemeTypes.COMPOSIO_LINK,
5242
5242
  val: {
5243
- status: ConnectionStatuses.INITIALIZING
5243
+ status: ConnectionStatuses.INITIALIZING,
5244
+ ...params
5244
5245
  }
5245
5246
  };
5246
5247
  }
@@ -5254,7 +5255,7 @@ var AuthScheme = class {
5254
5255
  authScheme: AuthSchemeTypes.API_KEY,
5255
5256
  val: {
5256
5257
  status: ConnectionStatuses.ACTIVE,
5257
- api_key: params.api_key
5258
+ ...params
5258
5259
  }
5259
5260
  };
5260
5261
  }
@@ -5268,8 +5269,7 @@ var AuthScheme = class {
5268
5269
  authScheme: AuthSchemeTypes.BASIC,
5269
5270
  val: {
5270
5271
  status: ConnectionStatuses.ACTIVE,
5271
- username: params.username,
5272
- password: params.password
5272
+ ...params
5273
5273
  }
5274
5274
  };
5275
5275
  }
@@ -5283,7 +5283,7 @@ var AuthScheme = class {
5283
5283
  authScheme: AuthSchemeTypes.BEARER_TOKEN,
5284
5284
  val: {
5285
5285
  status: ConnectionStatuses.ACTIVE,
5286
- token: params.token
5286
+ ...params
5287
5287
  }
5288
5288
  };
5289
5289
  }
@@ -5297,7 +5297,7 @@ var AuthScheme = class {
5297
5297
  authScheme: AuthSchemeTypes.GOOGLE_SERVICE_ACCOUNT,
5298
5298
  val: {
5299
5299
  status: ConnectionStatuses.ACTIVE,
5300
- credentials_json: params.credentials_json
5300
+ ...params
5301
5301
  }
5302
5302
  };
5303
5303
  }
@@ -5305,11 +5305,12 @@ var AuthScheme = class {
5305
5305
  * Creates a ConnectionData object for No Auth authentication
5306
5306
  * @returns ConnectionData object
5307
5307
  */
5308
- static NoAuth() {
5308
+ static NoAuth(params) {
5309
5309
  return {
5310
5310
  authScheme: AuthSchemeTypes.NO_AUTH,
5311
5311
  val: {
5312
- status: ConnectionStatuses.ACTIVE
5312
+ status: ConnectionStatuses.ACTIVE,
5313
+ ...params
5313
5314
  }
5314
5315
  };
5315
5316
  }
@@ -5323,8 +5324,7 @@ var AuthScheme = class {
5323
5324
  authScheme: AuthSchemeTypes.BASIC_WITH_JWT,
5324
5325
  val: {
5325
5326
  status: ConnectionStatuses.ACTIVE,
5326
- username: params.username,
5327
- password: params.password
5327
+ ...params
5328
5328
  }
5329
5329
  };
5330
5330
  }
@@ -5332,11 +5332,12 @@ var AuthScheme = class {
5332
5332
  * Creates a ConnectionData object for Cal.com authentication
5333
5333
  * @returns ConnectionData object
5334
5334
  */
5335
- static CalcomAuth() {
5335
+ static CalcomAuth(params) {
5336
5336
  return {
5337
5337
  authScheme: AuthSchemeTypes.CALCOM_AUTH,
5338
5338
  val: {
5339
- status: ConnectionStatuses.ACTIVE
5339
+ status: ConnectionStatuses.ACTIVE,
5340
+ ...params
5340
5341
  }
5341
5342
  };
5342
5343
  }
@@ -5344,11 +5345,12 @@ var AuthScheme = class {
5344
5345
  * Creates a ConnectionData object for Snowflake authentication
5345
5346
  * @returns ConnectionData object
5346
5347
  */
5347
- static Snowflake() {
5348
+ static Snowflake(params) {
5348
5349
  return {
5349
5350
  authScheme: AuthSchemeTypes.SNOWFLAKE,
5350
5351
  val: {
5351
- status: ConnectionStatuses.ACTIVE
5352
+ status: ConnectionStatuses.ACTIVE,
5353
+ ...params
5352
5354
  }
5353
5355
  };
5354
5356
  }
@@ -5362,8 +5364,7 @@ var AuthScheme = class {
5362
5364
  authScheme: AuthSchemeTypes.BILLCOM_AUTH,
5363
5365
  val: {
5364
5366
  status: ConnectionStatuses.ACTIVE,
5365
- sessionId: params.sessionId,
5366
- devKey: params.devKey
5367
+ ...params
5367
5368
  }
5368
5369
  };
5369
5370
  }
package/dist/index.d.cts CHANGED
@@ -789,6 +789,77 @@ declare const ConnectionStatuses: {
789
789
  };
790
790
  type ConnectionStatusEnum = (typeof ConnectionStatuses)[keyof typeof ConnectionStatuses];
791
791
  declare const RedirectableAuthSchemeSchema: z.ZodEnum<["OAUTH1", "OAUTH2", "COMPOSIO_LINK"]>;
792
+ declare const BaseSchemeRaw: z.ZodObject<{
793
+ subdomain: z.ZodOptional<z.ZodString>;
794
+ "your-domain": z.ZodOptional<z.ZodString>;
795
+ region: z.ZodOptional<z.ZodString>;
796
+ shop: z.ZodOptional<z.ZodString>;
797
+ account_url: z.ZodOptional<z.ZodString>;
798
+ COMPANYDOMAIN: z.ZodOptional<z.ZodString>;
799
+ extension: z.ZodOptional<z.ZodString>;
800
+ form_api_base_url: z.ZodOptional<z.ZodString>;
801
+ instanceEndpoint: z.ZodOptional<z.ZodString>;
802
+ api_url: z.ZodOptional<z.ZodString>;
803
+ borneo_dashboard_url: z.ZodOptional<z.ZodString>;
804
+ proxy_username: z.ZodOptional<z.ZodString>;
805
+ proxy_password: z.ZodOptional<z.ZodString>;
806
+ domain: z.ZodOptional<z.ZodString>;
807
+ version: z.ZodOptional<z.ZodString>;
808
+ dc: z.ZodOptional<z.ZodString>;
809
+ site_name: z.ZodOptional<z.ZodString>;
810
+ instanceName: z.ZodOptional<z.ZodString>;
811
+ account_id: z.ZodOptional<z.ZodString>;
812
+ your_server: z.ZodOptional<z.ZodString>;
813
+ server_location: z.ZodOptional<z.ZodString>;
814
+ base_url: z.ZodOptional<z.ZodString>;
815
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
816
+ subdomain: z.ZodOptional<z.ZodString>;
817
+ "your-domain": z.ZodOptional<z.ZodString>;
818
+ region: z.ZodOptional<z.ZodString>;
819
+ shop: z.ZodOptional<z.ZodString>;
820
+ account_url: z.ZodOptional<z.ZodString>;
821
+ COMPANYDOMAIN: z.ZodOptional<z.ZodString>;
822
+ extension: z.ZodOptional<z.ZodString>;
823
+ form_api_base_url: z.ZodOptional<z.ZodString>;
824
+ instanceEndpoint: z.ZodOptional<z.ZodString>;
825
+ api_url: z.ZodOptional<z.ZodString>;
826
+ borneo_dashboard_url: z.ZodOptional<z.ZodString>;
827
+ proxy_username: z.ZodOptional<z.ZodString>;
828
+ proxy_password: z.ZodOptional<z.ZodString>;
829
+ domain: z.ZodOptional<z.ZodString>;
830
+ version: z.ZodOptional<z.ZodString>;
831
+ dc: z.ZodOptional<z.ZodString>;
832
+ site_name: z.ZodOptional<z.ZodString>;
833
+ instanceName: z.ZodOptional<z.ZodString>;
834
+ account_id: z.ZodOptional<z.ZodString>;
835
+ your_server: z.ZodOptional<z.ZodString>;
836
+ server_location: z.ZodOptional<z.ZodString>;
837
+ base_url: z.ZodOptional<z.ZodString>;
838
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
839
+ subdomain: z.ZodOptional<z.ZodString>;
840
+ "your-domain": z.ZodOptional<z.ZodString>;
841
+ region: z.ZodOptional<z.ZodString>;
842
+ shop: z.ZodOptional<z.ZodString>;
843
+ account_url: z.ZodOptional<z.ZodString>;
844
+ COMPANYDOMAIN: z.ZodOptional<z.ZodString>;
845
+ extension: z.ZodOptional<z.ZodString>;
846
+ form_api_base_url: z.ZodOptional<z.ZodString>;
847
+ instanceEndpoint: z.ZodOptional<z.ZodString>;
848
+ api_url: z.ZodOptional<z.ZodString>;
849
+ borneo_dashboard_url: z.ZodOptional<z.ZodString>;
850
+ proxy_username: z.ZodOptional<z.ZodString>;
851
+ proxy_password: z.ZodOptional<z.ZodString>;
852
+ domain: z.ZodOptional<z.ZodString>;
853
+ version: z.ZodOptional<z.ZodString>;
854
+ dc: z.ZodOptional<z.ZodString>;
855
+ site_name: z.ZodOptional<z.ZodString>;
856
+ instanceName: z.ZodOptional<z.ZodString>;
857
+ account_id: z.ZodOptional<z.ZodString>;
858
+ your_server: z.ZodOptional<z.ZodString>;
859
+ server_location: z.ZodOptional<z.ZodString>;
860
+ base_url: z.ZodOptional<z.ZodString>;
861
+ }, z.ZodUnknown, "strip">>;
862
+ type BaseConnectionFields = z.infer<typeof BaseSchemeRaw>;
792
863
  declare const Oauth2InitiatingConnectionDataSchema: z.ZodObject<{
793
864
  subdomain: z.ZodOptional<z.ZodString>;
794
865
  "your-domain": z.ZodOptional<z.ZodString>;
@@ -41732,7 +41803,7 @@ declare class AuthScheme {
41732
41803
  * @param params The OAuth2 parameters
41733
41804
  * @returns ConnectionData object
41734
41805
  */
41735
- static OAuth2(params: {
41806
+ static OAuth2(params: BaseConnectionFields & {
41736
41807
  access_token: string;
41737
41808
  token_type: string;
41738
41809
  id_token?: string;
@@ -41744,29 +41815,39 @@ declare class AuthScheme {
41744
41815
  access_token?: string;
41745
41816
  scope?: string;
41746
41817
  };
41818
+ code_verifier?: string;
41819
+ redirectUrl?: string;
41820
+ callback_url?: string;
41821
+ finalRedirectUri?: string;
41822
+ error?: string;
41823
+ error_description?: string;
41824
+ expired_at?: string;
41747
41825
  }): ConnectionData;
41748
41826
  /**
41749
41827
  * Creates a ConnectionData object for OAuth1 authentication
41750
41828
  * @param params The OAuth1 parameters
41751
41829
  * @returns ConnectionData object
41752
41830
  */
41753
- static OAuth1(params: {
41831
+ static OAuth1(params: BaseConnectionFields & {
41754
41832
  oauth_token: string;
41755
41833
  consumer_key?: string;
41756
41834
  redirectUrl?: string;
41757
41835
  callback_url?: string;
41836
+ error?: string;
41837
+ error_description?: string;
41838
+ expired_at?: string;
41758
41839
  }): ConnectionData;
41759
41840
  /**
41760
41841
  * Creates a ConnectionData object for Composio Link authentication
41761
41842
  * @returns ConnectionData object
41762
41843
  */
41763
- static ComposioLink(): ConnectionData;
41844
+ static ComposioLink(params: BaseConnectionFields): ConnectionData;
41764
41845
  /**
41765
41846
  * Creates a ConnectionData object for API Key authentication
41766
41847
  * @param params The API key parameters
41767
41848
  * @returns ConnectionData object
41768
41849
  */
41769
- static APIKey(params: {
41850
+ static APIKey(params: BaseConnectionFields & {
41770
41851
  api_key: string;
41771
41852
  }): ConnectionData;
41772
41853
  /**
@@ -41774,7 +41855,7 @@ declare class AuthScheme {
41774
41855
  * @param params The basic auth parameters
41775
41856
  * @returns ConnectionData object
41776
41857
  */
41777
- static Basic(params: {
41858
+ static Basic(params: BaseConnectionFields & {
41778
41859
  username: string;
41779
41860
  password: string;
41780
41861
  }): ConnectionData;
@@ -41783,7 +41864,7 @@ declare class AuthScheme {
41783
41864
  * @param params The bearer token parameters
41784
41865
  * @returns ConnectionData object
41785
41866
  */
41786
- static BearerToken(params: {
41867
+ static BearerToken(params: BaseConnectionFields & {
41787
41868
  token: string;
41788
41869
  }): ConnectionData;
41789
41870
  /**
@@ -41791,20 +41872,20 @@ declare class AuthScheme {
41791
41872
  * @param params The Google service account parameters
41792
41873
  * @returns ConnectionData object
41793
41874
  */
41794
- static GoogleServiceAccount(params: {
41875
+ static GoogleServiceAccount(params: BaseConnectionFields & {
41795
41876
  credentials_json: string;
41796
41877
  }): ConnectionData;
41797
41878
  /**
41798
41879
  * Creates a ConnectionData object for No Auth authentication
41799
41880
  * @returns ConnectionData object
41800
41881
  */
41801
- static NoAuth(): ConnectionData;
41882
+ static NoAuth(params: BaseConnectionFields): ConnectionData;
41802
41883
  /**
41803
41884
  * Creates a ConnectionData object for Basic with JWT authentication
41804
41885
  * @param params The basic with JWT parameters
41805
41886
  * @returns ConnectionData object
41806
41887
  */
41807
- static BasicWithJWT(params: {
41888
+ static BasicWithJWT(params: BaseConnectionFields & {
41808
41889
  username: string;
41809
41890
  password: string;
41810
41891
  }): ConnectionData;
@@ -41812,18 +41893,18 @@ declare class AuthScheme {
41812
41893
  * Creates a ConnectionData object for Cal.com authentication
41813
41894
  * @returns ConnectionData object
41814
41895
  */
41815
- static CalcomAuth(): ConnectionData;
41896
+ static CalcomAuth(params: BaseConnectionFields): ConnectionData;
41816
41897
  /**
41817
41898
  * Creates a ConnectionData object for Snowflake authentication
41818
41899
  * @returns ConnectionData object
41819
41900
  */
41820
- static Snowflake(): ConnectionData;
41901
+ static Snowflake(params: BaseConnectionFields): ConnectionData;
41821
41902
  /**
41822
41903
  * Creates a ConnectionData object for Bill.com authentication
41823
41904
  * @param params The Bill.com auth parameters
41824
41905
  * @returns ConnectionData object
41825
41906
  */
41826
- static BillcomAuth(params: {
41907
+ static BillcomAuth(params: BaseConnectionFields & {
41827
41908
  sessionId: string;
41828
41909
  devKey: string;
41829
41910
  }): ConnectionData;
@@ -42058,4 +42139,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
42058
42139
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
42059
42140
  }
42060
42141
 
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 };
42142
+ 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, 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 };
package/dist/index.d.ts CHANGED
@@ -789,6 +789,77 @@ declare const ConnectionStatuses: {
789
789
  };
790
790
  type ConnectionStatusEnum = (typeof ConnectionStatuses)[keyof typeof ConnectionStatuses];
791
791
  declare const RedirectableAuthSchemeSchema: z.ZodEnum<["OAUTH1", "OAUTH2", "COMPOSIO_LINK"]>;
792
+ declare const BaseSchemeRaw: z.ZodObject<{
793
+ subdomain: z.ZodOptional<z.ZodString>;
794
+ "your-domain": z.ZodOptional<z.ZodString>;
795
+ region: z.ZodOptional<z.ZodString>;
796
+ shop: z.ZodOptional<z.ZodString>;
797
+ account_url: z.ZodOptional<z.ZodString>;
798
+ COMPANYDOMAIN: z.ZodOptional<z.ZodString>;
799
+ extension: z.ZodOptional<z.ZodString>;
800
+ form_api_base_url: z.ZodOptional<z.ZodString>;
801
+ instanceEndpoint: z.ZodOptional<z.ZodString>;
802
+ api_url: z.ZodOptional<z.ZodString>;
803
+ borneo_dashboard_url: z.ZodOptional<z.ZodString>;
804
+ proxy_username: z.ZodOptional<z.ZodString>;
805
+ proxy_password: z.ZodOptional<z.ZodString>;
806
+ domain: z.ZodOptional<z.ZodString>;
807
+ version: z.ZodOptional<z.ZodString>;
808
+ dc: z.ZodOptional<z.ZodString>;
809
+ site_name: z.ZodOptional<z.ZodString>;
810
+ instanceName: z.ZodOptional<z.ZodString>;
811
+ account_id: z.ZodOptional<z.ZodString>;
812
+ your_server: z.ZodOptional<z.ZodString>;
813
+ server_location: z.ZodOptional<z.ZodString>;
814
+ base_url: z.ZodOptional<z.ZodString>;
815
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
816
+ subdomain: z.ZodOptional<z.ZodString>;
817
+ "your-domain": z.ZodOptional<z.ZodString>;
818
+ region: z.ZodOptional<z.ZodString>;
819
+ shop: z.ZodOptional<z.ZodString>;
820
+ account_url: z.ZodOptional<z.ZodString>;
821
+ COMPANYDOMAIN: z.ZodOptional<z.ZodString>;
822
+ extension: z.ZodOptional<z.ZodString>;
823
+ form_api_base_url: z.ZodOptional<z.ZodString>;
824
+ instanceEndpoint: z.ZodOptional<z.ZodString>;
825
+ api_url: z.ZodOptional<z.ZodString>;
826
+ borneo_dashboard_url: z.ZodOptional<z.ZodString>;
827
+ proxy_username: z.ZodOptional<z.ZodString>;
828
+ proxy_password: z.ZodOptional<z.ZodString>;
829
+ domain: z.ZodOptional<z.ZodString>;
830
+ version: z.ZodOptional<z.ZodString>;
831
+ dc: z.ZodOptional<z.ZodString>;
832
+ site_name: z.ZodOptional<z.ZodString>;
833
+ instanceName: z.ZodOptional<z.ZodString>;
834
+ account_id: z.ZodOptional<z.ZodString>;
835
+ your_server: z.ZodOptional<z.ZodString>;
836
+ server_location: z.ZodOptional<z.ZodString>;
837
+ base_url: z.ZodOptional<z.ZodString>;
838
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
839
+ subdomain: z.ZodOptional<z.ZodString>;
840
+ "your-domain": z.ZodOptional<z.ZodString>;
841
+ region: z.ZodOptional<z.ZodString>;
842
+ shop: z.ZodOptional<z.ZodString>;
843
+ account_url: z.ZodOptional<z.ZodString>;
844
+ COMPANYDOMAIN: z.ZodOptional<z.ZodString>;
845
+ extension: z.ZodOptional<z.ZodString>;
846
+ form_api_base_url: z.ZodOptional<z.ZodString>;
847
+ instanceEndpoint: z.ZodOptional<z.ZodString>;
848
+ api_url: z.ZodOptional<z.ZodString>;
849
+ borneo_dashboard_url: z.ZodOptional<z.ZodString>;
850
+ proxy_username: z.ZodOptional<z.ZodString>;
851
+ proxy_password: z.ZodOptional<z.ZodString>;
852
+ domain: z.ZodOptional<z.ZodString>;
853
+ version: z.ZodOptional<z.ZodString>;
854
+ dc: z.ZodOptional<z.ZodString>;
855
+ site_name: z.ZodOptional<z.ZodString>;
856
+ instanceName: z.ZodOptional<z.ZodString>;
857
+ account_id: z.ZodOptional<z.ZodString>;
858
+ your_server: z.ZodOptional<z.ZodString>;
859
+ server_location: z.ZodOptional<z.ZodString>;
860
+ base_url: z.ZodOptional<z.ZodString>;
861
+ }, z.ZodUnknown, "strip">>;
862
+ type BaseConnectionFields = z.infer<typeof BaseSchemeRaw>;
792
863
  declare const Oauth2InitiatingConnectionDataSchema: z.ZodObject<{
793
864
  subdomain: z.ZodOptional<z.ZodString>;
794
865
  "your-domain": z.ZodOptional<z.ZodString>;
@@ -41732,7 +41803,7 @@ declare class AuthScheme {
41732
41803
  * @param params The OAuth2 parameters
41733
41804
  * @returns ConnectionData object
41734
41805
  */
41735
- static OAuth2(params: {
41806
+ static OAuth2(params: BaseConnectionFields & {
41736
41807
  access_token: string;
41737
41808
  token_type: string;
41738
41809
  id_token?: string;
@@ -41744,29 +41815,39 @@ declare class AuthScheme {
41744
41815
  access_token?: string;
41745
41816
  scope?: string;
41746
41817
  };
41818
+ code_verifier?: string;
41819
+ redirectUrl?: string;
41820
+ callback_url?: string;
41821
+ finalRedirectUri?: string;
41822
+ error?: string;
41823
+ error_description?: string;
41824
+ expired_at?: string;
41747
41825
  }): ConnectionData;
41748
41826
  /**
41749
41827
  * Creates a ConnectionData object for OAuth1 authentication
41750
41828
  * @param params The OAuth1 parameters
41751
41829
  * @returns ConnectionData object
41752
41830
  */
41753
- static OAuth1(params: {
41831
+ static OAuth1(params: BaseConnectionFields & {
41754
41832
  oauth_token: string;
41755
41833
  consumer_key?: string;
41756
41834
  redirectUrl?: string;
41757
41835
  callback_url?: string;
41836
+ error?: string;
41837
+ error_description?: string;
41838
+ expired_at?: string;
41758
41839
  }): ConnectionData;
41759
41840
  /**
41760
41841
  * Creates a ConnectionData object for Composio Link authentication
41761
41842
  * @returns ConnectionData object
41762
41843
  */
41763
- static ComposioLink(): ConnectionData;
41844
+ static ComposioLink(params: BaseConnectionFields): ConnectionData;
41764
41845
  /**
41765
41846
  * Creates a ConnectionData object for API Key authentication
41766
41847
  * @param params The API key parameters
41767
41848
  * @returns ConnectionData object
41768
41849
  */
41769
- static APIKey(params: {
41850
+ static APIKey(params: BaseConnectionFields & {
41770
41851
  api_key: string;
41771
41852
  }): ConnectionData;
41772
41853
  /**
@@ -41774,7 +41855,7 @@ declare class AuthScheme {
41774
41855
  * @param params The basic auth parameters
41775
41856
  * @returns ConnectionData object
41776
41857
  */
41777
- static Basic(params: {
41858
+ static Basic(params: BaseConnectionFields & {
41778
41859
  username: string;
41779
41860
  password: string;
41780
41861
  }): ConnectionData;
@@ -41783,7 +41864,7 @@ declare class AuthScheme {
41783
41864
  * @param params The bearer token parameters
41784
41865
  * @returns ConnectionData object
41785
41866
  */
41786
- static BearerToken(params: {
41867
+ static BearerToken(params: BaseConnectionFields & {
41787
41868
  token: string;
41788
41869
  }): ConnectionData;
41789
41870
  /**
@@ -41791,20 +41872,20 @@ declare class AuthScheme {
41791
41872
  * @param params The Google service account parameters
41792
41873
  * @returns ConnectionData object
41793
41874
  */
41794
- static GoogleServiceAccount(params: {
41875
+ static GoogleServiceAccount(params: BaseConnectionFields & {
41795
41876
  credentials_json: string;
41796
41877
  }): ConnectionData;
41797
41878
  /**
41798
41879
  * Creates a ConnectionData object for No Auth authentication
41799
41880
  * @returns ConnectionData object
41800
41881
  */
41801
- static NoAuth(): ConnectionData;
41882
+ static NoAuth(params: BaseConnectionFields): ConnectionData;
41802
41883
  /**
41803
41884
  * Creates a ConnectionData object for Basic with JWT authentication
41804
41885
  * @param params The basic with JWT parameters
41805
41886
  * @returns ConnectionData object
41806
41887
  */
41807
- static BasicWithJWT(params: {
41888
+ static BasicWithJWT(params: BaseConnectionFields & {
41808
41889
  username: string;
41809
41890
  password: string;
41810
41891
  }): ConnectionData;
@@ -41812,18 +41893,18 @@ declare class AuthScheme {
41812
41893
  * Creates a ConnectionData object for Cal.com authentication
41813
41894
  * @returns ConnectionData object
41814
41895
  */
41815
- static CalcomAuth(): ConnectionData;
41896
+ static CalcomAuth(params: BaseConnectionFields): ConnectionData;
41816
41897
  /**
41817
41898
  * Creates a ConnectionData object for Snowflake authentication
41818
41899
  * @returns ConnectionData object
41819
41900
  */
41820
- static Snowflake(): ConnectionData;
41901
+ static Snowflake(params: BaseConnectionFields): ConnectionData;
41821
41902
  /**
41822
41903
  * Creates a ConnectionData object for Bill.com authentication
41823
41904
  * @param params The Bill.com auth parameters
41824
41905
  * @returns ConnectionData object
41825
41906
  */
41826
- static BillcomAuth(params: {
41907
+ static BillcomAuth(params: BaseConnectionFields & {
41827
41908
  sessionId: string;
41828
41909
  devKey: string;
41829
41910
  }): ConnectionData;
@@ -42058,4 +42139,4 @@ declare class ComposioNoAPIKeyError extends ComposioError {
42058
42139
  constructor(message?: string, options?: Omit<ComposioErrorOptions, 'code' | 'statusCode'>);
42059
42140
  }
42060
42141
 
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 };
42142
+ 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, 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 };
package/dist/index.js CHANGED
@@ -4879,7 +4879,7 @@ var OpenAIProvider = class extends BaseNonAgenticProvider {
4879
4879
  };
4880
4880
 
4881
4881
  // package.json
4882
- var version = "0.1.23";
4882
+ var version = "0.1.24";
4883
4883
 
4884
4884
  // src/composio.ts
4885
4885
  var Composio = class _Composio {
@@ -5108,11 +5108,12 @@ var AuthScheme = class {
5108
5108
  * Creates a ConnectionData object for Composio Link authentication
5109
5109
  * @returns ConnectionData object
5110
5110
  */
5111
- static ComposioLink() {
5111
+ static ComposioLink(params) {
5112
5112
  return {
5113
5113
  authScheme: AuthSchemeTypes.COMPOSIO_LINK,
5114
5114
  val: {
5115
- status: ConnectionStatuses.INITIALIZING
5115
+ status: ConnectionStatuses.INITIALIZING,
5116
+ ...params
5116
5117
  }
5117
5118
  };
5118
5119
  }
@@ -5126,7 +5127,7 @@ var AuthScheme = class {
5126
5127
  authScheme: AuthSchemeTypes.API_KEY,
5127
5128
  val: {
5128
5129
  status: ConnectionStatuses.ACTIVE,
5129
- api_key: params.api_key
5130
+ ...params
5130
5131
  }
5131
5132
  };
5132
5133
  }
@@ -5140,8 +5141,7 @@ var AuthScheme = class {
5140
5141
  authScheme: AuthSchemeTypes.BASIC,
5141
5142
  val: {
5142
5143
  status: ConnectionStatuses.ACTIVE,
5143
- username: params.username,
5144
- password: params.password
5144
+ ...params
5145
5145
  }
5146
5146
  };
5147
5147
  }
@@ -5155,7 +5155,7 @@ var AuthScheme = class {
5155
5155
  authScheme: AuthSchemeTypes.BEARER_TOKEN,
5156
5156
  val: {
5157
5157
  status: ConnectionStatuses.ACTIVE,
5158
- token: params.token
5158
+ ...params
5159
5159
  }
5160
5160
  };
5161
5161
  }
@@ -5169,7 +5169,7 @@ var AuthScheme = class {
5169
5169
  authScheme: AuthSchemeTypes.GOOGLE_SERVICE_ACCOUNT,
5170
5170
  val: {
5171
5171
  status: ConnectionStatuses.ACTIVE,
5172
- credentials_json: params.credentials_json
5172
+ ...params
5173
5173
  }
5174
5174
  };
5175
5175
  }
@@ -5177,11 +5177,12 @@ var AuthScheme = class {
5177
5177
  * Creates a ConnectionData object for No Auth authentication
5178
5178
  * @returns ConnectionData object
5179
5179
  */
5180
- static NoAuth() {
5180
+ static NoAuth(params) {
5181
5181
  return {
5182
5182
  authScheme: AuthSchemeTypes.NO_AUTH,
5183
5183
  val: {
5184
- status: ConnectionStatuses.ACTIVE
5184
+ status: ConnectionStatuses.ACTIVE,
5185
+ ...params
5185
5186
  }
5186
5187
  };
5187
5188
  }
@@ -5195,8 +5196,7 @@ var AuthScheme = class {
5195
5196
  authScheme: AuthSchemeTypes.BASIC_WITH_JWT,
5196
5197
  val: {
5197
5198
  status: ConnectionStatuses.ACTIVE,
5198
- username: params.username,
5199
- password: params.password
5199
+ ...params
5200
5200
  }
5201
5201
  };
5202
5202
  }
@@ -5204,11 +5204,12 @@ var AuthScheme = class {
5204
5204
  * Creates a ConnectionData object for Cal.com authentication
5205
5205
  * @returns ConnectionData object
5206
5206
  */
5207
- static CalcomAuth() {
5207
+ static CalcomAuth(params) {
5208
5208
  return {
5209
5209
  authScheme: AuthSchemeTypes.CALCOM_AUTH,
5210
5210
  val: {
5211
- status: ConnectionStatuses.ACTIVE
5211
+ status: ConnectionStatuses.ACTIVE,
5212
+ ...params
5212
5213
  }
5213
5214
  };
5214
5215
  }
@@ -5216,11 +5217,12 @@ var AuthScheme = class {
5216
5217
  * Creates a ConnectionData object for Snowflake authentication
5217
5218
  * @returns ConnectionData object
5218
5219
  */
5219
- static Snowflake() {
5220
+ static Snowflake(params) {
5220
5221
  return {
5221
5222
  authScheme: AuthSchemeTypes.SNOWFLAKE,
5222
5223
  val: {
5223
- status: ConnectionStatuses.ACTIVE
5224
+ status: ConnectionStatuses.ACTIVE,
5225
+ ...params
5224
5226
  }
5225
5227
  };
5226
5228
  }
@@ -5234,8 +5236,7 @@ var AuthScheme = class {
5234
5236
  authScheme: AuthSchemeTypes.BILLCOM_AUTH,
5235
5237
  val: {
5236
5238
  status: ConnectionStatuses.ACTIVE,
5237
- sessionId: params.sessionId,
5238
- devKey: params.devKey
5239
+ ...params
5239
5240
  }
5240
5241
  };
5241
5242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/core",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",