@composio/client 0.1.0-alpha.29 → 0.1.0-alpha.31

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 (77) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/package.json +4 -5
  3. package/resources/cli.d.mts +4 -0
  4. package/resources/cli.d.mts.map +1 -1
  5. package/resources/cli.d.ts +4 -0
  6. package/resources/cli.d.ts.map +1 -1
  7. package/resources/connected-accounts.d.mts +16 -8
  8. package/resources/connected-accounts.d.mts.map +1 -1
  9. package/resources/connected-accounts.d.ts +16 -8
  10. package/resources/connected-accounts.d.ts.map +1 -1
  11. package/resources/mcp/mcp.d.mts +78 -2
  12. package/resources/mcp/mcp.d.mts.map +1 -1
  13. package/resources/mcp/mcp.d.ts +78 -2
  14. package/resources/mcp/mcp.d.ts.map +1 -1
  15. package/resources/mcp/mcp.js.map +1 -1
  16. package/resources/mcp/mcp.mjs.map +1 -1
  17. package/resources/org/api-key.d.mts +1 -2
  18. package/resources/org/api-key.d.mts.map +1 -1
  19. package/resources/org/api-key.d.ts +1 -2
  20. package/resources/org/api-key.d.ts.map +1 -1
  21. package/resources/org/api-key.js +1 -2
  22. package/resources/org/api-key.js.map +1 -1
  23. package/resources/org/api-key.mjs +1 -2
  24. package/resources/org/api-key.mjs.map +1 -1
  25. package/resources/org/index.d.mts +1 -1
  26. package/resources/org/index.d.mts.map +1 -1
  27. package/resources/org/index.d.ts +1 -1
  28. package/resources/org/index.d.ts.map +1 -1
  29. package/resources/org/index.js.map +1 -1
  30. package/resources/org/index.mjs.map +1 -1
  31. package/resources/org/org.d.mts +2 -2
  32. package/resources/org/org.d.mts.map +1 -1
  33. package/resources/org/org.d.ts +2 -2
  34. package/resources/org/org.d.ts.map +1 -1
  35. package/resources/org/org.js.map +1 -1
  36. package/resources/org/org.mjs.map +1 -1
  37. package/resources/org/project/index.d.mts +1 -1
  38. package/resources/org/project/index.d.mts.map +1 -1
  39. package/resources/org/project/index.d.ts +1 -1
  40. package/resources/org/project/index.d.ts.map +1 -1
  41. package/resources/org/project/index.js.map +1 -1
  42. package/resources/org/project/index.mjs.map +1 -1
  43. package/resources/org/project/project.d.mts +5 -2
  44. package/resources/org/project/project.d.mts.map +1 -1
  45. package/resources/org/project/project.d.ts +5 -2
  46. package/resources/org/project/project.d.ts.map +1 -1
  47. package/resources/org/project/project.js +2 -2
  48. package/resources/org/project/project.js.map +1 -1
  49. package/resources/org/project/project.mjs +2 -2
  50. package/resources/org/project/project.mjs.map +1 -1
  51. package/resources/team-members.d.mts +4 -4
  52. package/resources/team-members.d.mts.map +1 -1
  53. package/resources/team-members.d.ts +4 -4
  54. package/resources/team-members.d.ts.map +1 -1
  55. package/resources/team-members.js +1 -1
  56. package/resources/team-members.js.map +1 -1
  57. package/resources/team-members.mjs +1 -1
  58. package/resources/team-members.mjs.map +1 -1
  59. package/resources/tools.d.mts +6 -2
  60. package/resources/tools.d.mts.map +1 -1
  61. package/resources/tools.d.ts +6 -2
  62. package/resources/tools.d.ts.map +1 -1
  63. package/src/resources/cli.ts +5 -0
  64. package/src/resources/connected-accounts.ts +18 -8
  65. package/src/resources/mcp/mcp.ts +84 -2
  66. package/src/resources/org/api-key.ts +1 -2
  67. package/src/resources/org/index.ts +1 -0
  68. package/src/resources/org/org.ts +2 -0
  69. package/src/resources/org/project/index.ts +1 -0
  70. package/src/resources/org/project/project.ts +10 -2
  71. package/src/resources/team-members.ts +4 -4
  72. package/src/resources/tools.ts +7 -2
  73. package/src/version.ts +1 -1
  74. package/version.d.mts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
