@composio/client 0.1.0-alpha.11 → 0.1.0-alpha.13

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 (143) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +7 -7
  3. package/client.d.mts +7 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +7 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/auth/auth.d.mts +10 -0
  13. package/resources/auth/auth.d.mts.map +1 -0
  14. package/resources/auth/auth.d.ts +10 -0
  15. package/resources/auth/auth.d.ts.map +1 -0
  16. package/resources/auth/auth.js +17 -0
  17. package/resources/auth/auth.js.map +1 -0
  18. package/resources/auth/auth.mjs +12 -0
  19. package/resources/auth/auth.mjs.map +1 -0
  20. package/resources/auth/index.d.mts +3 -0
  21. package/resources/auth/index.d.mts.map +1 -0
  22. package/resources/auth/index.d.ts +3 -0
  23. package/resources/auth/index.d.ts.map +1 -0
  24. package/resources/auth/index.js +9 -0
  25. package/resources/auth/index.js.map +1 -0
  26. package/resources/auth/index.mjs +4 -0
  27. package/resources/auth/index.mjs.map +1 -0
  28. package/resources/auth/session.d.mts +240 -0
  29. package/resources/auth/session.d.mts.map +1 -0
  30. package/resources/auth/session.d.ts +240 -0
  31. package/resources/auth/session.d.ts.map +1 -0
  32. package/resources/auth/session.js +19 -0
  33. package/resources/auth/session.js.map +1 -0
  34. package/resources/auth/session.mjs +15 -0
  35. package/resources/auth/session.mjs.map +1 -0
  36. package/resources/auth-configs.d.mts +5 -5
  37. package/resources/auth-configs.d.mts.map +1 -1
  38. package/resources/auth-configs.d.ts +5 -5
  39. package/resources/auth-configs.d.ts.map +1 -1
  40. package/resources/auth.d.mts +2 -0
  41. package/resources/auth.d.mts.map +1 -0
  42. package/resources/auth.d.ts +2 -0
  43. package/resources/auth.d.ts.map +1 -0
  44. package/resources/auth.js +6 -0
  45. package/resources/auth.js.map +1 -0
  46. package/resources/auth.mjs +3 -0
  47. package/resources/auth.mjs.map +1 -0
  48. package/resources/files.d.mts +16 -0
  49. package/resources/files.d.mts.map +1 -1
  50. package/resources/files.d.ts +16 -0
  51. package/resources/files.d.ts.map +1 -1
  52. package/resources/index.d.mts +3 -2
  53. package/resources/index.d.mts.map +1 -1
  54. package/resources/index.d.ts +3 -2
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js +3 -1
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs +1 -0
  59. package/resources/index.mjs.map +1 -1
  60. package/resources/mcp/custom.d.mts +87 -0
  61. package/resources/mcp/custom.d.mts.map +1 -0
  62. package/resources/mcp/custom.d.ts +87 -0
  63. package/resources/mcp/custom.d.ts.map +1 -0
  64. package/resources/mcp/custom.js +26 -0
  65. package/resources/mcp/custom.js.map +1 -0
  66. package/resources/mcp/custom.mjs +22 -0
  67. package/resources/mcp/custom.mjs.map +1 -0
  68. package/resources/mcp/index.d.mts +2 -2
  69. package/resources/mcp/index.d.mts.map +1 -1
  70. package/resources/mcp/index.d.ts +2 -2
  71. package/resources/mcp/index.d.ts.map +1 -1
  72. package/resources/mcp/index.js +3 -3
  73. package/resources/mcp/index.js.map +1 -1
  74. package/resources/mcp/index.mjs +1 -1
  75. package/resources/mcp/index.mjs.map +1 -1
  76. package/resources/mcp/mcp.d.mts +193 -85
  77. package/resources/mcp/mcp.d.mts.map +1 -1
  78. package/resources/mcp/mcp.d.ts +193 -85
  79. package/resources/mcp/mcp.d.ts.map +1 -1
  80. package/resources/mcp/mcp.js +37 -26
  81. package/resources/mcp/mcp.js.map +1 -1
  82. package/resources/mcp/mcp.mjs +37 -26
  83. package/resources/mcp/mcp.mjs.map +1 -1
  84. package/resources/org/project/api-keys.d.mts +17 -2
  85. package/resources/org/project/api-keys.d.mts.map +1 -1
  86. package/resources/org/project/api-keys.d.ts +17 -2
  87. package/resources/org/project/api-keys.d.ts.map +1 -1
  88. package/resources/team-members.d.mts +7 -7
  89. package/resources/team-members.d.mts.map +1 -1
  90. package/resources/team-members.d.ts +7 -7
  91. package/resources/team-members.d.ts.map +1 -1
  92. package/resources/tools.d.mts +6 -6
  93. package/resources/tools.d.mts.map +1 -1
  94. package/resources/tools.d.ts +6 -6
  95. package/resources/tools.d.ts.map +1 -1
  96. package/resources/tools.js +6 -6
  97. package/resources/tools.js.map +1 -1
  98. package/resources/tools.mjs +6 -6
  99. package/resources/tools.mjs.map +1 -1
  100. package/resources/trigger-instances/index.d.mts +1 -1
  101. package/resources/trigger-instances/index.d.mts.map +1 -1
  102. package/resources/trigger-instances/index.d.ts +1 -1
  103. package/resources/trigger-instances/index.d.ts.map +1 -1
  104. package/resources/trigger-instances/index.js.map +1 -1
  105. package/resources/trigger-instances/index.mjs.map +1 -1
  106. package/resources/trigger-instances/trigger-instances.d.mts +77 -7
  107. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  108. package/resources/trigger-instances/trigger-instances.d.ts +77 -7
  109. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  110. package/resources/trigger-instances/trigger-instances.js +7 -0
  111. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  112. package/resources/trigger-instances/trigger-instances.mjs +7 -0
  113. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  114. package/src/client.ts +19 -4
  115. package/src/resources/auth/auth.ts +15 -0
  116. package/src/resources/auth/index.ts +4 -0
  117. package/src/resources/auth/session.ts +292 -0
  118. package/src/resources/auth-configs.ts +5 -5
  119. package/src/resources/auth.ts +3 -0
  120. package/src/resources/files.ts +19 -0
  121. package/src/resources/index.ts +8 -2
  122. package/src/resources/mcp/custom.ts +103 -0
  123. package/src/resources/mcp/index.ts +5 -3
  124. package/src/resources/mcp/mcp.ts +228 -102
  125. package/src/resources/org/project/api-keys.ts +20 -2
  126. package/src/resources/team-members.ts +7 -7
  127. package/src/resources/tools.ts +8 -8
  128. package/src/resources/trigger-instances/index.ts +3 -0
  129. package/src/resources/trigger-instances/trigger-instances.ts +103 -6
  130. package/src/version.ts +1 -1
  131. package/version.d.mts +1 -1
  132. package/version.d.ts +1 -1
  133. package/version.js +1 -1
  134. package/version.mjs +1 -1
  135. package/resources/mcp/command.d.mts +0 -4
  136. package/resources/mcp/command.d.mts.map +0 -1
  137. package/resources/mcp/command.d.ts +0 -4
  138. package/resources/mcp/command.d.ts.map +0 -1
  139. package/resources/mcp/command.js +0 -9
  140. package/resources/mcp/command.js.map +0 -1
  141. package/resources/mcp/command.mjs +0 -5
  142. package/resources/mcp/command.mjs.map +0 -1
  143. package/src/resources/mcp/command.ts +0 -5
