@composio/client 0.1.0-alpha.32 → 0.1.0-alpha.33
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/CHANGELOG.md +9 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +20 -14
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +20 -14
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +1 -1
- package/resources/auth-configs.mjs +1 -1
- package/resources/connected-accounts.d.mts +1423 -623
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +1423 -623
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +4 -0
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +4 -0
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +1 -45
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +1 -45
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/org/project/api-keys.js +0 -18
- package/resources/org/project/api-keys.js.map +1 -1
- package/resources/org/project/api-keys.mjs +0 -18
- package/resources/org/project/api-keys.mjs.map +1 -1
- package/resources/org/project/index.d.mts +1 -1
- package/resources/org/project/index.d.mts.map +1 -1
- package/resources/org/project/index.d.ts +1 -1
- package/resources/org/project/index.d.ts.map +1 -1
- package/resources/org/project/index.js.map +1 -1
- package/resources/org/project/index.mjs.map +1 -1
- package/resources/org/project/project.d.mts +2 -2
- package/resources/org/project/project.d.mts.map +1 -1
- package/resources/org/project/project.d.ts +2 -2
- package/resources/org/project/project.d.ts.map +1 -1
- package/resources/org/project/project.js.map +1 -1
- package/resources/org/project/project.mjs.map +1 -1
- package/resources/tools.d.mts +14 -2
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +14 -2
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -2
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -2
- package/resources/tools.mjs.map +1 -1
- package/resources/triggers-types.d.mts +14 -2
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +14 -2
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.js +2 -2
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +2 -2
- package/resources/triggers-types.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/auth-configs.ts +24 -9
- package/src/resources/connected-accounts.ts +3361 -1749
- package/src/resources/index.ts +2 -0
- package/src/resources/mcp/mcp.ts +5 -0
- package/src/resources/org/project/api-keys.ts +0 -53
- package/src/resources/org/project/index.ts +0 -1
- package/src/resources/org/project/project.ts +0 -2
- package/src/resources/tools.ts +19 -2
- package/src/resources/triggers-types.ts +19 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/index.ts
CHANGED
|
@@ -85,6 +85,7 @@ export {
|
|
|
85
85
|
type ToolGetInputResponse,
|
|
86
86
|
type ToolProxyResponse,
|
|
87
87
|
type ToolRetrieveEnumResponse,
|
|
88
|
+
type ToolRetrieveParams,
|
|
88
89
|
type ToolListParams,
|
|
89
90
|
type ToolExecuteParams,
|
|
90
91
|
type ToolGetInputParams,
|
|
@@ -102,5 +103,6 @@ export {
|
|
|
102
103
|
type TriggersTypeRetrieveResponse,
|
|
103
104
|
type TriggersTypeListResponse,
|
|
104
105
|
type TriggersTypeRetrieveEnumResponse,
|
|
106
|
+
type TriggersTypeRetrieveParams,
|
|
105
107
|
type TriggersTypeListParams,
|
|
106
108
|
} from './triggers-types';
|
package/src/resources/mcp/mcp.ts
CHANGED
|
@@ -772,6 +772,11 @@ export interface McpCreateParams {
|
|
|
772
772
|
* Whether the MCP server is managed by Composio
|
|
773
773
|
*/
|
|
774
774
|
managed_auth_via_composio?: boolean;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* List of NO_AUTH apps to enable for this MCP server
|
|
778
|
+
*/
|
|
779
|
+
no_auth_apps?: Array<string>;
|
|
775
780
|
}
|
|
776
781
|
|
|
777
782
|
export interface McpUpdateParams {
|
|
@@ -64,25 +64,6 @@ export class APIKeys extends APIResource {
|
|
|
64
64
|
const { projectId } = params;
|
|
65
65
|
return this._client.delete(path`/api/v3/org/project/${projectId}/api_keys/remove/${id}`, options);
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Retrieves an existing API key for the project or creates a new one if none
|
|
70
|
-
* exists. This endpoint is useful for ensuring a project always has at least one
|
|
71
|
-
* API key without the risk of creating duplicates. If an API key already exists,
|
|
72
|
-
* it returns the existing key. If no API keys exist for the project, it creates a
|
|
73
|
-
* new one with an automatically generated name.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* const response =
|
|
78
|
-
* await client.org.project.apiKeys.createAPIKey(
|
|
79
|
-
* 'proj_abc123xyz456',
|
|
80
|
-
* );
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
createAPIKey(projectID: string, options?: RequestOptions): APIPromise<APIKeyCreateAPIKeyResponse> {
|
|
84
|
-
return this._client.post(path`/api/v3/org/project/${projectID}/api_keys/create-api-key`, options);
|
|
85
|
-
}
|
|
86
67
|
}
|
|
87
68
|
|
|
88
69
|
/**
|
|
@@ -173,39 +154,6 @@ export interface APIKeyDeleteResponse {
|
|
|
173
154
|
success: boolean;
|
|
174
155
|
}
|
|
175
156
|
|
|
176
|
-
/**
|
|
177
|
-
* API key object containing the key details
|
|
178
|
-
*/
|
|
179
|
-
export interface APIKeyCreateAPIKeyResponse {
|
|
180
|
-
/**
|
|
181
|
-
* Database record identifier for the API key
|
|
182
|
-
*/
|
|
183
|
-
id: string;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* UTC timestamp indicating when the API key was created
|
|
187
|
-
*/
|
|
188
|
-
created_at: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* The API key string value that should be included in API requests. This value is
|
|
192
|
-
* only shown once.
|
|
193
|
-
*/
|
|
194
|
-
key: string;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Name assigned to help identify the key's purpose. For auto-generated keys, this
|
|
198
|
-
* will be a random name.
|
|
199
|
-
*/
|
|
200
|
-
name: string;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
204
|
-
* be null for newly created keys.
|
|
205
|
-
*/
|
|
206
|
-
last_used_at?: string;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
157
|
export interface APIKeyCreateParams {
|
|
210
158
|
/**
|
|
211
159
|
* A user-friendly name to identify the API key's purpose (e.g., "Production
|
|
@@ -226,7 +174,6 @@ export declare namespace APIKeys {
|
|
|
226
174
|
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
227
175
|
type APIKeyListResponse as APIKeyListResponse,
|
|
228
176
|
type APIKeyDeleteResponse as APIKeyDeleteResponse,
|
|
229
|
-
type APIKeyCreateAPIKeyResponse as APIKeyCreateAPIKeyResponse,
|
|
230
177
|
type APIKeyCreateParams as APIKeyCreateParams,
|
|
231
178
|
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
232
179
|
};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as APIKeysAPI from './api-keys';
|
|
5
5
|
import {
|
|
6
|
-
APIKeyCreateAPIKeyResponse,
|
|
7
6
|
APIKeyCreateParams,
|
|
8
7
|
APIKeyCreateResponse,
|
|
9
8
|
APIKeyDeleteParams,
|
|
@@ -358,7 +357,6 @@ export declare namespace Project {
|
|
|
358
357
|
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
359
358
|
type APIKeyListResponse as APIKeyListResponse,
|
|
360
359
|
type APIKeyDeleteResponse as APIKeyDeleteResponse,
|
|
361
|
-
type APIKeyCreateAPIKeyResponse as APIKeyCreateAPIKeyResponse,
|
|
362
360
|
type APIKeyCreateParams as APIKeyCreateParams,
|
|
363
361
|
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
364
362
|
};
|
package/src/resources/tools.ts
CHANGED
|
@@ -16,8 +16,12 @@ export class Tools extends APIResource {
|
|
|
16
16
|
* const tool = await client.tools.retrieve('tool_slug');
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
retrieve(
|
|
20
|
-
|
|
19
|
+
retrieve(
|
|
20
|
+
toolSlug: string,
|
|
21
|
+
query: ToolRetrieveParams | null | undefined = {},
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): APIPromise<ToolRetrieveResponse> {
|
|
24
|
+
return this._client.get(path`/api/v3/tools/${toolSlug}`, { query, ...options });
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
/**
|
|
@@ -401,6 +405,13 @@ export interface ToolProxyResponse {
|
|
|
401
405
|
*/
|
|
402
406
|
export type ToolRetrieveEnumResponse = Array<string>;
|
|
403
407
|
|
|
408
|
+
export interface ToolRetrieveParams {
|
|
409
|
+
/**
|
|
410
|
+
* Optional version of the tool to retrieve
|
|
411
|
+
*/
|
|
412
|
+
version?: string;
|
|
413
|
+
}
|
|
414
|
+
|
|
404
415
|
export interface ToolListParams {
|
|
405
416
|
/**
|
|
406
417
|
* Filter tools by auth config id
|
|
@@ -455,6 +466,11 @@ export interface ToolListParams {
|
|
|
455
466
|
* The slug of the toolkit to filter by
|
|
456
467
|
*/
|
|
457
468
|
toolkit_slug?: string;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Can be omitted, null, a string, or an object mapping toolkit names to versions
|
|
472
|
+
*/
|
|
473
|
+
toolkit_versions?: string | { [key: string]: string };
|
|
458
474
|
}
|
|
459
475
|
|
|
460
476
|
export interface ToolExecuteParams {
|
|
@@ -1592,6 +1608,7 @@ export declare namespace Tools {
|
|
|
1592
1608
|
type ToolGetInputResponse as ToolGetInputResponse,
|
|
1593
1609
|
type ToolProxyResponse as ToolProxyResponse,
|
|
1594
1610
|
type ToolRetrieveEnumResponse as ToolRetrieveEnumResponse,
|
|
1611
|
+
type ToolRetrieveParams as ToolRetrieveParams,
|
|
1595
1612
|
type ToolListParams as ToolListParams,
|
|
1596
1613
|
type ToolExecuteParams as ToolExecuteParams,
|
|
1597
1614
|
type ToolGetInputParams as ToolGetInputParams,
|
|
@@ -10,8 +10,12 @@ export class TriggersTypes extends APIResource {
|
|
|
10
10
|
* Retrieve detailed information about a specific trigger type using its slug
|
|
11
11
|
* identifier
|
|
12
12
|
*/
|
|
13
|
-
retrieve(
|
|
14
|
-
|
|
13
|
+
retrieve(
|
|
14
|
+
slug: string,
|
|
15
|
+
query: TriggersTypeRetrieveParams | null | undefined = {},
|
|
16
|
+
options?: RequestOptions,
|
|
17
|
+
): APIPromise<TriggersTypeRetrieveResponse> {
|
|
18
|
+
return this._client.get(path`/api/v3/triggers_types/${slug}`, { query, ...options });
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
/**
|
|
@@ -181,6 +185,13 @@ export namespace TriggersTypeListResponse {
|
|
|
181
185
|
*/
|
|
182
186
|
export type TriggersTypeRetrieveEnumResponse = Array<string>;
|
|
183
187
|
|
|
188
|
+
export interface TriggersTypeRetrieveParams {
|
|
189
|
+
/**
|
|
190
|
+
* Optional version of the trigger type to retrieve
|
|
191
|
+
*/
|
|
192
|
+
version?: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
184
195
|
export interface TriggersTypeListParams {
|
|
185
196
|
/**
|
|
186
197
|
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
@@ -199,6 +210,11 @@ export interface TriggersTypeListParams {
|
|
|
199
210
|
* Array of toolkit slugs to filter triggers by
|
|
200
211
|
*/
|
|
201
212
|
toolkit_slugs?: Array<string> | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Can be omitted, null, a string, or an object mapping toolkit names to versions
|
|
216
|
+
*/
|
|
217
|
+
toolkit_versions?: string | { [key: string]: string };
|
|
202
218
|
}
|
|
203
219
|
|
|
204
220
|
export declare namespace TriggersTypes {
|
|
@@ -206,6 +222,7 @@ export declare namespace TriggersTypes {
|
|
|
206
222
|
type TriggersTypeRetrieveResponse as TriggersTypeRetrieveResponse,
|
|
207
223
|
type TriggersTypeListResponse as TriggersTypeListResponse,
|
|
208
224
|
type TriggersTypeRetrieveEnumResponse as TriggersTypeRetrieveEnumResponse,
|
|
225
|
+
type TriggersTypeRetrieveParams as TriggersTypeRetrieveParams,
|
|
209
226
|
type TriggersTypeListParams as TriggersTypeListParams,
|
|
210
227
|
};
|
|
211
228
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.33'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.33";
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.33";
|
|
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.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.33'; // 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.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.33'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|