@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.
- package/CHANGELOG.md +24 -0
- package/README.md +7 -7
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/auth.d.mts +10 -0
- package/resources/auth/auth.d.mts.map +1 -0
- package/resources/auth/auth.d.ts +10 -0
- package/resources/auth/auth.d.ts.map +1 -0
- package/resources/auth/auth.js +17 -0
- package/resources/auth/auth.js.map +1 -0
- package/resources/auth/auth.mjs +12 -0
- package/resources/auth/auth.mjs.map +1 -0
- package/resources/auth/index.d.mts +3 -0
- package/resources/auth/index.d.mts.map +1 -0
- package/resources/auth/index.d.ts +3 -0
- package/resources/auth/index.d.ts.map +1 -0
- package/resources/auth/index.js +9 -0
- package/resources/auth/index.js.map +1 -0
- package/resources/auth/index.mjs +4 -0
- package/resources/auth/index.mjs.map +1 -0
- package/resources/auth/session.d.mts +240 -0
- package/resources/auth/session.d.mts.map +1 -0
- package/resources/auth/session.d.ts +240 -0
- package/resources/auth/session.d.ts.map +1 -0
- package/resources/auth/session.js +19 -0
- package/resources/auth/session.js.map +1 -0
- package/resources/auth/session.mjs +15 -0
- package/resources/auth/session.mjs.map +1 -0
- package/resources/auth-configs.d.mts +5 -5
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +5 -5
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth.d.mts +2 -0
- package/resources/auth.d.mts.map +1 -0
- package/resources/auth.d.ts +2 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +3 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/files.d.mts +16 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +16 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/custom.d.mts +87 -0
- package/resources/mcp/custom.d.mts.map +1 -0
- package/resources/mcp/custom.d.ts +87 -0
- package/resources/mcp/custom.d.ts.map +1 -0
- package/resources/mcp/custom.js +26 -0
- package/resources/mcp/custom.js.map +1 -0
- package/resources/mcp/custom.mjs +22 -0
- package/resources/mcp/custom.mjs.map +1 -0
- package/resources/mcp/index.d.mts +2 -2
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts +2 -2
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.js +3 -3
- package/resources/mcp/index.js.map +1 -1
- package/resources/mcp/index.mjs +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +193 -85
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +193 -85
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.js +37 -26
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +37 -26
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/org/project/api-keys.d.mts +17 -2
- package/resources/org/project/api-keys.d.mts.map +1 -1
- package/resources/org/project/api-keys.d.ts +17 -2
- package/resources/org/project/api-keys.d.ts.map +1 -1
- package/resources/team-members.d.mts +7 -7
- package/resources/team-members.d.mts.map +1 -1
- package/resources/team-members.d.ts +7 -7
- package/resources/team-members.d.ts.map +1 -1
- package/resources/tools.d.mts +6 -6
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -6
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.js.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +77 -7
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +77 -7
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +7 -0
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +7 -0
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/src/client.ts +19 -4
- package/src/resources/auth/auth.ts +15 -0
- package/src/resources/auth/index.ts +4 -0
- package/src/resources/auth/session.ts +292 -0
- package/src/resources/auth-configs.ts +5 -5
- package/src/resources/auth.ts +3 -0
- package/src/resources/files.ts +19 -0
- package/src/resources/index.ts +8 -2
- package/src/resources/mcp/custom.ts +103 -0
- package/src/resources/mcp/index.ts +5 -3
- package/src/resources/mcp/mcp.ts +228 -102
- package/src/resources/org/project/api-keys.ts +20 -2
- package/src/resources/team-members.ts +7 -7
- package/src/resources/tools.ts +8 -8
- package/src/resources/trigger-instances/index.ts +3 -0
- package/src/resources/trigger-instances/trigger-instances.ts +103 -6
- 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/resources/mcp/command.d.mts +0 -4
- package/resources/mcp/command.d.mts.map +0 -1
- package/resources/mcp/command.d.ts +0 -4
- package/resources/mcp/command.d.ts.map +0 -1
- package/resources/mcp/command.js +0 -9
- package/resources/mcp/command.js.map +0 -1
- package/resources/mcp/command.mjs +0 -5
- package/resources/mcp/command.mjs.map +0 -1
- package/src/resources/mcp/command.ts +0 -5
package/src/resources/mcp/mcp.ts
CHANGED
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
4
|
+
import * as CustomAPI from './custom';
|
|
5
|
+
import { Custom, CustomCreateParams, CustomCreateResponse } from './custom';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
|
-
import { buildHeaders } from '../../internal/headers';
|
|
8
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
9
8
|
import { path } from '../../internal/utils/path';
|
|
10
9
|
|
|
11
10
|
export class Mcp extends APIResource {
|
|
12
|
-
|
|
11
|
+
custom: CustomAPI.Custom = new CustomAPI.Custom(this._client);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new Model Control Protocol (MCP) server instance for the authenticated
|
|
15
|
+
* project. An MCP server provides a connection point for AI assistants to access
|
|
16
|
+
* your applications and services. The server is configured with specific
|
|
17
|
+
* authentication and tool permissions that determine what actions the connected
|
|
18
|
+
* assistants can perform.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const mcp = await client.mcp.create({
|
|
23
|
+
* name: 'GitHub Integration Server',
|
|
24
|
+
* auth_config_id: 'auth_cfg_abc123def456',
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(body: McpCreateParams, options?: RequestOptions): APIPromise<McpCreateResponse> {
|
|
29
|
+
return this._client.post('/api/v3/mcp/servers', { body, ...options });
|
|
30
|
+
}
|
|
13
31
|
|
|
14
32
|
/**
|
|
15
33
|
* Retrieves detailed configuration information for a specific Model Control
|
|
@@ -48,6 +66,22 @@ export class Mcp extends APIResource {
|
|
|
48
66
|
return this._client.patch(path`/api/v3/mcp/${id}`, { body, ...options });
|
|
49
67
|
}
|
|
50
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Retrieves a paginated list of MCP servers associated with the authenticated
|
|
71
|
+
* project. Results can be filtered by name, toolkit, or authentication
|
|
72
|
+
* configuration ID. MCP servers are used to provide Model Control Protocol
|
|
73
|
+
* integration points for connecting AI assistants to your applications and
|
|
74
|
+
* services.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const mcps = await client.mcp.list();
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
list(query: McpListParams | null | undefined = {}, options?: RequestOptions): APIPromise<McpListResponse> {
|
|
82
|
+
return this._client.get('/api/v3/mcp/servers', { query, ...options });
|
|
83
|
+
}
|
|
84
|
+
|
|
51
85
|
/**
|
|
52
86
|
* Performs a soft delete on a Model Control Protocol (MCP) server, making it
|
|
53
87
|
* unavailable for future use. This operation is reversible in the database but
|
|
@@ -83,31 +117,74 @@ export class Mcp extends APIResource {
|
|
|
83
117
|
): APIPromise<McpRetrieveAppResponse> {
|
|
84
118
|
return this._client.get(path`/api/v3/mcp/app/${appKey}`, { query, ...options });
|
|
85
119
|
}
|
|
120
|
+
}
|
|
86
121
|
|
|
122
|
+
/**
|
|
123
|
+
* MCP server configuration and connection details
|
|
124
|
+
*/
|
|
125
|
+
export interface McpCreateResponse {
|
|
87
126
|
/**
|
|
88
|
-
*
|
|
89
|
-
* retrieves its complete configuration details, including authentication
|
|
90
|
-
* information. This endpoint is typically used by the MCP service itself to
|
|
91
|
-
* authenticate and authorize connection requests from clients.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```ts
|
|
95
|
-
* const response = await client.mcp.validate(
|
|
96
|
-
* '550e8400-e29b-41d4-a716-446655440000',
|
|
97
|
-
* { 'x-composio-admin-token': 'admin_tk_12345abcdef' },
|
|
98
|
-
* );
|
|
99
|
-
* ```
|
|
127
|
+
* UUID of the MCP server instance
|
|
100
128
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
129
|
+
id: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Array of tool slugs that this MCP server is allowed to use
|
|
133
|
+
*/
|
|
134
|
+
allowed_tools: Array<string>;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* ID reference to the auth configuration used by this server
|
|
138
|
+
*/
|
|
139
|
+
auth_config_id: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
143
|
+
* server
|
|
144
|
+
*/
|
|
145
|
+
commands: McpCreateResponse.Commands;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Date and time when this server was initially created
|
|
149
|
+
*/
|
|
150
|
+
created_at: string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* URL endpoint for establishing SSE connection to this MCP server
|
|
154
|
+
*/
|
|
155
|
+
mcp_url: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* User-defined descriptive name for this MCP server
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Date and time when this server configuration was last modified
|
|
164
|
+
*/
|
|
165
|
+
updated_at: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export namespace McpCreateResponse {
|
|
169
|
+
/**
|
|
170
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
171
|
+
* server
|
|
172
|
+
*/
|
|
173
|
+
export interface Commands {
|
|
174
|
+
/**
|
|
175
|
+
* Command line instruction for Claude client setup
|
|
176
|
+
*/
|
|
177
|
+
claude: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Command line instruction for Cursor client setup
|
|
181
|
+
*/
|
|
182
|
+
cursor: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Command line instruction for Windsurf client setup
|
|
186
|
+
*/
|
|
187
|
+
windsurf: string;
|
|
111
188
|
}
|
|
112
189
|
}
|
|
113
190
|
|
|
@@ -259,20 +336,10 @@ export namespace McpUpdateResponse {
|
|
|
259
336
|
}
|
|
260
337
|
}
|
|
261
338
|
|
|
262
|
-
/**
|
|
263
|
-
* Response indicating the success of the delete operation
|
|
264
|
-
*/
|
|
265
|
-
export interface McpDeleteResponse {
|
|
266
|
-
/**
|
|
267
|
-
* Indicates whether the MCP server was successfully deleted
|
|
268
|
-
*/
|
|
269
|
-
success: boolean;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
339
|
/**
|
|
273
340
|
* Paginated response containing MCP servers
|
|
274
341
|
*/
|
|
275
|
-
export interface
|
|
342
|
+
export interface McpListResponse {
|
|
276
343
|
/**
|
|
277
344
|
* Current page number being returned
|
|
278
345
|
*/
|
|
@@ -281,7 +348,7 @@ export interface McpRetrieveAppResponse {
|
|
|
281
348
|
/**
|
|
282
349
|
* Array of MCP server configurations
|
|
283
350
|
*/
|
|
284
|
-
items: Array<
|
|
351
|
+
items: Array<McpListResponse.Item>;
|
|
285
352
|
|
|
286
353
|
/**
|
|
287
354
|
* Total number of pages in the paginated response
|
|
@@ -289,7 +356,7 @@ export interface McpRetrieveAppResponse {
|
|
|
289
356
|
total_pages: string;
|
|
290
357
|
}
|
|
291
358
|
|
|
292
|
-
export namespace
|
|
359
|
+
export namespace McpListResponse {
|
|
293
360
|
/**
|
|
294
361
|
* MCP server configuration and connection details
|
|
295
362
|
*/
|
|
@@ -361,97 +428,130 @@ export namespace McpRetrieveAppResponse {
|
|
|
361
428
|
}
|
|
362
429
|
|
|
363
430
|
/**
|
|
364
|
-
*
|
|
431
|
+
* Response indicating the success of the delete operation
|
|
365
432
|
*/
|
|
366
|
-
export interface
|
|
367
|
-
/**
|
|
368
|
-
* Unique identifier of the validated MCP server
|
|
369
|
-
*/
|
|
370
|
-
id: string;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Client information for the MCP server
|
|
374
|
-
*/
|
|
375
|
-
client: McpValidateResponse.Client;
|
|
376
|
-
|
|
433
|
+
export interface McpDeleteResponse {
|
|
377
434
|
/**
|
|
378
|
-
*
|
|
435
|
+
* Indicates whether the MCP server was successfully deleted
|
|
379
436
|
*/
|
|
380
|
-
|
|
437
|
+
success: boolean;
|
|
438
|
+
}
|
|
381
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Paginated response containing MCP servers
|
|
442
|
+
*/
|
|
443
|
+
export interface McpRetrieveAppResponse {
|
|
382
444
|
/**
|
|
383
|
-
*
|
|
445
|
+
* Current page number being returned
|
|
384
446
|
*/
|
|
385
|
-
|
|
447
|
+
current_page: string;
|
|
386
448
|
|
|
387
449
|
/**
|
|
388
|
-
*
|
|
450
|
+
* Array of MCP server configurations
|
|
389
451
|
*/
|
|
390
|
-
|
|
452
|
+
items: Array<McpRetrieveAppResponse.Item>;
|
|
391
453
|
|
|
392
454
|
/**
|
|
393
|
-
*
|
|
455
|
+
* Total number of pages in the paginated response
|
|
394
456
|
*/
|
|
395
|
-
|
|
457
|
+
total_pages: string;
|
|
458
|
+
}
|
|
396
459
|
|
|
460
|
+
export namespace McpRetrieveAppResponse {
|
|
397
461
|
/**
|
|
398
|
-
*
|
|
462
|
+
* MCP server configuration and connection details
|
|
399
463
|
*/
|
|
400
|
-
|
|
464
|
+
export interface Item {
|
|
465
|
+
/**
|
|
466
|
+
* UUID of the MCP server instance
|
|
467
|
+
*/
|
|
468
|
+
id: string;
|
|
401
469
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
470
|
+
/**
|
|
471
|
+
* Array of tool slugs that this MCP server is allowed to use
|
|
472
|
+
*/
|
|
473
|
+
allowed_tools: Array<string>;
|
|
406
474
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
475
|
+
/**
|
|
476
|
+
* ID reference to the auth configuration used by this server
|
|
477
|
+
*/
|
|
478
|
+
auth_config_id: string;
|
|
411
479
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
480
|
+
/**
|
|
481
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
482
|
+
* server
|
|
483
|
+
*/
|
|
484
|
+
commands: Item.Commands;
|
|
417
485
|
|
|
418
|
-
export namespace McpValidateResponse {
|
|
419
|
-
/**
|
|
420
|
-
* Client information for the MCP server
|
|
421
|
-
*/
|
|
422
|
-
export interface Client {
|
|
423
486
|
/**
|
|
424
|
-
*
|
|
487
|
+
* Date and time when this server was initially created
|
|
425
488
|
*/
|
|
426
|
-
|
|
489
|
+
created_at: string;
|
|
427
490
|
|
|
428
491
|
/**
|
|
429
|
-
*
|
|
492
|
+
* URL endpoint for establishing SSE connection to this MCP server
|
|
430
493
|
*/
|
|
431
|
-
|
|
432
|
-
}
|
|
494
|
+
mcp_url: string;
|
|
433
495
|
|
|
434
|
-
/**
|
|
435
|
-
* User authentication data for the MCP server
|
|
436
|
-
*/
|
|
437
|
-
export interface UserData {
|
|
438
496
|
/**
|
|
439
|
-
* User
|
|
497
|
+
* User-defined descriptive name for this MCP server
|
|
440
498
|
*/
|
|
441
|
-
|
|
499
|
+
name: string;
|
|
442
500
|
|
|
443
501
|
/**
|
|
444
|
-
*
|
|
502
|
+
* Date and time when this server configuration was last modified
|
|
445
503
|
*/
|
|
446
|
-
|
|
504
|
+
updated_at: string;
|
|
505
|
+
}
|
|
447
506
|
|
|
507
|
+
export namespace Item {
|
|
448
508
|
/**
|
|
449
|
-
*
|
|
509
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
510
|
+
* server
|
|
450
511
|
*/
|
|
451
|
-
|
|
512
|
+
export interface Commands {
|
|
513
|
+
/**
|
|
514
|
+
* Command line instruction for Claude client setup
|
|
515
|
+
*/
|
|
516
|
+
claude: string;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Command line instruction for Cursor client setup
|
|
520
|
+
*/
|
|
521
|
+
cursor: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Command line instruction for Windsurf client setup
|
|
525
|
+
*/
|
|
526
|
+
windsurf: string;
|
|
527
|
+
}
|
|
452
528
|
}
|
|
453
529
|
}
|
|
454
530
|
|
|
531
|
+
export interface McpCreateParams {
|
|
532
|
+
/**
|
|
533
|
+
* Human-readable name to identify this MCP server instance (4-25 characters,
|
|
534
|
+
* alphanumeric and hyphens only)
|
|
535
|
+
*/
|
|
536
|
+
name: string;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* List of tool slugs that should be allowed for this server. If not provided, all
|
|
540
|
+
* available tools for the authentication configuration will be enabled.
|
|
541
|
+
*/
|
|
542
|
+
allowed_tools?: Array<string>;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* ID reference to an existing authentication configuration
|
|
546
|
+
*/
|
|
547
|
+
auth_config_id?: string;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Time-to-live duration for this MCP server
|
|
551
|
+
*/
|
|
552
|
+
ttl?: '1d' | '3d' | '1 month' | 'no expiration';
|
|
553
|
+
}
|
|
554
|
+
|
|
455
555
|
export interface McpUpdateParams {
|
|
456
556
|
/**
|
|
457
557
|
* List of action identifiers that should be enabled for this server
|
|
@@ -470,7 +570,7 @@ export interface McpUpdateParams {
|
|
|
470
570
|
name?: string;
|
|
471
571
|
}
|
|
472
572
|
|
|
473
|
-
export interface
|
|
573
|
+
export interface McpListParams {
|
|
474
574
|
/**
|
|
475
575
|
* Filter MCP servers by authentication configuration ID
|
|
476
576
|
*/
|
|
@@ -497,26 +597,52 @@ export interface McpRetrieveAppParams {
|
|
|
497
597
|
toolkit?: string;
|
|
498
598
|
}
|
|
499
599
|
|
|
500
|
-
export interface
|
|
600
|
+
export interface McpRetrieveAppParams {
|
|
601
|
+
/**
|
|
602
|
+
* Filter MCP servers by authentication configuration ID
|
|
603
|
+
*/
|
|
604
|
+
auth_config_id?: string;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Number of items per page (default: 10)
|
|
608
|
+
*/
|
|
609
|
+
limit?: number | null;
|
|
610
|
+
|
|
501
611
|
/**
|
|
502
|
-
*
|
|
612
|
+
* Filter MCP servers by name (case-insensitive partial match)
|
|
613
|
+
*/
|
|
614
|
+
name?: string;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Page number for pagination (1-based)
|
|
618
|
+
*/
|
|
619
|
+
page_no?: number | null;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Filter MCP servers by toolkit slug
|
|
503
623
|
*/
|
|
504
|
-
|
|
624
|
+
toolkit?: string;
|
|
505
625
|
}
|
|
506
626
|
|
|
507
|
-
Mcp.
|
|
627
|
+
Mcp.Custom = Custom;
|
|
508
628
|
|
|
509
629
|
export declare namespace Mcp {
|
|
510
630
|
export {
|
|
631
|
+
type McpCreateResponse as McpCreateResponse,
|
|
511
632
|
type McpRetrieveResponse as McpRetrieveResponse,
|
|
512
633
|
type McpUpdateResponse as McpUpdateResponse,
|
|
634
|
+
type McpListResponse as McpListResponse,
|
|
513
635
|
type McpDeleteResponse as McpDeleteResponse,
|
|
514
636
|
type McpRetrieveAppResponse as McpRetrieveAppResponse,
|
|
515
|
-
type
|
|
637
|
+
type McpCreateParams as McpCreateParams,
|
|
516
638
|
type McpUpdateParams as McpUpdateParams,
|
|
639
|
+
type McpListParams as McpListParams,
|
|
517
640
|
type McpRetrieveAppParams as McpRetrieveAppParams,
|
|
518
|
-
type McpValidateParams as McpValidateParams,
|
|
519
641
|
};
|
|
520
642
|
|
|
521
|
-
export {
|
|
643
|
+
export {
|
|
644
|
+
Custom as Custom,
|
|
645
|
+
type CustomCreateResponse as CustomCreateResponse,
|
|
646
|
+
type CustomCreateParams as CustomCreateParams,
|
|
647
|
+
};
|
|
522
648
|
}
|
|
@@ -97,6 +97,12 @@ export interface APIKeyCreateResponse {
|
|
|
97
97
|
/**
|
|
98
98
|
* UTC timestamp indicating when the API key was created
|
|
99
99
|
*/
|
|
100
|
+
created_at: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @deprecated UTC timestamp indicating when the API key was created. DEPRECATED:
|
|
104
|
+
* Use created_at instead.
|
|
105
|
+
*/
|
|
100
106
|
createdAt: string;
|
|
101
107
|
|
|
102
108
|
/**
|
|
@@ -114,7 +120,7 @@ export interface APIKeyCreateResponse {
|
|
|
114
120
|
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
115
121
|
* be null for newly created keys.
|
|
116
122
|
*/
|
|
117
|
-
|
|
123
|
+
last_used_at?: string;
|
|
118
124
|
}
|
|
119
125
|
|
|
120
126
|
/**
|
|
@@ -185,6 +191,12 @@ export interface APIKeyCreateAPIKeyResponse {
|
|
|
185
191
|
/**
|
|
186
192
|
* UTC timestamp indicating when the API key was created
|
|
187
193
|
*/
|
|
194
|
+
created_at: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated UTC timestamp indicating when the API key was created. Use
|
|
198
|
+
* created_at instead.
|
|
199
|
+
*/
|
|
188
200
|
createdAt: string;
|
|
189
201
|
|
|
190
202
|
/**
|
|
@@ -193,6 +205,12 @@ export interface APIKeyCreateAPIKeyResponse {
|
|
|
193
205
|
*/
|
|
194
206
|
key: string;
|
|
195
207
|
|
|
208
|
+
/**
|
|
209
|
+
* @deprecated UTC timestamp indicating when the API key was created. Use
|
|
210
|
+
* last_used_at instead.
|
|
211
|
+
*/
|
|
212
|
+
lastUsedAt: string;
|
|
213
|
+
|
|
196
214
|
/**
|
|
197
215
|
* Name assigned to help identify the key's purpose. For auto-generated keys, this
|
|
198
216
|
* will be a random name.
|
|
@@ -203,7 +221,7 @@ export interface APIKeyCreateAPIKeyResponse {
|
|
|
203
221
|
* UTC timestamp indicating when the API key was last used for authentication. Will
|
|
204
222
|
* be null for newly created keys.
|
|
205
223
|
*/
|
|
206
|
-
|
|
224
|
+
last_used_at?: string;
|
|
207
225
|
}
|
|
208
226
|
|
|
209
227
|
export interface APIKeyCreateParams {
|
|
@@ -42,7 +42,7 @@ export class TeamMembers extends APIResource {
|
|
|
42
42
|
export interface TeamMemberUpdateResponse {
|
|
43
43
|
id: string;
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
created_at: string;
|
|
46
46
|
|
|
47
47
|
email: string;
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ export interface TeamMemberUpdateResponse {
|
|
|
50
50
|
|
|
51
51
|
role: string;
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
updated_at: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export interface TeamMemberListResponse {
|
|
@@ -61,7 +61,7 @@ export namespace TeamMemberListResponse {
|
|
|
61
61
|
export interface Item {
|
|
62
62
|
id: string;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
created_at: string;
|
|
65
65
|
|
|
66
66
|
email: string;
|
|
67
67
|
|
|
@@ -69,14 +69,14 @@ export namespace TeamMemberListResponse {
|
|
|
69
69
|
|
|
70
70
|
role: string;
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
updated_at: string;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export interface TeamMemberInviteResponse {
|
|
77
77
|
id: string;
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
created_at: string;
|
|
80
80
|
|
|
81
81
|
email: string;
|
|
82
82
|
|
|
@@ -84,7 +84,7 @@ export interface TeamMemberInviteResponse {
|
|
|
84
84
|
|
|
85
85
|
role: string;
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
updated_at: string;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export interface TeamMemberRemoveResponse {
|
|
@@ -108,7 +108,7 @@ export interface TeamMemberInviteParams {
|
|
|
108
108
|
|
|
109
109
|
role: string;
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
verify_host?: string;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
export declare namespace TeamMembers {
|
package/src/resources/tools.ts
CHANGED
|
@@ -45,15 +45,15 @@ export class Tools extends APIResource {
|
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```ts
|
|
48
|
-
* const response = await client.tools.execute('
|
|
48
|
+
* const response = await client.tools.execute('tool_slug');
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
51
|
execute(
|
|
52
|
-
|
|
52
|
+
toolSlug: string,
|
|
53
53
|
body: ToolExecuteParams | null | undefined = {},
|
|
54
54
|
options?: RequestOptions,
|
|
55
55
|
): APIPromise<ToolExecuteResponse> {
|
|
56
|
-
return this._client.post(path`/api/v3/tools/execute/${
|
|
56
|
+
return this._client.post(path`/api/v3/tools/execute/${toolSlug}`, { body, ...options });
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -64,17 +64,17 @@ export class Tools extends APIResource {
|
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* ```ts
|
|
67
|
-
* const response = await client.tools.getInput('
|
|
67
|
+
* const response = await client.tools.getInput('tool_slug', {
|
|
68
68
|
* text: 'I need to trigger the main workflow in the octocat/Hello-World repository to deploy to production',
|
|
69
69
|
* });
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
72
72
|
getInput(
|
|
73
|
-
|
|
73
|
+
toolSlug: string,
|
|
74
74
|
body: ToolGetInputParams,
|
|
75
75
|
options?: RequestOptions,
|
|
76
76
|
): APIPromise<ToolGetInputResponse> {
|
|
77
|
-
return this._client.post(path`/api/v3/tools/execute/${
|
|
77
|
+
return this._client.post(path`/api/v3/tools/execute/${toolSlug}/input`, { body, ...options });
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -481,13 +481,13 @@ export interface ToolGetInputParams {
|
|
|
481
481
|
* Custom description of the tool to help guide the LLM in generating more accurate
|
|
482
482
|
* inputs
|
|
483
483
|
*/
|
|
484
|
-
|
|
484
|
+
custom_description?: string;
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* System prompt to control and guide the behavior of the LLM when generating
|
|
488
488
|
* inputs
|
|
489
489
|
*/
|
|
490
|
-
|
|
490
|
+
system_prompt?: string;
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
493
|
* Tool version to use when generating inputs (defaults to "latest" if not
|
|
@@ -9,8 +9,11 @@ export {
|
|
|
9
9
|
} from './handle';
|
|
10
10
|
export {
|
|
11
11
|
TriggerInstances,
|
|
12
|
+
type TriggerInstanceDeleteResponse,
|
|
12
13
|
type TriggerInstanceListActiveResponse,
|
|
14
|
+
type TriggerInstanceUpdateStatusResponse,
|
|
13
15
|
type TriggerInstanceUpsertResponse,
|
|
14
16
|
type TriggerInstanceListActiveParams,
|
|
17
|
+
type TriggerInstanceUpdateStatusParams,
|
|
15
18
|
type TriggerInstanceUpsertParams,
|
|
16
19
|
} from './trigger-instances';
|