@composio/client 0.1.0-alpha.10 → 0.1.0-alpha.12

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.
Files changed (185) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +7 -7
  3. package/client.d.mts +6 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/auth-configs.d.mts +168 -29
  11. package/resources/auth-configs.d.mts.map +1 -1
  12. package/resources/auth-configs.d.ts +168 -29
  13. package/resources/auth-configs.d.ts.map +1 -1
  14. package/resources/auth-configs.js +50 -4
  15. package/resources/auth-configs.js.map +1 -1
  16. package/resources/auth-configs.mjs +50 -4
  17. package/resources/auth-configs.mjs.map +1 -1
  18. package/resources/connected-accounts.d.mts +80 -17
  19. package/resources/connected-accounts.d.mts.map +1 -1
  20. package/resources/connected-accounts.d.ts +80 -17
  21. package/resources/connected-accounts.d.ts.map +1 -1
  22. package/resources/connected-accounts.js +56 -4
  23. package/resources/connected-accounts.js.map +1 -1
  24. package/resources/connected-accounts.mjs +56 -4
  25. package/resources/connected-accounts.mjs.map +1 -1
  26. package/resources/files.d.mts +72 -23
  27. package/resources/files.d.mts.map +1 -1
  28. package/resources/files.d.ts +72 -23
  29. package/resources/files.d.ts.map +1 -1
  30. package/resources/files.js +20 -2
  31. package/resources/files.js.map +1 -1
  32. package/resources/files.mjs +20 -2
  33. package/resources/files.mjs.map +1 -1
  34. package/resources/index.d.mts +3 -3
  35. package/resources/index.d.mts.map +1 -1
  36. package/resources/index.d.ts +3 -3
  37. package/resources/index.d.ts.map +1 -1
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs.map +1 -1
  40. package/resources/mcp/custom.d.mts +87 -0
  41. package/resources/mcp/custom.d.mts.map +1 -0
  42. package/resources/mcp/custom.d.ts +87 -0
  43. package/resources/mcp/custom.d.ts.map +1 -0
  44. package/resources/mcp/custom.js +26 -0
  45. package/resources/mcp/custom.js.map +1 -0
  46. package/resources/mcp/custom.mjs +22 -0
  47. package/resources/mcp/custom.mjs.map +1 -0
  48. package/resources/mcp/index.d.mts +2 -2
  49. package/resources/mcp/index.d.mts.map +1 -1
  50. package/resources/mcp/index.d.ts +2 -2
  51. package/resources/mcp/index.d.ts.map +1 -1
  52. package/resources/mcp/index.js +3 -3
  53. package/resources/mcp/index.js.map +1 -1
  54. package/resources/mcp/index.mjs +1 -1
  55. package/resources/mcp/index.mjs.map +1 -1
  56. package/resources/mcp/mcp.d.mts +322 -217
  57. package/resources/mcp/mcp.d.mts.map +1 -1
  58. package/resources/mcp/mcp.d.ts +322 -217
  59. package/resources/mcp/mcp.d.ts.map +1 -1
  60. package/resources/mcp/mcp.js +72 -25
  61. package/resources/mcp/mcp.js.map +1 -1
  62. package/resources/mcp/mcp.mjs +72 -25
  63. package/resources/mcp/mcp.mjs.map +1 -1
  64. package/resources/migration.d.mts +11 -2
  65. package/resources/migration.d.mts.map +1 -1
  66. package/resources/migration.d.ts +11 -2
  67. package/resources/migration.d.ts.map +1 -1
  68. package/resources/migration.js +3 -1
  69. package/resources/migration.js.map +1 -1
  70. package/resources/migration.mjs +3 -1
  71. package/resources/migration.mjs.map +1 -1
  72. package/resources/org/api-key.d.mts +23 -2
  73. package/resources/org/api-key.d.mts.map +1 -1
  74. package/resources/org/api-key.d.ts +23 -2
  75. package/resources/org/api-key.d.ts.map +1 -1
  76. package/resources/org/api-key.js +15 -2
  77. package/resources/org/api-key.js.map +1 -1
  78. package/resources/org/api-key.mjs +15 -2
  79. package/resources/org/api-key.mjs.map +1 -1
  80. package/resources/org/project/api-keys.d.mts +114 -22
  81. package/resources/org/project/api-keys.d.mts.map +1 -1
  82. package/resources/org/project/api-keys.d.ts +114 -22
  83. package/resources/org/project/api-keys.d.ts.map +1 -1
  84. package/resources/org/project/api-keys.js +57 -0
  85. package/resources/org/project/api-keys.js.map +1 -1
  86. package/resources/org/project/api-keys.mjs +57 -0
  87. package/resources/org/project/api-keys.mjs.map +1 -1
  88. package/resources/org/project/project.d.mts +176 -4
  89. package/resources/org/project/project.d.mts.map +1 -1
  90. package/resources/org/project/project.d.ts +176 -4
  91. package/resources/org/project/project.d.ts.map +1 -1
  92. package/resources/org/project/project.js +46 -3
  93. package/resources/org/project/project.js.map +1 -1
  94. package/resources/org/project/project.mjs +46 -3
  95. package/resources/org/project/project.mjs.map +1 -1
  96. package/resources/org/project/trigger.d.mts +101 -1
  97. package/resources/org/project/trigger.d.mts.map +1 -1
  98. package/resources/org/project/trigger.d.ts +101 -1
  99. package/resources/org/project/trigger.d.ts.map +1 -1
  100. package/resources/org/project/trigger.js +21 -0
  101. package/resources/org/project/trigger.js.map +1 -1
  102. package/resources/org/project/trigger.mjs +21 -0
  103. package/resources/org/project/trigger.mjs.map +1 -1
  104. package/resources/org/project/webhook.d.mts +86 -15
  105. package/resources/org/project/webhook.d.mts.map +1 -1
  106. package/resources/org/project/webhook.d.ts +86 -15
  107. package/resources/org/project/webhook.d.ts.map +1 -1
  108. package/resources/org/project/webhook.js +49 -2
  109. package/resources/org/project/webhook.js.map +1 -1
  110. package/resources/org/project/webhook.mjs +49 -2
  111. package/resources/org/project/webhook.mjs.map +1 -1
  112. package/resources/team-members.d.mts +7 -7
  113. package/resources/team-members.d.mts.map +1 -1
  114. package/resources/team-members.d.ts +7 -7
  115. package/resources/team-members.d.ts.map +1 -1
  116. package/resources/toolkits.d.mts +195 -7
  117. package/resources/toolkits.d.mts.map +1 -1
  118. package/resources/toolkits.d.ts +195 -7
  119. package/resources/toolkits.d.ts.map +1 -1
  120. package/resources/toolkits.js +14 -6
  121. package/resources/toolkits.js.map +1 -1
  122. package/resources/toolkits.mjs +14 -6
  123. package/resources/toolkits.mjs.map +1 -1
  124. package/resources/tools.d.mts +211 -44
  125. package/resources/tools.d.mts.map +1 -1
  126. package/resources/tools.d.ts +211 -44
  127. package/resources/tools.d.ts.map +1 -1
  128. package/resources/tools.js +62 -9
  129. package/resources/tools.js.map +1 -1
  130. package/resources/tools.mjs +62 -9
  131. package/resources/tools.mjs.map +1 -1
  132. package/resources/trigger-instances/index.d.mts +1 -1
  133. package/resources/trigger-instances/index.d.mts.map +1 -1
  134. package/resources/trigger-instances/index.d.ts +1 -1
  135. package/resources/trigger-instances/index.d.ts.map +1 -1
  136. package/resources/trigger-instances/trigger-instances.d.mts +86 -19
  137. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  138. package/resources/trigger-instances/trigger-instances.d.ts +86 -19
  139. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  140. package/resources/trigger-instances/trigger-instances.js +6 -6
  141. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  142. package/resources/trigger-instances/trigger-instances.mjs +6 -6
  143. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  144. package/resources/triggers-types.d.mts +96 -2
  145. package/resources/triggers-types.d.mts.map +1 -1
  146. package/resources/triggers-types.d.ts +96 -2
  147. package/resources/triggers-types.d.ts.map +1 -1
  148. package/resources/triggers-types.js +23 -1
  149. package/resources/triggers-types.js.map +1 -1
  150. package/resources/triggers-types.mjs +23 -1
  151. package/resources/triggers-types.mjs.map +1 -1
  152. package/src/client.ts +6 -6
  153. package/src/resources/auth-configs.ts +169 -29
  154. package/src/resources/connected-accounts.ts +80 -17
  155. package/src/resources/files.ts +75 -23
  156. package/src/resources/index.ts +3 -3
  157. package/src/resources/mcp/custom.ts +103 -0
  158. package/src/resources/mcp/index.ts +2 -3
  159. package/src/resources/mcp/mcp.ts +342 -256
  160. package/src/resources/migration.ts +11 -2
  161. package/src/resources/org/api-key.ts +23 -2
  162. package/src/resources/org/project/api-keys.ts +117 -22
  163. package/src/resources/org/project/project.ts +176 -4
  164. package/src/resources/org/project/trigger.ts +101 -1
  165. package/src/resources/org/project/webhook.ts +86 -15
  166. package/src/resources/team-members.ts +7 -7
  167. package/src/resources/toolkits.ts +200 -7
  168. package/src/resources/tools.ts +213 -46
  169. package/src/resources/trigger-instances/index.ts +1 -1
  170. package/src/resources/trigger-instances/trigger-instances.ts +106 -25
  171. package/src/resources/triggers-types.ts +96 -2
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.ts +1 -1
  175. package/version.js +1 -1
  176. package/version.mjs +1 -1
  177. package/resources/mcp/command.d.mts +0 -37
  178. package/resources/mcp/command.d.mts.map +0 -1
  179. package/resources/mcp/command.d.ts +0 -37
  180. package/resources/mcp/command.d.ts.map +0 -1
  181. package/resources/mcp/command.js +0 -15
  182. package/resources/mcp/command.js.map +0 -1
  183. package/resources/mcp/command.mjs +0 -11
  184. package/resources/mcp/command.mjs.map +0 -1
  185. package/src/resources/mcp/command.ts +0 -50
