@composio/core 0.1.12-alpha.15 → 0.1.12-alpha.16

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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import ComposioClient from '@composio/client';
2
- import { z, ZodObject, ZodString, ZodNumber, ZodBoolean, ZodOptional } from 'zod';
3
- import { ToolProxyParams, ToolProxyResponse, ToolRetrieveEnumResponse, ToolGetInputParams, ToolGetInputResponse } from '@composio/client/resources/tools';
2
+ import { z } from 'zod';
3
+ import { ToolProxyParams, ToolExecuteResponse as ToolExecuteResponse$1, ToolRetrieveEnumResponse, ToolGetInputParams, ToolGetInputResponse, ToolProxyResponse } from '@composio/client/resources/tools';
4
4
  import { TriggersTypeListParams, TriggersTypeListResponse, TriggersTypeRetrieveResponse, TriggersTypeRetrieveEnumResponse } from '@composio/client/resources/index';
5
5
  import { AuthConfigUpdateResponse, AuthConfigDeleteResponse, AuthConfigUpdateStatusResponse } from '@composio/client/resources/auth-configs';
6
6
  import { ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse$1, ConnectedAccountListResponse as ConnectedAccountListResponse$1, ConnectedAccountDeleteResponse, ConnectedAccountRefreshResponse, ConnectedAccountUpdateStatusParams, ConnectedAccountUpdateStatusResponse } from '@composio/client/resources/connected-accounts';
@@ -343,20 +343,22 @@ declare const ToolExecuteResponseSchema: z.ZodObject<{
343
343
  }>;
344
344
  type ToolExecuteResponse = z.infer<typeof ToolExecuteResponseSchema>;
345
345
 