@@ -194,6 +194,16 @@ export interface McpCreateResponse {
194
194
  */
195
195
  name: string;
196
196
 
197
+ /**
198
+ * Total count of active user instances connected to this server
199
+ */
200
+ server_instance_count: number;
201
+
202
+ /**
203
+ * Object mapping each toolkit slug to its icon/logo URL for display purposes
204
+ */
205
+ toolkit_icons: { [key: string]: string };
206
+
197
207
  /**
198
208
  * Array of toolkit slugs that this MCP server is allowed to use
199
209
  */
@@ -278,6 +288,16 @@ export interface McpRetrieveResponse {
278
288
  */
279
289
  name: string;
280
290
 
291
+ /**
292
+ * Total count of active user instances connected to this server
293
+ */
294
+ server_instance_count: number;
295
+
296
+ /**
297
+ * Object mapping each toolkit slug to its icon/logo URL for display purposes
298
+ */
299
+ toolkit_icons: { [key: string]: string };
300
+
281
301
  /**
282
302
  * Array of toolkit slugs that this MCP server is allowed to use
283
303
  */
@@ -362,6 +382,16 @@ export interface McpUpdateResponse {
362
382
  */
363
383
  name: string;
364
384
 
385
+ /**
386
+ * Total count of active user instances connected to this server
387
+ */
388
+ server_instance_count: number;
389
+
390
+ /**
391
+ * Object mapping each toolkit slug to its icon/logo URL for display purposes
392
+ */
393
+ toolkit_icons: { [key: string]: string };
394
+
365
395
  /**
366
396
  * Array of toolkit slugs that this MCP server is allowed to use
367
397
  */
@@ -462,6 +492,16 @@ export namespace McpListResponse {
462
492
  */
463
493
  name: string;
464
494
 
495
+ /**
496
+ * Total count of active user instances connected to this server
497
+ */
498
+ server_instance_count: number;
499
+
500
+ /**
501
+ * Object mapping each toolkit slug to its icon/logo URL for display purposes
502
+ */
503
+ toolkit_icons: { [key: string]: string };
504
+
465
505
  /**
466
506
  * Array of toolkit slugs that this MCP server is allowed to use
467
507
  */
@@ -501,10 +541,15 @@ export namespace McpListResponse {
501
541
  * Response indicating the success of the delete operation
502
542
  */
503
543
  export interface McpDeleteResponse {
544
+ /**
545
+ * Unique identifier of the MCP server to retrieve, update, or delete
546
+ */
547
+ id: string;
548
+
504
549
  /**
505
550
  * Indicates whether the MCP server was successfully deleted
506
551
  */
507
- success: boolean;
552
+ deleted: boolean;
508
553
  }
509
554
 
510
555
  /**
@@ -573,6 +618,16 @@ export namespace McpRetrieveAppResponse {
573
618
  */
574
619
  name: string;
575
620
 
621
+ /**
622
+ * Total count of active user instances connected to this server
623
+ */
624
+ server_instance_count: number;
625
+
626
+ /**
627
+ * Object mapping each toolkit slug to its icon/logo URL for display purposes
628
+ */
629
+ toolkit_icons: { [key: string]: string };
630
+
576
631
  /**
577
632
  * Array of toolkit slugs that this MCP server is allowed to use
578
633
  */
@@ -725,6 +780,12 @@ export interface McpUpdateParams {
725
780
  */
726
781
  allowed_tools?: Array<string>;
727
782
 
783
+ /**
784
+ * List of auth config IDs to use for this MCP server. Can include multiple
785
+ * different toolkits.
786
+ */
787
+ auth_config_ids?: Array<string>;
788
+
728
789
  /**
729
790
  * Whether the MCP server is managed by Composio
730
791
  */
@@ -737,7 +798,8 @@ export interface McpUpdateParams {
737
798
  name?: string;
738
799
 
739
800
  /**
740
- * List of toolkit slugs this server should be configured to work with
801
+ * List of toolkit slugs this server should be configured to work with. Must have
802
+ * the same count and order as auth_config_ids.
741
803
  */
742
804
  toolkits?: Array<string>;
743
805
  }
@@ -758,6 +820,16 @@ export interface McpListParams {
758
820
  */
759
821
  name?: string;
760
822
 
823
+ /**
824
+ * Field to order results by
825
+ */
826
+ order_by?: 'created_at' | 'updated_at';
827
+
828
+ /**
829
+ * Direction of ordering
830
+ */
831
+ order_direction?: 'asc' | 'desc';
832
+
761
833
  /**
762
834
  * Page number for pagination (1-based)
763
835
  */
@@ -785,6 +857,16 @@ export interface McpRetrieveAppParams {
785
857
  */
786
858
  name?: string;
787
859
 
860
+ /**
861
+ * Field to order results by
862
+ */
863
+ order_by?: 'created_at' | 'updated_at';
864
+
865
+ /**
866
+ * Direction of ordering
867
+ */
868
+ order_direction?: 'asc' | 'desc';
869
+
788
870
  /**
789
871
  * Page number for pagination (1-based)
790
872
  */
@@ -21,8 +21,7 @@ export class APIKey extends APIResource {
21
21
 
22
22
  /**
23
23
  * Generate a new API key for the organization, invalidating the previous one
24
- * (admin only). This operation cannot be undone and will immediately invalidate
25
- * the previous API key.
24
+ * (admin only).
26
25
  *
27
26
  * @example
28
27
  * ```ts
@@ -9,4 +9,5 @@ export {
9
9
  type ProjectListResponse,
10
10
  type ProjectDeleteResponse,
11
11
  type ProjectCreateParams,
12
+ type ProjectListParams,
12
13
  } from './project/index';
@@ -9,6 +9,7 @@ import {
9
9
  ProjectCreateParams,
10
10
  ProjectCreateResponse,
11
11
  ProjectDeleteResponse,
12
+ ProjectListParams,
12
13
  ProjectListResponse,
13
14
  ProjectRetrieveResponse,
14
15
  } from './project/project';
@@ -35,5 +36,6 @@ export declare namespace Org {
35
36
  type ProjectListResponse as ProjectListResponse,
36
37
  type ProjectDeleteResponse as ProjectDeleteResponse,
37
38
  type ProjectCreateParams as ProjectCreateParams,
39
+ type ProjectListParams as ProjectListParams,
38
40
  };
39
41
  }
@@ -16,6 +16,7 @@ export {
16
16
  type ProjectListResponse,
17
17
  type ProjectDeleteResponse,
18
18
  type ProjectCreateParams,
19
+ type ProjectListParams,
19
20
  } from './project';
20
21
  export {
21
22
  Trigger,
@@ -79,8 +79,11 @@ export class Project extends APIResource {
79
79
  * const projects = await client.org.project.list();
80
80
  * ```
81
81
  */
82
- list(options?: RequestOptions): APIPromise<ProjectListResponse> {
83
- return this._client.get('/api/v3/org/project/list', options);
82
+ list(
83
+ query: ProjectListParams | null | undefined = {},
84
+ options?: RequestOptions,
85
+ ): APIPromise<ProjectListResponse> {
86
+ return this._client.get('/api/v3/org/project/list', { query, ...options });
84
87
  }
85
88
 
86
89
  /**
@@ -332,6 +335,10 @@ export interface ProjectCreateParams {
332
335
  name: string;
333
336
  }
334
337
 
338
+ export interface ProjectListParams {
339
+ list_all_org_projects?: boolean | null;
340
+ }
341
+
335
342
  Project.APIKeys = APIKeys;
336
343
  Project.Webhook = Webhook;
337
344
  Project.Trigger = Trigger;
@@ -343,6 +350,7 @@ export declare namespace Project {
343
350
  type ProjectListResponse as ProjectListResponse,
344
351
  type ProjectDeleteResponse as ProjectDeleteResponse,
345
352
  type ProjectCreateParams as ProjectCreateParams,
353
+ type ProjectListParams as ProjectListParams,
346
354
  };
347
355
 
348
356
  export {
@@ -11,7 +11,7 @@ export class TeamMembers extends APIResource {
11
11
  */
12
12
  update(
13
13
  id: string,
14
- body: TeamMemberUpdateParams,
14
+ body: TeamMemberUpdateParams | null | undefined = {},
15
15
  options?: RequestOptions,
16
16
  ): APIPromise<TeamMemberUpdateResponse> {
17
17
  return this._client.put(path`/api/v3/team-members/update/${id}`, { body, ...options });
@@ -94,11 +94,11 @@ export interface TeamMemberRemoveResponse {
94
94
  }
95
95
 
96
96
  export interface TeamMemberUpdateParams {
97
- email: string;
97
+ email?: string;
98
98
 
99
- name: string;
99
+ name?: string;
100
100
 
101
- role: string;
101
+ role?: 'ADMIN' | 'DEVELOPER';
102
102
  }
103
103
 
104
104
  export interface TeamMemberInviteParams {
@@ -420,6 +420,11 @@ export interface ToolListParams {
420
420
  */
421
421
  important?: 'true' | 'false';
422
422
 
423
+ /**
424
+ * Include deprecated tools in the response
425
+ */
426
+ include_deprecated?: boolean;
427
+
423
428
  /**
424
429
  * Number of items per page
425
430
  */
@@ -602,7 +607,7 @@ export namespace ToolExecuteParams {
602
607
 
603
608
  region?: string;
604
609
 
605
- scope?: string | Array<string>;
610
+ scope?: string | Array<string> | null;
606
611
 
607
612
  server_location?: string;
608
613
 
@@ -1143,7 +1148,7 @@ export namespace ToolProxyParams {
1143
1148
 
1144
1149
  region?: string;
1145
1150
 
1146
- scope?: string | Array<string>;
1151
+ scope?: string | Array<string> | null;
1147
1152
 
1148
1153
  server_location?: string;
1149
1154
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.29'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.31'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.29";
1
+ export declare const VERSION = "0.1.0-alpha.31";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.29";
1
+ export declare const VERSION = "0.1.0-alpha.31";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.29'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.31'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.29'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.31'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map