@@ -7,15 +7,20 @@ import { path } from '../internal/utils/path';
7
7
 
8
8
  export class Toolkits extends APIResource {
9
9
  /**
10
- * Retrieve detailed information about a specific toolkit using its slug identifier
10
+ * Retrieves comprehensive information about a specific toolkit using its unique
11
+ * slug identifier. This endpoint provides detailed metadata, authentication
12
+ * configuration options, and feature counts for the requested toolkit.
11
13
  */
12
14
  retrieve(slug: string, options?: RequestOptions): APIPromise<ToolkitRetrieveResponse> {
13
15
  return this._client.get(path`/api/v3/toolkits/${slug}`, options);
14
16
  }
15
17
 
16
18
  /**
17
- * Retrieve a list of available toolkits with optional filtering and sorting
18
- * options
19
+ * Retrieves a comprehensive list of toolkits that are available to the
20
+ * authenticated project. Toolkits represent integration points with external
21
+ * services and applications, each containing a collection of tools and triggers.
22
+ * This endpoint supports filtering by category, management type, and local
23
+ * availability, as well as different sorting options.
19
24
  */
20
25
  list(
21
26
  query: ToolkitListParams | null | undefined = {},
@@ -25,74 +30,168 @@ export class Toolkits extends APIResource {
25
30
  }
26
31
 
27
32
  /**
28
- * Retrieve a list of all available toolkit categories for filtering toolkits
33
+ * Retrieves a comprehensive list of all available toolkit categories. These
34
+ * categories can be used to filter toolkits by type or purpose when using the
35
+ * toolkit listing endpoint. Categories help organize toolkits into logical groups
36
+ * based on their functionality or industry focus.
29
37
  */
30
- retrieveCategories(options?: RequestOptions): APIPromise<ToolkitRetrieveCategoriesResponse> {
31
- return this._client.get('/api/v3/toolkits/categories', options);
38
+ retrieveCategories(
39
+ query: ToolkitRetrieveCategoriesParams | null | undefined = {},
40
+ options?: RequestOptions,
41
+ ): APIPromise<ToolkitRetrieveCategoriesResponse> {
42
+ return this._client.get('/api/v3/toolkits/categories', { query, ...options });
32
43
  }
33
44
  }
34
45
 
46
+ /**
47
+ * Detailed information about a single toolkit
48
+ */
35
49
  export interface ToolkitRetrieveResponse {
50
+ /**
51
+ * Indicates if this toolkit is currently enabled and available for use
52
+ */
36
53
  enabled: boolean;
37
54
 
55
+ /**
56
+ * Indicates if this toolkit is specific to the current project or globally
57
+ * available
58
+ */
38
59
  is_local_toolkit: boolean;
39
60
 
61
+ /**
62
+ * Comprehensive metadata for the toolkit including dates, descriptions, and
63
+ * statistics
64
+ */
40
65
  meta: ToolkitRetrieveResponse.Meta;
41
66
 
67
+ /**
68
+ * Human-readable name of the toolkit
69
+ */
42
70
  name: string;
43
71
 
72
+ /**
73
+ * URL-friendly unique identifier for the toolkit
74
+ */
44
75
  slug: string;
45
76
 
77
+ /**
78
+ * Complete authentication configuration details for each supported auth method
79
+ */
46
80
  auth_config_details?: Array<ToolkitRetrieveResponse.AuthConfigDetail>;
47
81
 
82
+ /**
83
+ * List of authentication methods that Composio manages for this toolkit
84
+ */
48
85
  composio_managed_auth_schemes?: Array<string>;
49
86
  }
50
87
 
51
88
  export namespace ToolkitRetrieveResponse {
89
+ /**
90
+ * Comprehensive metadata for the toolkit including dates, descriptions, and
91
+ * statistics
92
+ */
52
93
  export interface Meta {
94
+ /**
95
+ * List of categories associated with this toolkit
96
+ */
53
97
  categories: Array<Meta.Category>;
54
98
 
99
+ /**
100
+ * Creation date and time of the toolkit
101
+ */
55
102
  created_at: string;
56
103
 
104
+ /**
105
+ * Human-readable description explaining the toolkit's purpose and functionality
106
+ */
57
107
  description: string;
58
108
 
109
+ /**
110
+ * Image URL for the toolkit's branding
111
+ */
59
112
  logo: string;
60
113
 
114
+ /**
115
+ * Count of available tools in this toolkit
116
+ */
61
117
  tools_count: number;
62
118
 
119
+ /**
120
+ * Count of available triggers in this toolkit
121
+ */
63
122
  triggers_count: number;
64
123
 
124
+ /**
125
+ * Last modification date and time of the toolkit
126
+ */
65
127
  updated_at: string;
66
128
 
129
+ /**
130
+ * Link to the toolkit's main application or service website
131
+ */
67
132
  app_url?: string | null;
68
133
  }
69
134
 
70
135
  export namespace Meta {
71
136
  export interface Category {
137
+ /**
138
+ * Human-readable category name
139
+ */
72
140
  name: string;
73
141
 
142
+ /**
143
+ * URL-friendly identifier for the category
144
+ */
74
145
  slug: string;
75
146
  }
76
147
  }
77
148
 
149
+ /**
150
+ * Detailed configuration for an authentication method
151
+ */
78
152
  export interface AuthConfigDetail {
153
+ /**
154
+ * Field groups required for different authentication stages
155
+ */
79
156
  fields: AuthConfigDetail.Fields;
80
157
 
158
+ /**
159
+ * The type of authentication mode (e.g., oauth2, basic_auth, api_key)
160
+ */
81
161
  mode: string;
82
162
 
163
+ /**
164
+ * Display name for this authentication method
165
+ */
83
166
  name: string;
84
167
 
168
+ /**
169
+ * Configuration for proxying authentication requests to external services
170
+ */
85
171
  proxy?: AuthConfigDetail.Proxy;
86
172
  }
87
173
 
88
174
  export namespace AuthConfigDetail {
175
+ /**
176
+ * Field groups required for different authentication stages
177
+ */
89
178
  export interface Fields {
179
+ /**
180
+ * Form fields needed when creating an authentication configuration
181
+ */
90
182
  auth_config_creation: Fields.AuthConfigCreation;
91
183
 
184
+ /**
185
+ * Form fields needed when connecting a user account with this authentication
186
+ * method
187
+ */
92
188
  connected_account_initiation: Fields.ConnectedAccountInitiation;
93
189
  }
94
190
 
95
191
  export namespace Fields {
192
+ /**
193
+ * Form fields needed when creating an authentication configuration
194
+ */
96
195
  export interface AuthConfigCreation {
97
196
  optional: Array<AuthConfigCreation.Optional>;
98
197
 
@@ -129,6 +228,10 @@ export namespace ToolkitRetrieveResponse {
129
228
  }
130
229
  }
131
230
 
231
+ /**
232
+ * Form fields needed when connecting a user account with this authentication
233
+ * method
234
+ */
132
235
  export interface ConnectedAccountInitiation {
133
236
  optional: Array<ConnectedAccountInitiation.Optional>;
134
237
 
@@ -166,7 +269,13 @@ export namespace ToolkitRetrieveResponse {
166
269
  }
167
270
  }
168
271
 
272
+ /**
273
+ * Configuration for proxying authentication requests to external services
274
+ */
169
275
  export interface Proxy {
276
+ /**
277
+ * URL to which authentication requests will be proxied
278
+ */
170
279
  base_url: string;
171
280
  }
172
281
  }
@@ -181,45 +290,103 @@ export interface ToolkitListResponse {
181
290
  }
182
291
 
183
292
  export namespace ToolkitListResponse {
293
+ /**
294
+ * Detailed information about a toolkit
295
+ */
184
296
  export interface Item {
297
+ /**
298
+ * Indicates if this toolkit is specific to the current project or globally
299
+ * available
300
+ */
185
301
  is_local_toolkit: boolean;
186
302
 
303
+ /**
304
+ * Additional metadata about the toolkit
305
+ */
187
306
  meta: Item.Meta;
188
307
 
308
+ /**
309
+ * Human-readable name of the toolkit
310
+ */
189
311
  name: string;
190
312
 
313
+ /**
314
+ * URL-friendly unique identifier for the toolkit
315
+ */
191
316
  slug: string;
192
317
 
318
+ /**
319
+ * List of authentication methods supported by this toolkit
320
+ */
193
321
  auth_schemes?: Array<string>;
194
322
 
323
+ /**
324
+ * List of authentication methods that Composio manages for this toolkit
325
+ */
195
326
  composio_managed_auth_schemes?: Array<string>;
196
327
 
328
+ /**
329
+ * When true, this toolkit can be used without authentication
330
+ */
197
331
  no_auth?: boolean;
198
332
  }
199
333
 
200
334
  export namespace Item {
335
+ /**
336
+ * Additional metadata about the toolkit
337
+ */
201
338
  export interface Meta {
339
+ /**
340
+ * List of categories associated with this toolkit
341
+ */
202
342
  categories: Array<Meta.Category>;
203
343
 
344
+ /**
345
+ * Creation date and time of the toolkit
346
+ */
204
347
  created_at: string;
205
348
 
349
+ /**
350
+ * Human-readable description explaining the toolkit's purpose and functionality
351
+ */
206
352
  description: string;
207
353
 
354
+ /**
355
+ * Image URL for the toolkit's branding
356
+ */
208
357
  logo: string;
209
358
 
359
+ /**
360
+ * Count of available tools in this toolkit
361
+ */
210
362
  tools_count: number;
211
363
 
364
+ /**
365
+ * Count of available triggers in this toolkit
366
+ */
212
367
  triggers_count: number;
213
368
 
369
+ /**
370
+ * Last modification date and time of the toolkit
371
+ */
214
372
  updated_at: string;
215
373
 
374
+ /**
375
+ * Link to the toolkit's main application or service website
376
+ */
216
377
  app_url?: string | null;
217
378
  }
218
379
 
219
380
  export namespace Meta {
220
381
  export interface Category {
382
+ /**
383
+ * Category identifier
384
+ */
221
385
  id: string;
222
386
 
387
+ /**
388
+ * Human-readable category name
389
+ */
223
390
  name: string;
224
391
  }
225
392
  }
@@ -235,31 +402,57 @@ export interface ToolkitRetrieveCategoriesResponse {
235
402
  }
236
403
 
237
404
  export namespace ToolkitRetrieveCategoriesResponse {
405
+ /**
406
+ * Information about a single toolkit category
407
+ */
238
408
  export interface Item {
409
+ /**
410
+ * URL-friendly unique identifier for the category, used for filtering toolkits
411
+ */
239
412
  id: string;
240
413
 
414
+ /**
415
+ * Display name of the toolkit category
416
+ */
241
417
  name: string;
242
418
  }
243
419
  }
244
420
 
245
421
  export interface ToolkitListParams {
422
+ /**
423
+ * Filter toolkits by category
424
+ */
246
425
  category?: string;
247
426
 
248
427
  /**
249
- * Whether to include local toolkits
428
+ * Whether to include local toolkits in the results
250
429
  */
251
430
  is_local?: boolean | null;
252
431
 
432
+ /**
433
+ * Filter toolkits by who manages them
434
+ */
253
435
  managed_by?: 'composio' | 'all' | 'project';
254
436
 
437
+ /**
438
+ * Sort order for returned toolkits
439
+ */
255
440
  sort_by?: 'usage' | 'alphabetically';
256
441
  }
257
442
 
443
+ export interface ToolkitRetrieveCategoriesParams {
444
+ /**
445
+ * Cache control parameter
446
+ */
447
+ cache?: string;
448
+ }
449
+
258
450
  export declare namespace Toolkits {
259
451
  export {
260
452
  type ToolkitRetrieveResponse as ToolkitRetrieveResponse,
261
453
  type ToolkitListResponse as ToolkitListResponse,
262
454
  type ToolkitRetrieveCategoriesResponse as ToolkitRetrieveCategoriesResponse,
263
455
  type ToolkitListParams as ToolkitListParams,
456
+ type ToolkitRetrieveCategoriesParams as ToolkitRetrieveCategoriesParams,
264
457
  };
265
458
  }