346
- type CustomToolInputParameter = ZodObject<{
347
- [key: string]: ZodString | ZodNumber | ZodBoolean | ZodOptional<ZodString | ZodNumber | ZodBoolean>;
348
- }>;
349
- type CustomToolInput<T extends CustomToolInputParameter> = {
350
- [K in keyof z.infer<T>]: z.infer<T>[K];
351
- };
352
- interface CustomToolOptions<T extends CustomToolInputParameter = CustomToolInputParameter> {
353
- slug: string;
346
+ type BaseCustomToolOptions<T extends z.ZodType> = {
354
347
  name: string;
355
- toolkitSlug?: string | null;
356
348
  description?: string;
349
+ slug: string;
357
350
  inputParams: T;
358
- execute: (input: CustomToolInput<T>, authCredentials?: Record<string, unknown>, executeAppRequest?: (data: ToolProxyParams) => Promise<ToolProxyResponse>) => Promise<ToolExecuteResponse>;
359
- }
351
+ };
352
+ type ToolkitBasedExecute<T extends z.ZodType> = {
353
+ execute: (input: z.infer<T>, authCredentials: Record<string, unknown>, executeToolRequest: (data: ToolProxyParams) => Promise<ToolExecuteResponse$1>) => Promise<ToolExecuteResponse$1>;
354
+ toolkitSlug: string;
355
+ };
356
+ type StandaloneExecute<T extends z.ZodType> = {
357
+ execute: (input: z.infer<T>) => Promise<ToolExecuteResponse$1>;
358
+ toolkitSlug?: never;
359
+ };
360
+ type CustomToolOptions<T extends z.ZodType> = BaseCustomToolOptions<T> & (ToolkitBasedExecute<T> | StandaloneExecute<T>);
361
+ type CustomToolInputParameter = z.ZodType;
360
362
  interface ExecuteMetadata {
361
363
  userId: string;
362
364
  connectedAccountId?: string;
@@ -1039,31 +1041,41 @@ declare class Tools<TToolCollection, TTool, TProvider extends BaseComposioProvid
1039
1041
  *
1040
1042
  * @example
1041
1043
  * ```typescript
1042
- * const customTool = await composio.tools.createCustomTool({
1044
+ * // creating a custom tool with a toolkit
1045
+ * await composio.tools.createCustomTool({
1043
1046
  * name: 'My Custom Tool',
1044
1047
  * description: 'A custom tool that does something specific',
1045
1048
  * slug: 'MY_CUSTOM_TOOL',
1046
- * inputParameters: {
1047
- * param1: {
1048
- * type: 'string',
1049
- * description: 'First parameter',
1050
- * required: true
1051
- * }
1052
- * },
1053
- * outputParameters: {
1054
- * result: {
1055
- * type: 'string',
1056
- * description: 'The result of the operation'
1057
- * }
1058
- * },
1059
- * handler: async (params, context) => {
1049
+ * userId: 'default',
1050
+ * connectedAccountId: '123',
1051
+ * toolkitSlug: 'github',
1052
+ * inputParameters: z.object({
1053
+ * param1: z.string().describe('First parameter'),
1054
+ * }),
1055
+ * execute: async (input, authCredentials, executeToolRequest) => {
1060
1056
  * // Custom logic here
1061
1057
  * return { data: { result: 'Success!' } };
1062
1058
  * }
1063
1059
  * });
1064
1060
  * ```
1061
+ *
1062
+ * @example
1063
+ * ```typescript
1064
+ * // creating a custom tool without a toolkit
1065
+ * await composio.tools.createCustomTool({
1066
+ * name: 'My Custom Tool',
1067
+ * description: 'A custom tool that does something specific',
1068
+ * slug: 'MY_CUSTOM_TOOL',
1069
+ * inputParameters: z.object({
1070
+ * param1: z.string().describe('First parameter'),
1071
+ * }),
1072
+ * execute: async (input) => {
1073
+ * // Custom logic here
1074
+ * return { data: { result: 'Success!' } };
1075
+ * }
1076
+ * });
1065
1077
  */
1066
- createCustomTool(body: CustomToolOptions): Promise<Tool>;
1078
+ createCustomTool<T extends CustomToolInputParameter>(body: CustomToolOptions<T>): Promise<Tool>;
1067
1079
  }
1068
1080
 
1069
1081
  declare const ToolkitsListParamsSchema: z.ZodObject<{
@@ -1108,27 +1120,27 @@ declare const ToolKitListResponseSchema: z.ZodObject<{
1108
1120
  }, "strip", z.ZodTypeAny, {
1109
1121
  logo?: string | undefined;
1110
1122
  description?: string | undefined;
1123
+ createdAt?: string | undefined;
1124
+ updatedAt?: string | undefined;
1111
1125
  categories?: {
1112
1126
  slug: string;
1113
1127
  name: string;
1114
1128
  }[] | undefined;
1115
1129
  appUrl?: string | undefined;
1116
- createdAt?: string | undefined;
1117
1130
  toolsCount?: number | undefined;
1118
1131
  triggersCount?: number | undefined;
1119
- updatedAt?: string | undefined;
1120
1132
  }, {
1121
1133
  logo?: string | undefined;
1122
1134
  description?: string | undefined;
1135
+ createdAt?: string | undefined;
1136
+ updatedAt?: string | undefined;
1123
1137
  categories?: {
1124
1138
  slug: string;
1125
1139
  name: string;
1126
1140
  }[] | undefined;
1127
1141
  appUrl?: string | undefined;
1128
- createdAt?: string | undefined;
1129
1142
  toolsCount?: number | undefined;
1130
1143
  triggersCount?: number | undefined;
1131
- updatedAt?: string | undefined;
1132
1144
  }>;
1133
1145
  isLocalToolkit: z.ZodBoolean;
1134
1146
  authSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1140,15 +1152,15 @@ declare const ToolKitListResponseSchema: z.ZodObject<{
1140
1152
  meta: {
1141
1153
  logo?: string | undefined;
1142
1154
  description?: string | undefined;
1155
+ createdAt?: string | undefined;
1156
+ updatedAt?: string | undefined;
1143
1157
  categories?: {
1144
1158
  slug: string;
1145
1159
  name: string;
1146
1160
  }[] | undefined;
1147
1161
  appUrl?: string | undefined;
1148
- createdAt?: string | undefined;
1149
1162
  toolsCount?: number | undefined;
1150
1163
  triggersCount?: number | undefined;
1151
- updatedAt?: string | undefined;
1152
1164
  };
1153
1165
  isLocalToolkit: boolean;
1154
1166
  authSchemes?: string[] | undefined;
@@ -1160,15 +1172,15 @@ declare const ToolKitListResponseSchema: z.ZodObject<{
1160
1172
  meta: {
1161
1173
  logo?: string | undefined;
1162
1174
  description?: string | undefined;
1175
+ createdAt?: string | undefined;
1176
+ updatedAt?: string | undefined;
1163
1177
  categories?: {
1164
1178
  slug: string;
1165
1179
  name: string;
1166
1180
  }[] | undefined;
1167
1181
  appUrl?: string | undefined;
1168
- createdAt?: string | undefined;
1169
1182
  toolsCount?: number | undefined;
1170
1183
  triggersCount?: number | undefined;
1171
- updatedAt?: string | undefined;
1172
1184
  };
1173
1185
  isLocalToolkit: boolean;
1174
1186
  authSchemes?: string[] | undefined;
@@ -1184,15 +1196,15 @@ declare const ToolKitListResponseSchema: z.ZodObject<{
1184
1196
  meta: {
1185
1197
  logo?: string | undefined;
1186
1198
  description?: string | undefined;
1199
+ createdAt?: string | undefined;
1200
+ updatedAt?: string | undefined;
1187
1201
  categories?: {
1188
1202
  slug: string;
1189
1203
  name: string;
1190
1204
  }[] | undefined;
1191
1205
  appUrl?: string | undefined;
1192
- createdAt?: string | undefined;
1193
1206
  toolsCount?: number | undefined;
1194
1207
  triggersCount?: number | undefined;
1195
- updatedAt?: string | undefined;
1196
1208
  };
1197
1209
  isLocalToolkit: boolean;
1198
1210
  authSchemes?: string[] | undefined;
@@ -1208,15 +1220,15 @@ declare const ToolKitListResponseSchema: z.ZodObject<{
1208
1220
  meta: {
1209
1221
  logo?: string | undefined;
1210
1222
  description?: string | undefined;
1223
+ createdAt?: string | undefined;
1224
+ updatedAt?: string | undefined;
1211
1225
  categories?: {
1212
1226
  slug: string;
1213
1227
  name: string;
1214
1228
  }[] | undefined;
1215
1229
  appUrl?: string | undefined;
1216
- createdAt?: string | undefined;
1217
1230
  toolsCount?: number | undefined;
1218
1231
  triggersCount?: number | undefined;
1219
- updatedAt?: string | undefined;
1220
1232
  };
1221
1233
  isLocalToolkit: boolean;
1222
1234
  authSchemes?: string[] | undefined;
@@ -1251,27 +1263,27 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1251
1263
  }, "strip", z.ZodTypeAny, {
1252
1264
  logo?: string | undefined;
1253
1265
  description?: string | undefined;
1266
+ createdAt?: string | undefined;
1267
+ updatedAt?: string | undefined;
1254
1268
  categories?: {
1255
1269
  slug: string;
1256
1270
  name: string;
1257
1271
  }[] | undefined;
1258
1272
  appUrl?: string | undefined;
1259
- createdAt?: string | undefined;
1260
1273
  toolsCount?: number | undefined;
1261
1274
  triggersCount?: number | undefined;
1262
- updatedAt?: string | undefined;
1263
1275
  }, {
1264
1276
  logo?: string | undefined;
1265
1277
  description?: string | undefined;
1278
+ createdAt?: string | undefined;
1279
+ updatedAt?: string | undefined;
1266
1280
  categories?: {
1267
1281
  slug: string;
1268
1282
  name: string;
1269
1283
  }[] | undefined;
1270
1284
  appUrl?: string | undefined;
1271
- createdAt?: string | undefined;
1272
1285
  toolsCount?: number | undefined;
1273
1286
  triggersCount?: number | undefined;
1274
- updatedAt?: string | undefined;
1275
1287
  }>;
1276
1288
  isLocalToolkit: z.ZodBoolean;
1277
1289
  composioManagedAuthSchemes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1544,15 +1556,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1544
1556
  meta: {
1545
1557
  logo?: string | undefined;
1546
1558
  description?: string | undefined;
1559
+ createdAt?: string | undefined;
1560
+ updatedAt?: string | undefined;
1547
1561
  categories?: {
1548
1562
  slug: string;
1549
1563
  name: string;
1550
1564
  }[] | undefined;
1551
1565
  appUrl?: string | undefined;
1552
- createdAt?: string | undefined;
1553
1566
  toolsCount?: number | undefined;
1554
1567
  triggersCount?: number | undefined;
1555
- updatedAt?: string | undefined;
1556
1568
  };
1557
1569
  isLocalToolkit: boolean;
1558
1570
  composioManagedAuthSchemes?: string[] | undefined;
@@ -1599,15 +1611,15 @@ declare const ToolkitRetrieveResponseSchema: z.ZodObject<{
1599
1611
  meta: {
1600
1612
  logo?: string | undefined;
1601
1613
  description?: string | undefined;
1614
+ createdAt?: string | undefined;
1615
+ updatedAt?: string | undefined;
1602
1616
  categories?: {
1603
1617
  slug: string;
1604
1618
  name: string;
1605
1619
  }[] | undefined;
1606
1620
  appUrl?: string | undefined;
1607
- createdAt?: string | undefined;
1608
1621
  toolsCount?: number | undefined;
1609
1622
  triggersCount?: number | undefined;
1610
- updatedAt?: string | undefined;
1611
1623
  };
1612
1624
  isLocalToolkit: boolean;
1613
1625
  composioManagedAuthSchemes?: string[] | undefined;
@@ -1712,12 +1724,12 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodObject<{
1712
1724
  isDisabled: z.ZodBoolean;
1713
1725
  }, "strip", z.ZodTypeAny, {
1714
1726
  id: string;
1715
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1727
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1716
1728
  isComposioManaged: boolean;
1717
1729
  isDisabled: boolean;
1718
1730
  }, {
1719
1731
  id: string;
1720
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1732
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1721
1733
  isComposioManaged: boolean;
1722
1734
  isDisabled: boolean;
1723
1735
  }>;
@@ -1744,17 +1756,17 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodObject<{
1744
1756
  };
1745
1757
  userId: string;
1746
1758
  data: Record<string, unknown>;
1747
- createdAt: string;
1748
- updatedAt: string;
1749
- id: string;
1750
1759
  authConfig: {
1751
1760
  id: string;
1752
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1761
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1753
1762
  isComposioManaged: boolean;
1754
1763
  isDisabled: boolean;
1755
1764
  };
1765
+ id: string;
1756
1766
  isDisabled: boolean;
1757
1767
  statusReason: string | null;
1768
+ createdAt: string;
1769
+ updatedAt: string;
1758
1770
  params?: Record<string, unknown> | undefined;
1759
1771
  testRequestEndpoint?: string | undefined;
1760
1772
  }, {
@@ -1764,17 +1776,17 @@ declare const ConnectedAccountRetrieveResponseSchema: z.ZodObject<{
1764
1776
  };
1765
1777
  userId: string;
1766
1778
  data: Record<string, unknown>;
1767
- createdAt: string;
1768
- updatedAt: string;
1769
- id: string;
1770
1779
  authConfig: {
1771
1780
  id: string;
1772
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1781
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1773
1782
  isComposioManaged: boolean;
1774
1783
  isDisabled: boolean;
1775
1784
  };
1785
+ id: string;
1776
1786
  isDisabled: boolean;
1777
1787
  statusReason: string | null;
1788
+ createdAt: string;
1789
+ updatedAt: string;
1778
1790
  params?: Record<string, unknown> | undefined;
1779
1791
  testRequestEndpoint?: string | undefined;
1780
1792
  }>;
@@ -1818,12 +1830,12 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
1818
1830
  isDisabled: z.ZodBoolean;
1819
1831
  }, "strip", z.ZodTypeAny, {
1820
1832
  id: string;
1821
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1833
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1822
1834
  isComposioManaged: boolean;
1823
1835
  isDisabled: boolean;
1824
1836
  }, {
1825
1837
  id: string;
1826
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1838
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1827
1839
  isComposioManaged: boolean;
1828
1840
  isDisabled: boolean;
1829
1841
  }>;
@@ -1850,17 +1862,17 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
1850
1862
  };
1851
1863
  userId: string;
1852
1864
  data: Record<string, unknown>;
1853
- createdAt: string;
1854
- updatedAt: string;
1855
- id: string;
1856
1865
  authConfig: {
1857
1866
  id: string;
1858
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1867
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1859
1868
  isComposioManaged: boolean;
1860
1869
  isDisabled: boolean;
1861
1870
  };
1871
+ id: string;
1862
1872
  isDisabled: boolean;
1863
1873
  statusReason: string | null;
1874
+ createdAt: string;
1875
+ updatedAt: string;
1864
1876
  params?: Record<string, unknown> | undefined;
1865
1877
  testRequestEndpoint?: string | undefined;
1866
1878
  }, {
@@ -1870,17 +1882,17 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
1870
1882
  };
1871
1883
  userId: string;
1872
1884
  data: Record<string, unknown>;
1873
- createdAt: string;
1874
- updatedAt: string;
1875
- id: string;
1876
1885
  authConfig: {
1877
1886
  id: string;
1878
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1887
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1879
1888
  isComposioManaged: boolean;
1880
1889
  isDisabled: boolean;
1881
1890
  };
1891
+ id: string;
1882
1892
  isDisabled: boolean;
1883
1893
  statusReason: string | null;
1894
+ createdAt: string;
1895
+ updatedAt: string;
1884
1896
  params?: Record<string, unknown> | undefined;
1885
1897
  testRequestEndpoint?: string | undefined;
1886
1898
  }>, "many">;
@@ -1894,17 +1906,17 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
1894
1906
  };
1895
1907
  userId: string;
1896
1908
  data: Record<string, unknown>;
1897
- createdAt: string;
1898
- updatedAt: string;
1899
- id: string;
1900
1909
  authConfig: {
1901
1910
  id: string;
1902
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1911
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1903
1912
  isComposioManaged: boolean;
1904
1913
  isDisabled: boolean;
1905
1914
  };
1915
+ id: string;
1906
1916
  isDisabled: boolean;
1907
1917
  statusReason: string | null;
1918
+ createdAt: string;
1919
+ updatedAt: string;
1908
1920
  params?: Record<string, unknown> | undefined;
1909
1921
  testRequestEndpoint?: string | undefined;
1910
1922
  }[];
@@ -1918,17 +1930,17 @@ declare const ConnectedAccountListResponseSchema: z.ZodObject<{
1918
1930
  };
1919
1931
  userId: string;
1920
1932
  data: Record<string, unknown>;
1921
- createdAt: string;
1922
- updatedAt: string;
1923
- id: string;
1924
1933
  authConfig: {
1925
1934
  id: string;
1926
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1935
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
1927
1936
  isComposioManaged: boolean;
1928
1937
  isDisabled: boolean;
1929
1938
  };
1939
+ id: string;
1930
1940
  isDisabled: boolean;
1931
1941
  statusReason: string | null;
1942
+ createdAt: string;
1943
+ updatedAt: string;
1932
1944
  params?: Record<string, unknown> | undefined;
1933
1945
  testRequestEndpoint?: string | undefined;
1934
1946
  }[];
@@ -2172,8 +2184,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2172
2184
  uuid: z.ZodOptional<z.ZodString>;
2173
2185
  }, "strip", z.ZodTypeAny, {
2174
2186
  connectedAccountId: string;
2175
- updatedAt: string;
2176
2187
  id: string;
2188
+ updatedAt: string;
2177
2189
  disabledAt: string | null;
2178
2190
  state: Record<string, unknown>;
2179
2191
  triggerConfig: Record<string, unknown>;
@@ -2182,8 +2194,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2182
2194
  triggerData?: string | undefined;
2183
2195
  }, {
2184
2196
  connectedAccountId: string;
2185
- updatedAt: string;
2186
2197
  id: string;
2198
+ updatedAt: string;
2187
2199
  disabledAt: string | null;
2188
2200
  state: Record<string, unknown>;
2189
2201
  triggerConfig: Record<string, unknown>;
@@ -2196,8 +2208,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2196
2208
  }, "strip", z.ZodTypeAny, {
2197
2209
  items: {
2198
2210
  connectedAccountId: string;
2199
- updatedAt: string;
2200
2211
  id: string;
2212
+ updatedAt: string;
2201
2213
  disabledAt: string | null;
2202
2214
  state: Record<string, unknown>;
2203
2215
  triggerConfig: Record<string, unknown>;
@@ -2210,8 +2222,8 @@ declare const TriggerInstanceListActiveResponseSchema: z.ZodObject<{
2210
2222
  }, {
2211
2223
  items: {
2212
2224
  connectedAccountId: string;
2213
- updatedAt: string;
2214
2225
  id: string;
2226
+ updatedAt: string;
2215
2227
  disabledAt: string | null;
2216
2228
  state: Record<string, unknown>;
2217
2229
  triggerConfig: Record<string, unknown>;
@@ -2302,8 +2314,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2302
2314
  authConfigUUID: string;
2303
2315
  }>;
2304
2316
  }, "strip", z.ZodTypeAny, {
2305
- toolkitSlug: string;
2306
2317
  id: string;
2318
+ toolkitSlug: string;
2307
2319
  triggerSlug: string;
2308
2320
  triggerConfig: Record<string, unknown>;
2309
2321
  connectedAccount: {
@@ -2316,8 +2328,8 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2316
2328
  };
2317
2329
  triggerData?: string | undefined;
2318
2330
  }, {
2319
- toolkitSlug: string;
2320
2331
  id: string;
2332
+ toolkitSlug: string;
2321
2333
  triggerSlug: string;
2322
2334
  triggerConfig: Record<string, unknown>;
2323
2335
  connectedAccount: {
@@ -2332,12 +2344,12 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2332
2344
  }>;
2333
2345
  }, "strip", z.ZodTypeAny, {
2334
2346
  userId: string;
2335
- toolkitSlug: string;
2336
2347
  id: string;
2348
+ toolkitSlug: string;
2337
2349
  triggerSlug: string;
2338
2350
  metadata: {
2339
- toolkitSlug: string;
2340
2351
  id: string;
2352
+ toolkitSlug: string;
2341
2353
  triggerSlug: string;
2342
2354
  triggerConfig: Record<string, unknown>;
2343
2355
  connectedAccount: {
@@ -2354,12 +2366,12 @@ declare const IncomingTriggerPayloadSchema: z.ZodObject<{
2354
2366
  originalPayload?: Record<string, unknown> | undefined;
2355
2367
  }, {
2356
2368
  userId: string;
2357
- toolkitSlug: string;
2358
2369
  id: string;
2370
+ toolkitSlug: string;
2359
2371
  triggerSlug: string;
2360
2372
  metadata: {
2361
- toolkitSlug: string;
2362
2373
  id: string;
2374
+ toolkitSlug: string;
2363
2375
  triggerSlug: string;
2364
2376
  triggerConfig: Record<string, unknown>;
2365
2377
  connectedAccount: {
@@ -2538,13 +2550,13 @@ declare const CreateAuthConfigParamsSchema: z.ZodDiscriminatedUnion<"type", [z.Z
2538
2550
  authScheme: z.ZodEnum<["OAUTH2", "OAUTH1", "OAUTH1A", "API_KEY", "BASIC", "BILLCOM_AUTH", "BEARER_TOKEN", "GOOGLE_SERVICE_ACCOUNT", "NO_AUTH", "BASIC_WITH_JWT", "COMPOSIO_LINK", "CALCOM_AUTH", "SNOWFLAKE"]>;
2539
2551
  }, "strip", z.ZodTypeAny, {
2540
2552
  type: "use_custom_auth";
2553
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
2541
2554
  credentials: Record<string, string | number | boolean>;
2542
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
2543
2555
  name?: string | undefined;
2544
2556
  }, {
2545
2557
  type: "use_custom_auth";
2558
+ authScheme: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
2546
2559
  credentials: Record<string, string | number | boolean>;
2547
- authScheme: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE";
2548
2560
  name?: string | undefined;
2549
2561
  }>, z.ZodObject<{
2550
2562
  type: z.ZodLiteral<"use_composio_managed_auth">;
@@ -2610,10 +2622,10 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2610
2622
  id: string;
2611
2623
  noOfConnections: number;
2612
2624
  uuid: string;
2625
+ authScheme?: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2626
+ isComposioManaged?: boolean | undefined;
2613
2627
  createdAt?: string | undefined;
2614
2628
  credentials?: Record<string, unknown> | undefined;
2615
- authScheme?: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2616
- isComposioManaged?: boolean | undefined;
2617
2629
  expectedInputFields?: unknown[] | undefined;
2618
2630
  createdBy?: string | undefined;
2619
2631
  lastUpdatedAt?: string | undefined;
@@ -2627,10 +2639,10 @@ declare const AuthConfigRetrieveResponseSchema: z.ZodObject<{
2627
2639
  id: string;
2628
2640
  noOfConnections: number;
2629
2641
  uuid: string;
2642
+ authScheme?: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2643
+ isComposioManaged?: boolean | undefined;
2630
2644
  createdAt?: string | undefined;
2631
2645
  credentials?: Record<string, unknown> | undefined;
2632
- authScheme?: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2633
- isComposioManaged?: boolean | undefined;
2634
2646
  expectedInputFields?: unknown[] | undefined;
2635
2647
  createdBy?: string | undefined;
2636
2648
  lastUpdatedAt?: string | undefined;
@@ -2687,10 +2699,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2687
2699
  id: string;
2688
2700
  noOfConnections: number;
2689
2701
  uuid: string;
2702
+ authScheme?: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2703
+ isComposioManaged?: boolean | undefined;
2690
2704
  createdAt?: string | undefined;
2691
2705
  credentials?: Record<string, unknown> | undefined;
2692
- authScheme?: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2693
- isComposioManaged?: boolean | undefined;
2694
2706
  expectedInputFields?: unknown[] | undefined;
2695
2707
  createdBy?: string | undefined;
2696
2708
  lastUpdatedAt?: string | undefined;
@@ -2704,10 +2716,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2704
2716
  id: string;
2705
2717
  noOfConnections: number;
2706
2718
  uuid: string;
2719
+ authScheme?: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2720
+ isComposioManaged?: boolean | undefined;
2707
2721
  createdAt?: string | undefined;
2708
2722
  credentials?: Record<string, unknown> | undefined;
2709
- authScheme?: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2710
- isComposioManaged?: boolean | undefined;
2711
2723
  expectedInputFields?: unknown[] | undefined;
2712
2724
  createdBy?: string | undefined;
2713
2725
  lastUpdatedAt?: string | undefined;
@@ -2725,10 +2737,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2725
2737
  id: string;
2726
2738
  noOfConnections: number;
2727
2739
  uuid: string;
2740
+ authScheme?: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2741
+ isComposioManaged?: boolean | undefined;
2728
2742
  createdAt?: string | undefined;
2729
2743
  credentials?: Record<string, unknown> | undefined;
2730
- authScheme?: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2731
- isComposioManaged?: boolean | undefined;
2732
2744
  expectedInputFields?: unknown[] | undefined;
2733
2745
  createdBy?: string | undefined;
2734
2746
  lastUpdatedAt?: string | undefined;
@@ -2746,10 +2758,10 @@ declare const AuthConfigListResponseSchema: z.ZodObject<{
2746
2758
  id: string;
2747
2759
  noOfConnections: number;
2748
2760
  uuid: string;
2761
+ authScheme?: "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "NO_AUTH" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2762
+ isComposioManaged?: boolean | undefined;
2749
2763
  createdAt?: string | undefined;
2750
2764
  credentials?: Record<string, unknown> | undefined;
2751
- authScheme?: "NO_AUTH" | "OAUTH2" | "OAUTH1" | "OAUTH1A" | "API_KEY" | "BASIC" | "BILLCOM_AUTH" | "BEARER_TOKEN" | "GOOGLE_SERVICE_ACCOUNT" | "BASIC_WITH_JWT" | "COMPOSIO_LINK" | "CALCOM_AUTH" | "SNOWFLAKE" | undefined;
2752
- isComposioManaged?: boolean | undefined;
2753
2765
  expectedInputFields?: unknown[] | undefined;
2754
2766
  createdBy?: string | undefined;
2755
2767
  lastUpdatedAt?: string | undefined;