@@ -112,12 +112,12 @@ export interface AuthConfigCreateResponse {
112
112
  export namespace AuthConfigCreateResponse {
113
113
  export interface AuthConfig {
114
114
  /**
115
- * The auth config id of the app (must be a valid auth config id)
115
+ * The auth config id of the toolkit (must be a valid auth config id)
116
116
  */
117
117
  id: string;
118
118
 
119
119
  /**
120
- * The authentication mode of the app
120
+ * The authentication mode of the toolkit
121
121
  */
122
122
  auth_scheme: string;
123
123
 
@@ -127,7 +127,7 @@ export namespace AuthConfigCreateResponse {
127
127
  is_composio_managed: boolean;
128
128
 
129
129
  /**
130
- * The actions that the user can perform on the auth config
130
+ * The tools that the user can use with the auth config
131
131
  */
132
132
  restrict_to_following_tools?: Array<string>;
133
133
  }
@@ -441,7 +441,7 @@ export interface AuthConfigCreateParams {
441
441
  export namespace AuthConfigCreateParams {
442
442
  export interface Toolkit {
443
443
  /**
444
- * List of app unique keys to filter by
444
+ * List of toolkits unique keys to filter by
445
445
  */
446
446
  slug: string;
447
447
  }
@@ -535,7 +535,7 @@ export interface AuthConfigListParams {
535
535
  /**
536
536
  * The number of auth configs to return
537
537
  */
538
- limit?: string;
538
+ limit?: number | null;
539
539
 
540
540
  /**
541
541
  * Show disabled auth configs
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './auth/index';
@@ -99,6 +99,12 @@ export namespace FileCreatePresignedURLResponse {
99
99
  * URL of the existing request file. Example:
100
100
  * "https://storage.example.com/projects/123/files/photo-1234.jpg"
101
101
  */
102
+ existing_url: string;
103
+
104
+ /**
105
+ * [DEPRECATED] Use existing_url instead. URL of the existing request file.
106
+ * Example: "https://storage.example.com/projects/123/files/photo-1234.jpg"
107
+ */
102
108
  existingUrl: string;
103
109
 
104
110
  /**
@@ -127,6 +133,12 @@ export namespace FileCreatePresignedURLResponse {
127
133
  * Presigned URL for upload. Example:
128
134
  * "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
129
135
  */
136
+ new_presigned_url: string;
137
+
138
+ /**
139
+ * [DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example:
140
+ * "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
141
+ */
130
142
  newPresignedUrl: string;
131
143
 
132
144
  /**
@@ -155,6 +167,13 @@ export namespace FileCreatePresignedURLResponse {
155
167
  * Presigned URL for upload. Example:
156
168
  * "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
157
169
  */
170
+ update_presigned_url: string;
171
+
172
+ /**
173
+ * [DEPRECATED] Use update_presigned_url instead. Presigned URL for upload.
174
+ * Example:
175
+ * "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
176
+ */
158
177
  updatePresignedUrl: string;
159
178
  }
160
179
  }
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export { Auth } from './auth/auth';
3
4
  export {
4
5
  AuthConfigs,
5
6
  type AuthConfigCreateResponse,
@@ -34,14 +35,16 @@ export {
34
35
  } from './files';
35
36
  export {
36
37
  Mcp,
38
+ type McpCreateResponse,
37
39
  type McpRetrieveResponse,
38
40
  type McpUpdateResponse,
41
+ type McpListResponse,
39
42
  type McpDeleteResponse,
40
43
  type McpRetrieveAppResponse,
41
- type McpValidateResponse,
44
+ type McpCreateParams,
42
45
  type McpUpdateParams,
46
+ type McpListParams,
43
47
  type McpRetrieveAppParams,
44
- type McpValidateParams,
45
48
  } from './mcp/mcp';
46
49
  export {
47
50
  Migration,
@@ -81,9 +84,12 @@ export {
81
84
  } from './tools';
82
85
  export {
83
86
  TriggerInstances,
87
+ type TriggerInstanceDeleteResponse,
84
88
  type TriggerInstanceListActiveResponse,
89
+ type TriggerInstanceUpdateStatusResponse,
85
90
  type TriggerInstanceUpsertResponse,
86
91
  type TriggerInstanceListActiveParams,
92
+ type TriggerInstanceUpdateStatusParams,
87
93
  type TriggerInstanceUpsertParams,
88
94
  } from './trigger-instances/trigger-instances';
89
95
  export {
@@ -0,0 +1,103 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+
7
+ export class Custom extends APIResource {
8
+ /**
9
+ * Creates a new Model Control Protocol (MCP) server instance that can integrate
10
+ * with multiple applications or toolkits simultaneously. This endpoint allows you
11
+ * to create a server that can access tools from different applications, making it
12
+ * suitable for complex workflows that span multiple services.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const custom = await client.mcp.custom.create({
17
+ * name: 'Development Integration Server',
18
+ * toolkits: ['github', 'jira'],
19
+ * });
20
+ * ```
21
+ */
22
+ create(body: CustomCreateParams, options?: RequestOptions): APIPromise<CustomCreateResponse> {
23
+ return this._client.post('/api/v3/mcp/servers/custom', { body, ...options });
24
+ }
25
+ }
26
+
27
+ /**
28
+ * Response for a successfully created custom MCP server with multiple applications
29
+ */
30
+ export interface CustomCreateResponse {
31
+ /**
32
+ * Unique identifier for the newly created custom MCP server
33
+ */
34
+ id: string;
35
+
36
+ /**
37
+ * List of tool identifiers that are enabled for this server
38
+ */
39
+ allowed_tools: Array<string>;
40
+
41
+ /**
42
+ * Set of command line instructions for connecting various clients to this MCP
43
+ * server
44
+ */
45
+ commands: CustomCreateResponse.Commands;
46
+
47
+ /**
48
+ * URL endpoint for establishing Server-Sent Events (SSE) connection to this MCP
49
+ * server
50
+ */
51
+ mcp_url: string;
52
+
53
+ /**
54
+ * Human-readable name of the custom MCP server
55
+ */
56
+ name: string;
57
+ }
58
+
59
+ export namespace CustomCreateResponse {
60
+ /**
61
+ * Set of command line instructions for connecting various clients to this MCP
62
+ * server
63
+ */
64
+ export interface Commands {
65
+ /**
66
+ * Command line instruction for Claude client setup
67
+ */
68
+ claude: string;
69
+
70
+ /**
71
+ * Command line instruction for Cursor client setup
72
+ */
73
+ cursor: string;
74
+
75
+ /**
76
+ * Command line instruction for Windsurf client setup
77
+ */
78
+ windsurf: string;
79
+ }
80
+ }
81
+
82
+ export interface CustomCreateParams {
83
+ /**
84
+ * Human-readable name to identify this custom MCP server (4-25 characters,
85
+ * alphanumeric and hyphens only)
86
+ */
87
+ name: string;
88
+
89
+ /**
90
+ * List of application/toolkit identifiers to enable for this server
91
+ */
92
+ toolkits: Array<string>;
93
+
94
+ /**
95
+ * Additional custom tool identifiers to enable that aren't part of standard
96
+ * toolkits
97
+ */
98
+ custom_tools?: Array<string>;
99
+ }
100
+
101
+ export declare namespace Custom {
102
+ export { type CustomCreateResponse as CustomCreateResponse, type CustomCreateParams as CustomCreateParams };
103
+ }
@@ -1,14 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Command } from './command';
3
+ export { Custom, type CustomCreateResponse, type CustomCreateParams } from './custom';
4
4
  export {
5
5
  Mcp,
6
+ type McpCreateResponse,
6
7
  type McpRetrieveResponse,
7
8
  type McpUpdateResponse,
9
+ type McpListResponse,
8
10
  type McpDeleteResponse,
9
11
  type McpRetrieveAppResponse,
10
- type McpValidateResponse,
12
+ type McpCreateParams,
11
13
  type McpUpdateParams,
14
+ type McpListParams,
12
15
  type McpRetrieveAppParams,
13
- type McpValidateParams,
14
16
  } from './mcp';