@composio/client 0.1.0-alpha.1 → 0.1.0-alpha.6
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 +51 -0
- package/LICENSE +1 -1
- package/README.md +29 -29
- package/client.d.mts +16 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -13
- package/client.d.ts.map +1 -1
- package/client.js +54 -61
- package/client.js.map +1 -1
- package/client.mjs +52 -59
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +6 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +280 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +14 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/shims/getBuiltinModule.d.mts.map +1 -1
- package/internal/shims/getBuiltinModule.d.ts.map +1 -1
- package/internal/shims/getBuiltinModule.js +5 -2
- package/internal/shims/getBuiltinModule.js.map +1 -1
- package/internal/shims/getBuiltinModule.mjs +5 -2
- package/internal/shims/getBuiltinModule.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/action-execution.d.mts +1 -1
- package/resources/action-execution.d.mts.map +1 -1
- package/resources/action-execution.d.ts +1 -1
- package/resources/action-execution.d.ts.map +1 -1
- package/resources/cli.d.mts +124 -0
- package/resources/cli.d.mts.map +1 -0
- package/resources/cli.d.ts +124 -0
- package/resources/cli.d.ts.map +1 -0
- package/resources/cli.js +18 -0
- package/resources/cli.js.map +1 -0
- package/resources/cli.mjs +14 -0
- package/resources/cli.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/command.d.mts +34 -0
- package/resources/mcp/command.d.mts.map +1 -0
- package/resources/mcp/command.d.ts +34 -0
- package/resources/mcp/command.d.ts.map +1 -0
- package/resources/mcp/command.js +12 -0
- package/resources/mcp/command.js.map +1 -0
- package/resources/mcp/command.mjs +8 -0
- package/resources/mcp/command.mjs.map +1 -0
- package/resources/mcp/index.d.mts +3 -0
- package/resources/mcp/index.d.mts.map +1 -0
- package/resources/mcp/index.d.ts +3 -0
- package/resources/mcp/index.d.ts.map +1 -0
- package/resources/mcp/index.js +9 -0
- package/resources/mcp/index.js.map +1 -0
- package/resources/mcp/index.mjs +4 -0
- package/resources/mcp/index.mjs.map +1 -0
- package/resources/mcp/mcp.d.mts +378 -0
- package/resources/mcp/mcp.d.mts.map +1 -0
- package/resources/mcp/mcp.d.ts +378 -0
- package/resources/mcp/mcp.d.ts.map +1 -0
- package/resources/mcp/mcp.js +66 -0
- package/resources/mcp/mcp.js.map +1 -0
- package/resources/mcp/mcp.mjs +39 -0
- package/resources/mcp/mcp.mjs.map +1 -0
- package/resources/mcp.d.mts +2 -0
- package/resources/mcp.d.mts.map +1 -0
- package/resources/mcp.d.ts +2 -0
- package/resources/mcp.d.ts.map +1 -0
- package/resources/mcp.js +19 -0
- package/resources/mcp.js.map +1 -0
- package/resources/mcp.mjs +3 -0
- package/resources/mcp.mjs.map +1 -0
- package/src/client.ts +82 -47
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/shims/getBuiltinModule.ts +4 -2
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -4
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/action-execution.ts +1 -1
- package/src/resources/cli.ts +166 -0
- package/src/resources/index.ts +22 -0
- package/src/resources/mcp/command.ts +47 -0
- package/src/resources/mcp/index.ts +17 -0
- package/src/resources/mcp/mcp.ts +519 -0
- package/src/resources/mcp.ts +3 -0
- 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
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as CommandAPI from "./command.mjs";
|
|
3
|
+
import { Command, CommandGenerateParams, CommandGenerateResponse } from "./command.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Mcp extends APIResource {
|
|
7
|
+
command: CommandAPI.Command;
|
|
8
|
+
create(body: McpCreateParams, options?: RequestOptions): APIPromise<McpCreateResponse>;
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<McpRetrieveResponse>;
|
|
10
|
+
update(id: string, body?: McpUpdateParams | null | undefined, options?: RequestOptions): APIPromise<McpUpdateResponse>;
|
|
11
|
+
list(query?: McpListParams | null | undefined, options?: RequestOptions): APIPromise<McpListResponse>;
|
|
12
|
+
delete(id: string, options?: RequestOptions): APIPromise<McpDeleteResponse>;
|
|
13
|
+
retrieveApp(appKey: string, options?: RequestOptions): APIPromise<McpRetrieveAppResponse>;
|
|
14
|
+
validate(uuid: string, params: McpValidateParams, options?: RequestOptions): APIPromise<McpValidateResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface McpCreateResponse {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the MCP server
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* The app IDs associated with the server
|
|
23
|
+
*/
|
|
24
|
+
apps: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
* The member ID who created the server
|
|
27
|
+
*/
|
|
28
|
+
member_id: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the MCP server
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Signed URL for the MCP server
|
|
35
|
+
*/
|
|
36
|
+
signed_url: string;
|
|
37
|
+
/**
|
|
38
|
+
* Last update timestamp of the MCP server
|
|
39
|
+
*/
|
|
40
|
+
updated_at: string;
|
|
41
|
+
/**
|
|
42
|
+
* The URL of the MCP server
|
|
43
|
+
*/
|
|
44
|
+
url: string;
|
|
45
|
+
/**
|
|
46
|
+
* Auth configuration
|
|
47
|
+
*/
|
|
48
|
+
auth_configs?: Record<string, unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Connected account IDs
|
|
51
|
+
*/
|
|
52
|
+
connected_account_ids?: Array<string>;
|
|
53
|
+
}
|
|
54
|
+
export interface McpRetrieveResponse {
|
|
55
|
+
/**
|
|
56
|
+
* The ID of the MCP server
|
|
57
|
+
*/
|
|
58
|
+
id: string;
|
|
59
|
+
/**
|
|
60
|
+
* The app IDs associated with the server
|
|
61
|
+
*/
|
|
62
|
+
apps: Array<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Client ID associated with the MCP server
|
|
65
|
+
*/
|
|
66
|
+
client_id: string;
|
|
67
|
+
/**
|
|
68
|
+
* Creation timestamp of the MCP server
|
|
69
|
+
*/
|
|
70
|
+
created_at: string;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the MCP server is deleted
|
|
73
|
+
*/
|
|
74
|
+
deleted: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The member ID who created the server
|
|
77
|
+
*/
|
|
78
|
+
member_id: string;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the MCP server
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* Last update timestamp of the MCP server
|
|
85
|
+
*/
|
|
86
|
+
updated_at: string;
|
|
87
|
+
/**
|
|
88
|
+
* The URL of the MCP server
|
|
89
|
+
*/
|
|
90
|
+
url: string;
|
|
91
|
+
/**
|
|
92
|
+
* Actions available for the MCP server
|
|
93
|
+
*/
|
|
94
|
+
actions?: Record<string, unknown>;
|
|
95
|
+
/**
|
|
96
|
+
* Auth configuration
|
|
97
|
+
*/
|
|
98
|
+
auth_configs?: Record<string, unknown>;
|
|
99
|
+
/**
|
|
100
|
+
* Connected account IDs
|
|
101
|
+
*/
|
|
102
|
+
connected_account_ids?: Array<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Whether custom auth headers are enabled
|
|
105
|
+
*/
|
|
106
|
+
custom_auth_headers?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Entity IDs associated with the server
|
|
109
|
+
*/
|
|
110
|
+
entity_ids?: Array<string>;
|
|
111
|
+
}
|
|
112
|
+
export interface McpUpdateResponse {
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the MCP server
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
/**
|
|
118
|
+
* The app IDs associated with the server
|
|
119
|
+
*/
|
|
120
|
+
apps: Array<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Client ID associated with the MCP server
|
|
123
|
+
*/
|
|
124
|
+
client_id: string;
|
|
125
|
+
/**
|
|
126
|
+
* Creation timestamp of the MCP server
|
|
127
|
+
*/
|
|
128
|
+
created_at: string;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the MCP server is deleted
|
|
131
|
+
*/
|
|
132
|
+
deleted: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* The member ID who created the server
|
|
135
|
+
*/
|
|
136
|
+
member_id: string;
|
|
137
|
+
/**
|
|
138
|
+
* The name of the MCP server
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
* Last update timestamp of the MCP server
|
|
143
|
+
*/
|
|
144
|
+
updated_at: string;
|
|
145
|
+
/**
|
|
146
|
+
* The URL of the MCP server
|
|
147
|
+
*/
|
|
148
|
+
url: string;
|
|
149
|
+
/**
|
|
150
|
+
* Actions available for the MCP server
|
|
151
|
+
*/
|
|
152
|
+
actions?: Record<string, unknown>;
|
|
153
|
+
/**
|
|
154
|
+
* Auth configuration
|
|
155
|
+
*/
|
|
156
|
+
auth_configs?: Record<string, unknown>;
|
|
157
|
+
/**
|
|
158
|
+
* Connected account IDs
|
|
159
|
+
*/
|
|
160
|
+
connected_account_ids?: Array<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Whether custom auth headers are enabled
|
|
163
|
+
*/
|
|
164
|
+
custom_auth_headers?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Entity IDs associated with the server
|
|
167
|
+
*/
|
|
168
|
+
entity_ids?: Array<string>;
|
|
169
|
+
}
|
|
170
|
+
export type McpListResponse = Array<McpListResponse.McpListResponseItem>;
|
|
171
|
+
export declare namespace McpListResponse {
|
|
172
|
+
interface McpListResponseItem {
|
|
173
|
+
/**
|
|
174
|
+
* The ID of the MCP server
|
|
175
|
+
*/
|
|
176
|
+
id: string;
|
|
177
|
+
/**
|
|
178
|
+
* The app IDs associated with the server
|
|
179
|
+
*/
|
|
180
|
+
apps: Array<string>;
|
|
181
|
+
/**
|
|
182
|
+
* The member ID who created the server
|
|
183
|
+
*/
|
|
184
|
+
member_id: string;
|
|
185
|
+
/**
|
|
186
|
+
* The name of the MCP server
|
|
187
|
+
*/
|
|
188
|
+
name: string;
|
|
189
|
+
/**
|
|
190
|
+
* Last update timestamp of the MCP server
|
|
191
|
+
*/
|
|
192
|
+
updated_at: string;
|
|
193
|
+
/**
|
|
194
|
+
* The URL of the MCP server
|
|
195
|
+
*/
|
|
196
|
+
url: string;
|
|
197
|
+
/**
|
|
198
|
+
* Auth configuration
|
|
199
|
+
*/
|
|
200
|
+
auth_configs?: Record<string, unknown>;
|
|
201
|
+
/**
|
|
202
|
+
* Connected account IDs
|
|
203
|
+
*/
|
|
204
|
+
connected_account_ids?: Array<string>;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
export interface McpDeleteResponse {
|
|
208
|
+
/**
|
|
209
|
+
* Operation success status
|
|
210
|
+
*/
|
|
211
|
+
success: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface McpRetrieveAppResponse {
|
|
214
|
+
items: Array<McpRetrieveAppResponse.Item>;
|
|
215
|
+
}
|
|
216
|
+
export declare namespace McpRetrieveAppResponse {
|
|
217
|
+
interface Item {
|
|
218
|
+
/**
|
|
219
|
+
* The ID of the MCP server
|
|
220
|
+
*/
|
|
221
|
+
id: string;
|
|
222
|
+
/**
|
|
223
|
+
* The app IDs associated with the server
|
|
224
|
+
*/
|
|
225
|
+
apps: Array<string>;
|
|
226
|
+
/**
|
|
227
|
+
* The member ID who created the server
|
|
228
|
+
*/
|
|
229
|
+
member_id: string;
|
|
230
|
+
/**
|
|
231
|
+
* The name of the MCP server
|
|
232
|
+
*/
|
|
233
|
+
name: string;
|
|
234
|
+
/**
|
|
235
|
+
* Last update timestamp of the MCP server
|
|
236
|
+
*/
|
|
237
|
+
updated_at: string;
|
|
238
|
+
/**
|
|
239
|
+
* The URL of the MCP server
|
|
240
|
+
*/
|
|
241
|
+
url: string;
|
|
242
|
+
/**
|
|
243
|
+
* Auth configuration
|
|
244
|
+
*/
|
|
245
|
+
auth_configs?: Record<string, unknown>;
|
|
246
|
+
/**
|
|
247
|
+
* Connected account IDs
|
|
248
|
+
*/
|
|
249
|
+
connected_account_ids?: Array<string>;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
export interface McpValidateResponse {
|
|
253
|
+
/**
|
|
254
|
+
* The ID of the MCP server
|
|
255
|
+
*/
|
|
256
|
+
id: string;
|
|
257
|
+
client: McpValidateResponse.Client;
|
|
258
|
+
/**
|
|
259
|
+
* The name of the MCP server
|
|
260
|
+
*/
|
|
261
|
+
name: string;
|
|
262
|
+
/**
|
|
263
|
+
* The URL of the MCP server
|
|
264
|
+
*/
|
|
265
|
+
url: string;
|
|
266
|
+
userData: McpValidateResponse.UserData;
|
|
267
|
+
}
|
|
268
|
+
export declare namespace McpValidateResponse {
|
|
269
|
+
interface Client {
|
|
270
|
+
/**
|
|
271
|
+
* The client ID
|
|
272
|
+
*/
|
|
273
|
+
id: string;
|
|
274
|
+
/**
|
|
275
|
+
* The organization ID
|
|
276
|
+
*/
|
|
277
|
+
orgId: string;
|
|
278
|
+
}
|
|
279
|
+
interface UserData {
|
|
280
|
+
/**
|
|
281
|
+
* The user ID
|
|
282
|
+
*/
|
|
283
|
+
id: string;
|
|
284
|
+
/**
|
|
285
|
+
* The API key
|
|
286
|
+
*/
|
|
287
|
+
apiKey: string;
|
|
288
|
+
/**
|
|
289
|
+
* The user email
|
|
290
|
+
*/
|
|
291
|
+
email: string;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
export interface McpCreateParams {
|
|
295
|
+
/**
|
|
296
|
+
* Name of the MCP server
|
|
297
|
+
*/
|
|
298
|
+
name: string;
|
|
299
|
+
/**
|
|
300
|
+
* Actions available for the server
|
|
301
|
+
*/
|
|
302
|
+
actions?: Array<string>;
|
|
303
|
+
/**
|
|
304
|
+
* App IDs associated with the server
|
|
305
|
+
*/
|
|
306
|
+
apps?: Array<string>;
|
|
307
|
+
/**
|
|
308
|
+
* Auth configurations
|
|
309
|
+
*/
|
|
310
|
+
auth_configs?: Record<string, unknown>;
|
|
311
|
+
/**
|
|
312
|
+
* Connected account IDs
|
|
313
|
+
*/
|
|
314
|
+
connected_account_ids?: Array<string>;
|
|
315
|
+
/**
|
|
316
|
+
* Whether to use custom auth headers
|
|
317
|
+
*/
|
|
318
|
+
custom_auth_headers?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Entity IDs
|
|
321
|
+
*/
|
|
322
|
+
entity_ids?: Array<string>;
|
|
323
|
+
/**
|
|
324
|
+
* Time to live for the server
|
|
325
|
+
*/
|
|
326
|
+
ttl?: '1d' | '3d' | '1 month' | 'no expiration';
|
|
327
|
+
}
|
|
328
|
+
export interface McpUpdateParams {
|
|
329
|
+
/**
|
|
330
|
+
* Actions available for the server
|
|
331
|
+
*/
|
|
332
|
+
actions?: Array<string>;
|
|
333
|
+
/**
|
|
334
|
+
* App IDs associated with the server
|
|
335
|
+
*/
|
|
336
|
+
apps?: Array<string>;
|
|
337
|
+
/**
|
|
338
|
+
* Name of the MCP server
|
|
339
|
+
*/
|
|
340
|
+
name?: string;
|
|
341
|
+
}
|
|
342
|
+
export interface McpListParams {
|
|
343
|
+
/**
|
|
344
|
+
* App IDs to filter by
|
|
345
|
+
*/
|
|
346
|
+
app_id?: Array<string>;
|
|
347
|
+
/**
|
|
348
|
+
* Connected account IDs to filter by
|
|
349
|
+
*/
|
|
350
|
+
connected_account_id?: Array<string>;
|
|
351
|
+
/**
|
|
352
|
+
* Cursor for pagination
|
|
353
|
+
*/
|
|
354
|
+
cursor?: number | null;
|
|
355
|
+
/**
|
|
356
|
+
* Entity IDs to filter by
|
|
357
|
+
*/
|
|
358
|
+
entity_id?: Array<string>;
|
|
359
|
+
/**
|
|
360
|
+
* Integration ID to filter by
|
|
361
|
+
*/
|
|
362
|
+
integration_id?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Limit for pagination
|
|
365
|
+
*/
|
|
366
|
+
limit?: number | null;
|
|
367
|
+
}
|
|
368
|
+
export interface McpValidateParams {
|
|
369
|
+
/**
|
|
370
|
+
* Admin token
|
|
371
|
+
*/
|
|
372
|
+
'x-admin-token': string;
|
|
373
|
+
}
|
|
374
|
+
export declare namespace Mcp {
|
|
375
|
+
export { type McpCreateResponse as McpCreateResponse, type McpRetrieveResponse as McpRetrieveResponse, type McpUpdateResponse as McpUpdateResponse, type McpListResponse as McpListResponse, type McpDeleteResponse as McpDeleteResponse, type McpRetrieveAppResponse as McpRetrieveAppResponse, type McpValidateResponse as McpValidateResponse, type McpCreateParams as McpCreateParams, type McpUpdateParams as McpUpdateParams, type McpListParams as McpListParams, type McpValidateParams as McpValidateParams, };
|
|
376
|
+
export { Command as Command, type CommandGenerateResponse as CommandGenerateResponse, type CommandGenerateParams as CommandGenerateParams, };
|
|
377
|
+
}
|
|
378
|
+
//# sourceMappingURL=mcp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