@composio/client 0.1.0-alpha.16 → 0.1.0-alpha.18
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 +33 -0
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/mcp/custom.d.mts +12 -0
- package/resources/mcp/custom.d.mts.map +1 -1
- package/resources/mcp/custom.d.ts +12 -0
- package/resources/mcp/custom.d.ts.map +1 -1
- package/resources/mcp/mcp.d.mts +70 -32
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts +70 -32
- 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/trigger.d.mts +3 -5
- package/resources/org/project/trigger.d.mts.map +1 -1
- package/resources/org/project/trigger.d.ts +3 -5
- package/resources/org/project/trigger.d.ts.map +1 -1
- package/resources/org/project/trigger.js +3 -5
- package/resources/org/project/trigger.js.map +1 -1
- package/resources/org/project/trigger.mjs +3 -5
- package/resources/org/project/trigger.mjs.map +1 -1
- package/resources/toolkits.d.mts +15 -0
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +15 -0
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +34 -5
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +34 -5
- package/resources/tools.d.ts.map +1 -1
- package/resources/triggers-types.d.mts +4 -0
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +4 -0
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/v3/admin.d.mts +1 -40
- package/resources/v3/admin.d.mts.map +1 -1
- package/resources/v3/admin.d.ts +1 -40
- package/resources/v3/admin.d.ts.map +1 -1
- package/resources/v3/admin.js +0 -22
- package/resources/v3/admin.js.map +1 -1
- package/resources/v3/admin.mjs +0 -22
- package/resources/v3/admin.mjs.map +1 -1
- package/resources/v3/index.d.mts +1 -1
- package/resources/v3/index.d.mts.map +1 -1
- package/resources/v3/index.d.ts +1 -1
- package/resources/v3/index.d.ts.map +1 -1
- package/resources/v3/index.js.map +1 -1
- package/resources/v3/index.mjs +1 -1
- package/resources/v3/index.mjs.map +1 -1
- package/resources/v3/v3.d.mts +2 -2
- package/resources/v3/v3.d.mts.map +1 -1
- package/resources/v3/v3.d.ts +2 -2
- package/resources/v3/v3.d.ts.map +1 -1
- package/resources/v3/v3.js.map +1 -1
- package/resources/v3/v3.mjs +1 -1
- package/resources/v3/v3.mjs.map +1 -1
- package/src/internal/uploads.ts +1 -1
- package/src/resources/mcp/custom.ts +15 -0
- package/src/resources/mcp/mcp.ts +81 -34
- package/src/resources/org/project/trigger.ts +7 -6
- package/src/resources/toolkits.ts +20 -0
- package/src/resources/tools.ts +41 -5
- package/src/resources/triggers-types.ts +5 -0
- package/src/resources/v3/admin.ts +0 -56
- package/src/resources/v3/index.ts +1 -7
- package/src/resources/v3/v3.ts +1 -9
- 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/v3/v3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAA8F;AAC9F,yDAAgC;AAChC,kCAOe;AACf,gEAAuC;AACvC,yCAAmC;AACnC,4EAAmD;AACnD,qDAA+C;AAE/C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AALD,gBAKC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,SAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
package/resources/v3/v3.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as AdminAPI from "./admin.mjs";
|
|
4
|
-
import { Admin
|
|
4
|
+
import { Admin } from "./admin.mjs";
|
|
5
5
|
import * as CliAPI from "./cli.mjs";
|
|
6
6
|
import { Cli, } from "./cli.mjs";
|
|
7
7
|
import * as AuthAPI from "./auth/auth.mjs";
|
package/resources/v3/v3.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"v3.mjs","sourceRoot":"","sources":["../../src/resources/v3/v3.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,KAAK,EAAgE;OACvE,KAAK,MAAM;OACX,EACL,GAAG,GAMJ;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;OACR,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,QAAG,GAAe,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;AACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
package/src/internal/uploads.ts
CHANGED
|
@@ -138,7 +138,7 @@ export const createForm = async <T = Record<string, unknown>>(
|
|
|
138
138
|
|
|
139
139
|
// We check for Blob not File because Bun.File doesn't inherit from File,
|
|
140
140
|
// but they both inherit from Blob and have a `name` property at runtime.
|
|
141
|
-
const isNamedBlob = (value:
|
|
141
|
+
const isNamedBlob = (value: unknown) => value instanceof Blob && 'name' in value;
|
|
142
142
|
|
|
143
143
|
const isUploadable = (value: unknown) =>
|
|
144
144
|
typeof value === 'object' &&
|
|
@@ -38,6 +38,11 @@ export interface CustomCreateResponse {
|
|
|
38
38
|
*/
|
|
39
39
|
allowed_tools: Array<string>;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* ID references to the auth configurations used by this server
|
|
43
|
+
*/
|
|
44
|
+
auth_config_ids: Array<string>;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* Set of command line instructions for connecting various clients to this MCP
|
|
43
48
|
* server
|
|
@@ -91,11 +96,21 @@ export interface CustomCreateParams {
|
|
|
91
96
|
*/
|
|
92
97
|
toolkits: Array<string>;
|
|
93
98
|
|
|
99
|
+
/**
|
|
100
|
+
* ID reference to one or more existing authentication configurations
|
|
101
|
+
*/
|
|
102
|
+
auth_config_id?: string | Array<string>;
|
|
103
|
+
|
|
94
104
|
/**
|
|
95
105
|
* Additional custom tool identifiers to enable that aren't part of standard
|
|
96
106
|
* toolkits
|
|
97
107
|
*/
|
|
98
108
|
custom_tools?: Array<string>;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Whether to manage authentication via Composio
|
|
112
|
+
*/
|
|
113
|
+
managed_auth_via_composio?: boolean;
|
|
99
114
|
}
|
|
100
115
|
|
|
101
116
|
export declare namespace Custom {
|
package/src/resources/mcp/mcp.ts
CHANGED
|
@@ -161,9 +161,9 @@ export interface McpCreateResponse {
|
|
|
161
161
|
allowed_tools: Array<string>;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* ID
|
|
164
|
+
* ID references to the auth configurations used by this server
|
|
165
165
|
*/
|
|
166
|
-
|
|
166
|
+
auth_config_ids: Array<string>;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
169
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -176,6 +176,11 @@ export interface McpCreateResponse {
|
|
|
176
176
|
*/
|
|
177
177
|
created_at: string;
|
|
178
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Whether the MCP server is managed by Composio
|
|
181
|
+
*/
|
|
182
|
+
managed_auth_via_composio: boolean;
|
|
183
|
+
|
|
179
184
|
/**
|
|
180
185
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
181
186
|
*/
|
|
@@ -186,6 +191,11 @@ export interface McpCreateResponse {
|
|
|
186
191
|
*/
|
|
187
192
|
name: string;
|
|
188
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
196
|
+
*/
|
|
197
|
+
toolkits: Array<string>;
|
|
198
|
+
|
|
189
199
|
/**
|
|
190
200
|
* Date and time when this server configuration was last modified
|
|
191
201
|
*/
|
|
@@ -230,9 +240,9 @@ export interface McpRetrieveResponse {
|
|
|
230
240
|
allowed_tools: Array<string>;
|
|
231
241
|
|
|
232
242
|
/**
|
|
233
|
-
* ID
|
|
243
|
+
* ID references to the auth configurations used by this server
|
|
234
244
|
*/
|
|
235
|
-
|
|
245
|
+
auth_config_ids: Array<string>;
|
|
236
246
|
|
|
237
247
|
/**
|
|
238
248
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -250,6 +260,11 @@ export interface McpRetrieveResponse {
|
|
|
250
260
|
*/
|
|
251
261
|
deleted: boolean;
|
|
252
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Whether the MCP server is managed by Composio
|
|
265
|
+
*/
|
|
266
|
+
managed_auth_via_composio: boolean;
|
|
267
|
+
|
|
253
268
|
/**
|
|
254
269
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
255
270
|
*/
|
|
@@ -260,6 +275,11 @@ export interface McpRetrieveResponse {
|
|
|
260
275
|
*/
|
|
261
276
|
name: string;
|
|
262
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
280
|
+
*/
|
|
281
|
+
toolkits: Array<string>;
|
|
282
|
+
|
|
263
283
|
/**
|
|
264
284
|
* Date and time when this server configuration was last modified
|
|
265
285
|
*/
|
|
@@ -304,9 +324,9 @@ export interface McpUpdateResponse {
|
|
|
304
324
|
allowed_tools: Array<string>;
|
|
305
325
|
|
|
306
326
|
/**
|
|
307
|
-
* ID
|
|
327
|
+
* ID references to the auth configurations used by this server
|
|
308
328
|
*/
|
|
309
|
-
|
|
329
|
+
auth_config_ids: Array<string>;
|
|
310
330
|
|
|
311
331
|
/**
|
|
312
332
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -324,6 +344,11 @@ export interface McpUpdateResponse {
|
|
|
324
344
|
*/
|
|
325
345
|
deleted: boolean;
|
|
326
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Whether the MCP server is managed by Composio
|
|
349
|
+
*/
|
|
350
|
+
managed_auth_via_composio: boolean;
|
|
351
|
+
|
|
327
352
|
/**
|
|
328
353
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
329
354
|
*/
|
|
@@ -334,6 +359,11 @@ export interface McpUpdateResponse {
|
|
|
334
359
|
*/
|
|
335
360
|
name: string;
|
|
336
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
364
|
+
*/
|
|
365
|
+
toolkits: Array<string>;
|
|
366
|
+
|
|
337
367
|
/**
|
|
338
368
|
* Date and time when this server configuration was last modified
|
|
339
369
|
*/
|
|
@@ -399,9 +429,9 @@ export namespace McpListResponse {
|
|
|
399
429
|
allowed_tools: Array<string>;
|
|
400
430
|
|
|
401
431
|
/**
|
|
402
|
-
* ID
|
|
432
|
+
* ID references to the auth configurations used by this server
|
|
403
433
|
*/
|
|
404
|
-
|
|
434
|
+
auth_config_ids: Array<string>;
|
|
405
435
|
|
|
406
436
|
/**
|
|
407
437
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -414,6 +444,11 @@ export namespace McpListResponse {
|
|
|
414
444
|
*/
|
|
415
445
|
created_at: string;
|
|
416
446
|
|
|
447
|
+
/**
|
|
448
|
+
* Whether the MCP server is managed by Composio
|
|
449
|
+
*/
|
|
450
|
+
managed_auth_via_composio: boolean;
|
|
451
|
+
|
|
417
452
|
/**
|
|
418
453
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
419
454
|
*/
|
|
@@ -424,6 +459,11 @@ export namespace McpListResponse {
|
|
|
424
459
|
*/
|
|
425
460
|
name: string;
|
|
426
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
464
|
+
*/
|
|
465
|
+
toolkits: Array<string>;
|
|
466
|
+
|
|
427
467
|
/**
|
|
428
468
|
* Date and time when this server configuration was last modified
|
|
429
469
|
*/
|
|
@@ -500,9 +540,9 @@ export namespace McpRetrieveAppResponse {
|
|
|
500
540
|
allowed_tools: Array<string>;
|
|
501
541
|
|
|
502
542
|
/**
|
|
503
|
-
* ID
|
|
543
|
+
* ID references to the auth configurations used by this server
|
|
504
544
|
*/
|
|
505
|
-
|
|
545
|
+
auth_config_ids: Array<string>;
|
|
506
546
|
|
|
507
547
|
/**
|
|
508
548
|
* Set of command line instructions for connecting various clients to this MCP
|
|
@@ -515,6 +555,11 @@ export namespace McpRetrieveAppResponse {
|
|
|
515
555
|
*/
|
|
516
556
|
created_at: string;
|
|
517
557
|
|
|
558
|
+
/**
|
|
559
|
+
* Whether the MCP server is managed by Composio
|
|
560
|
+
*/
|
|
561
|
+
managed_auth_via_composio: boolean;
|
|
562
|
+
|
|
518
563
|
/**
|
|
519
564
|
* URL endpoint for establishing SSE connection to this MCP server
|
|
520
565
|
*/
|
|
@@ -525,6 +570,11 @@ export namespace McpRetrieveAppResponse {
|
|
|
525
570
|
*/
|
|
526
571
|
name: string;
|
|
527
572
|
|
|
573
|
+
/**
|
|
574
|
+
* Array of toolkit slugs that this MCP server is allowed to use
|
|
575
|
+
*/
|
|
576
|
+
toolkits: Array<string>;
|
|
577
|
+
|
|
528
578
|
/**
|
|
529
579
|
* Date and time when this server configuration was last modified
|
|
530
580
|
*/
|
|
@@ -587,27 +637,22 @@ export interface McpValidateResponse {
|
|
|
587
637
|
/**
|
|
588
638
|
* List of action identifiers enabled for this server
|
|
589
639
|
*/
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* List of application identifiers this server is configured for
|
|
594
|
-
*/
|
|
595
|
-
apps?: Array<string>;
|
|
640
|
+
allowed_tools?: Array<string> | null;
|
|
596
641
|
|
|
597
642
|
/**
|
|
598
|
-
*
|
|
643
|
+
* Flag indicating if this server uses custom authentication headers
|
|
599
644
|
*/
|
|
600
|
-
|
|
645
|
+
customAuthHeaders?: boolean;
|
|
601
646
|
|
|
602
647
|
/**
|
|
603
|
-
* Flag indicating if this server
|
|
648
|
+
* Flag indicating if this server is managed by Composio and not by the user
|
|
604
649
|
*/
|
|
605
|
-
|
|
650
|
+
managed_auth_via_composio?: boolean;
|
|
606
651
|
|
|
607
652
|
/**
|
|
608
|
-
* List of
|
|
653
|
+
* List of application identifiers this server is configured for
|
|
609
654
|
*/
|
|
610
|
-
|
|
655
|
+
toolkits?: Array<string>;
|
|
611
656
|
}
|
|
612
657
|
|
|
613
658
|
export namespace McpValidateResponse {
|
|
@@ -661,9 +706,9 @@ export interface McpCreateParams {
|
|
|
661
706
|
allowed_tools?: Array<string>;
|
|
662
707
|
|
|
663
708
|
/**
|
|
664
|
-
* ID reference to
|
|
709
|
+
* ID reference to one or more existing authentication configurations
|
|
665
710
|
*/
|
|
666
|
-
auth_config_id?: string
|
|
711
|
+
auth_config_id?: string | Array<string>;
|
|
667
712
|
|
|
668
713
|
/**
|
|
669
714
|
* Time-to-live duration for this MCP server
|
|
@@ -675,18 +720,18 @@ export interface McpUpdateParams {
|
|
|
675
720
|
/**
|
|
676
721
|
* List of action identifiers that should be enabled for this server
|
|
677
722
|
*/
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* List of application identifiers this server should be configured to work with
|
|
682
|
-
*/
|
|
683
|
-
apps?: Array<string>;
|
|
723
|
+
allowed_tools?: Array<string> | null;
|
|
684
724
|
|
|
685
725
|
/**
|
|
686
726
|
* Human-readable name to identify this MCP server instance (4-25 characters,
|
|
687
727
|
* alphanumeric and hyphens only)
|
|
688
728
|
*/
|
|
689
729
|
name?: string;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* List of toolkit slugs this server should be configured to work with
|
|
733
|
+
*/
|
|
734
|
+
toolkits?: Array<string> | null;
|
|
690
735
|
}
|
|
691
736
|
|
|
692
737
|
export interface McpListParams {
|
|
@@ -711,9 +756,10 @@ export interface McpListParams {
|
|
|
711
756
|
page_no?: number | null;
|
|
712
757
|
|
|
713
758
|
/**
|
|
714
|
-
* Filter MCP servers by toolkit
|
|
759
|
+
* Filter MCP servers by toolkit slugs (returns servers matching any of the
|
|
760
|
+
* provided toolkits)
|
|
715
761
|
*/
|
|
716
|
-
|
|
762
|
+
toolkits?: Array<string> | null;
|
|
717
763
|
}
|
|
718
764
|
|
|
719
765
|
export interface McpRetrieveAppParams {
|
|
@@ -738,9 +784,10 @@ export interface McpRetrieveAppParams {
|
|
|
738
784
|
page_no?: number | null;
|
|
739
785
|
|
|
740
786
|
/**
|
|
741
|
-
* Filter MCP servers by toolkit
|
|
787
|
+
* Filter MCP servers by toolkit slugs (returns servers matching any of the
|
|
788
|
+
* provided toolkits)
|
|
742
789
|
*/
|
|
743
|
-
|
|
790
|
+
toolkits?: Array<string> | null;
|
|
744
791
|
}
|
|
745
792
|
|
|
746
793
|
export interface McpValidateParams {
|
|
@@ -11,13 +11,14 @@ export class Trigger extends APIResource {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* const trigger = await client.org.project.trigger.update(
|
|
15
|
-
* enabled: true,
|
|
16
|
-
* });
|
|
14
|
+
* const trigger = await client.org.project.trigger.update();
|
|
17
15
|
* ```
|
|
18
16
|
*/
|
|
19
|
-
update(
|
|
20
|
-
|
|
17
|
+
update(
|
|
18
|
+
params: TriggerUpdateParams | null | undefined = {},
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): APIPromise<TriggerUpdateResponse> {
|
|
21
|
+
const { enabled } = params ?? {};
|
|
21
22
|
return this._client.patch('/api/v3/org/project/trigger', { query: { enabled }, ...options });
|
|
22
23
|
}
|
|
23
24
|
|
|
@@ -175,7 +176,7 @@ export interface TriggerUpdateParams {
|
|
|
175
176
|
* Boolean flag indicating whether triggers should be enabled (true) or disabled
|
|
176
177
|
* (false) for the project
|
|
177
178
|
*/
|
|
178
|
-
enabled
|
|
179
|
+
enabled?: boolean | null;
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
export declare namespace Trigger {
|
|
@@ -47,6 +47,8 @@ export class Toolkits extends APIResource {
|
|
|
47
47
|
* Detailed information about a single toolkit
|
|
48
48
|
*/
|
|
49
49
|
export interface ToolkitRetrieveResponse {
|
|
50
|
+
deprecated: ToolkitRetrieveResponse.Deprecated;
|
|
51
|
+
|
|
50
52
|
/**
|
|
51
53
|
* Indicates if this toolkit is currently enabled and available for use
|
|
52
54
|
*/
|
|
@@ -86,6 +88,12 @@ export interface ToolkitRetrieveResponse {
|
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
export namespace ToolkitRetrieveResponse {
|
|
91
|
+
export interface Deprecated {
|
|
92
|
+
toolkitId: string;
|
|
93
|
+
|
|
94
|
+
getCurrentUserEndpoint?: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
89
97
|
/**
|
|
90
98
|
* Comprehensive metadata for the toolkit including dates, descriptions, and
|
|
91
99
|
* statistics
|
|
@@ -294,6 +302,11 @@ export namespace ToolkitListResponse {
|
|
|
294
302
|
* Detailed information about a toolkit
|
|
295
303
|
*/
|
|
296
304
|
export interface Item {
|
|
305
|
+
/**
|
|
306
|
+
* Deprecated toolkit ID
|
|
307
|
+
*/
|
|
308
|
+
deprecated: Item.Deprecated;
|
|
309
|
+
|
|
297
310
|
/**
|
|
298
311
|
* Indicates if this toolkit is specific to the current project or globally
|
|
299
312
|
* available
|
|
@@ -332,6 +345,13 @@ export namespace ToolkitListResponse {
|
|
|
332
345
|
}
|
|
333
346
|
|
|
334
347
|
export namespace Item {
|
|
348
|
+
/**
|
|
349
|
+
* Deprecated toolkit ID
|
|
350
|
+
*/
|
|
351
|
+
export interface Deprecated {
|
|
352
|
+
toolkitId: string;
|
|
353
|
+
}
|
|
354
|
+
|
|
335
355
|
/**
|
|
336
356
|
* Additional metadata about the toolkit
|
|
337
357
|
*/
|
package/src/resources/tools.ts
CHANGED
|
@@ -118,7 +118,7 @@ export interface ToolRetrieveResponse {
|
|
|
118
118
|
deprecated: ToolRetrieveResponse.Deprecated;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* Detailed
|
|
121
|
+
* Detailed explanation of the tool's functionality and purpose
|
|
122
122
|
*/
|
|
123
123
|
description: string;
|
|
124
124
|
|
|
@@ -128,7 +128,7 @@ export interface ToolRetrieveResponse {
|
|
|
128
128
|
input_parameters: Record<string, unknown>;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Human-readable name of the tool
|
|
131
|
+
* Human-readable display name of the tool
|
|
132
132
|
*/
|
|
133
133
|
name: string;
|
|
134
134
|
|
|
@@ -148,7 +148,7 @@ export interface ToolRetrieveResponse {
|
|
|
148
148
|
slug: string;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
-
* List of tags associated with the tool for categorization
|
|
151
|
+
* List of tags associated with the tool for categorization and filtering
|
|
152
152
|
*/
|
|
153
153
|
tags: Array<string>;
|
|
154
154
|
|
|
@@ -162,15 +162,36 @@ export interface ToolRetrieveResponse {
|
|
|
162
162
|
|
|
163
163
|
export namespace ToolRetrieveResponse {
|
|
164
164
|
export interface Deprecated {
|
|
165
|
+
/**
|
|
166
|
+
* List of all available versions for this tool
|
|
167
|
+
*/
|
|
168
|
+
available_versions: Array<string>;
|
|
169
|
+
|
|
165
170
|
/**
|
|
166
171
|
* The display name of the tool
|
|
167
172
|
*/
|
|
168
173
|
displayName: string;
|
|
169
174
|
|
|
170
175
|
/**
|
|
171
|
-
*
|
|
176
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
172
177
|
*/
|
|
173
178
|
is_deprecated: boolean;
|
|
179
|
+
|
|
180
|
+
toolkit: Deprecated.Toolkit;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Current version identifier of the tool
|
|
184
|
+
*/
|
|
185
|
+
version: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export namespace Deprecated {
|
|
189
|
+
export interface Toolkit {
|
|
190
|
+
/**
|
|
191
|
+
* URL to the toolkit logo image
|
|
192
|
+
*/
|
|
193
|
+
logo: string;
|
|
194
|
+
}
|
|
174
195
|
}
|
|
175
196
|
|
|
176
197
|
export interface Toolkit {
|
|
@@ -201,6 +222,11 @@ export interface ToolListResponse {
|
|
|
201
222
|
|
|
202
223
|
export namespace ToolListResponse {
|
|
203
224
|
export interface Item {
|
|
225
|
+
/**
|
|
226
|
+
* List of all available versions for this tool
|
|
227
|
+
*/
|
|
228
|
+
available_versions: Array<string>;
|
|
229
|
+
|
|
204
230
|
deprecated: Item.Deprecated;
|
|
205
231
|
|
|
206
232
|
/**
|
|
@@ -239,6 +265,11 @@ export namespace ToolListResponse {
|
|
|
239
265
|
tags: Array<string>;
|
|
240
266
|
|
|
241
267
|
toolkit: Item.Toolkit;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Current version of the tool
|
|
271
|
+
*/
|
|
272
|
+
version: string;
|
|
242
273
|
}
|
|
243
274
|
|
|
244
275
|
export namespace Item {
|
|
@@ -276,6 +307,11 @@ export namespace ToolListResponse {
|
|
|
276
307
|
}
|
|
277
308
|
|
|
278
309
|
export interface Toolkit {
|
|
310
|
+
/**
|
|
311
|
+
* URL to the toolkit logo image
|
|
312
|
+
*/
|
|
313
|
+
logo: string;
|
|
314
|
+
|
|
279
315
|
/**
|
|
280
316
|
* Human-readable name of the parent toolkit
|
|
281
317
|
*/
|
|
@@ -393,7 +429,7 @@ export interface ToolExecuteParams {
|
|
|
393
429
|
/**
|
|
394
430
|
* Enable debug tracing for tool execution (useful for debugging)
|
|
395
431
|
*/
|
|
396
|
-
allow_tracing?: boolean;
|
|
432
|
+
allow_tracing?: boolean | null;
|
|
397
433
|
|
|
398
434
|
/**
|
|
399
435
|
* Key-value pairs of arguments required by the tool (mutually exclusive with text)
|
|
@@ -161,6 +161,11 @@ export namespace TriggersTypeListResponse {
|
|
|
161
161
|
* Information about the toolkit that provides this trigger
|
|
162
162
|
*/
|
|
163
163
|
export interface Toolkit {
|
|
164
|
+
/**
|
|
165
|
+
* Logo of the toolkit
|
|
166
|
+
*/
|
|
167
|
+
logo: string;
|
|
168
|
+
|
|
164
169
|
/**
|
|
165
170
|
* Name of the parent toolkit
|
|
166
171
|
*/
|
|
@@ -6,32 +6,6 @@ import { buildHeaders } from '../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Admin extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Administrative endpoint that retrieves all active connections for a given
|
|
11
|
-
* toolkit slug. This is primarily used for token refresh operations and system
|
|
12
|
-
* maintenance. Only includes non-deleted connections with OAuth2 or JWT
|
|
13
|
-
* authentication types.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const response = await client.v3.admin.listConnections({
|
|
18
|
-
* toolkit_slug: 'google-drive',
|
|
19
|
-
* 'x-composio-admin-token': 'adm_123456789abcdef',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
listConnections(
|
|
24
|
-
params: AdminListConnectionsParams,
|
|
25
|
-
options?: RequestOptions,
|
|
26
|
-
): APIPromise<AdminListConnectionsResponse> {
|
|
27
|
-
const { 'x-composio-admin-token': xComposioAdminToken, ...query } = params;
|
|
28
|
-
return this._client.get('/api/v3/admin/connections', {
|
|
29
|
-
query,
|
|
30
|
-
...options,
|
|
31
|
-
headers: buildHeaders([{ 'x-composio-admin-token': xComposioAdminToken }, options?.headers]),
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
9
|
/**
|
|
36
10
|
* Administrative endpoint that refreshes authentication tokens for multiple
|
|
37
11
|
* connected accounts in parallel. This is useful for proactive token refresh to
|
|
@@ -59,22 +33,6 @@ export class Admin extends APIResource {
|
|
|
59
33
|
}
|
|
60
34
|
}
|
|
61
35
|
|
|
62
|
-
export interface AdminListConnectionsResponse {
|
|
63
|
-
/**
|
|
64
|
-
* Collection of account connection objects, may be empty if no connections exist
|
|
65
|
-
*/
|
|
66
|
-
items: Array<AdminListConnectionsResponse.Item>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export namespace AdminListConnectionsResponse {
|
|
70
|
-
export interface Item {
|
|
71
|
-
/**
|
|
72
|
-
* Identifier that can be used with other API endpoints that operate on connections
|
|
73
|
-
*/
|
|
74
|
-
id: string;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
36
|
export interface AdminRefreshAuthTokensResponse {
|
|
79
37
|
/**
|
|
80
38
|
* Array of connections that failed to refresh with detailed error information
|
|
@@ -101,18 +59,6 @@ export namespace AdminRefreshAuthTokensResponse {
|
|
|
101
59
|
}
|
|
102
60
|
}
|
|
103
61
|
|
|
104
|
-
export interface AdminListConnectionsParams {
|
|
105
|
-
/**
|
|
106
|
-
* Query param: The unique identifier slug of the toolkit to filter connections by
|
|
107
|
-
*/
|
|
108
|
-
toolkit_slug: string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Header param: Admin authentication token required for administrative operations
|
|
112
|
-
*/
|
|
113
|
-
'x-composio-admin-token': string;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
62
|
export interface AdminRefreshAuthTokensParams {
|
|
117
63
|
/**
|
|
118
64
|
* Body param: List of connection identifiers that need token refresh
|
|
@@ -133,9 +79,7 @@ export interface AdminRefreshAuthTokensParams {
|
|
|
133
79
|
|
|
134
80
|
export declare namespace Admin {
|
|
135
81
|
export {
|
|
136
|
-
type AdminListConnectionsResponse as AdminListConnectionsResponse,
|
|
137
82
|
type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse,
|
|
138
|
-
type AdminListConnectionsParams as AdminListConnectionsParams,
|
|
139
83
|
type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams,
|
|
140
84
|
};
|
|
141
85
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Admin,
|
|
5
|
-
type AdminListConnectionsResponse,
|
|
6
|
-
type AdminRefreshAuthTokensResponse,
|
|
7
|
-
type AdminListConnectionsParams,
|
|
8
|
-
type AdminRefreshAuthTokensParams,
|
|
9
|
-
} from './admin';
|
|
3
|
+
export { Admin, type AdminRefreshAuthTokensResponse, type AdminRefreshAuthTokensParams } from './admin';
|
|
10
4
|
export { Auth } from './auth/index';
|
|
11
5
|
export {
|
|
12
6
|
Cli,
|
package/src/resources/v3/v3.ts
CHANGED
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AdminAPI from './admin';
|
|
5
|
-
import {
|
|
6
|
-
Admin,
|
|
7
|
-
AdminListConnectionsParams,
|
|
8
|
-
AdminListConnectionsResponse,
|
|
9
|
-
AdminRefreshAuthTokensParams,
|
|
10
|
-
AdminRefreshAuthTokensResponse,
|
|
11
|
-
} from './admin';
|
|
5
|
+
import { Admin, AdminRefreshAuthTokensParams, AdminRefreshAuthTokensResponse } from './admin';
|
|
12
6
|
import * as CliAPI from './cli';
|
|
13
7
|
import {
|
|
14
8
|
Cli,
|
|
@@ -40,9 +34,7 @@ export declare namespace V3 {
|
|
|
40
34
|
|
|
41
35
|
export {
|
|
42
36
|
Admin as Admin,
|
|
43
|
-
type AdminListConnectionsResponse as AdminListConnectionsResponse,
|
|
44
37
|
type AdminRefreshAuthTokensResponse as AdminRefreshAuthTokensResponse,
|
|
45
|
-
type AdminListConnectionsParams as AdminListConnectionsParams,
|
|
46
38
|
type AdminRefreshAuthTokensParams as AdminRefreshAuthTokensParams,
|
|
47
39
|
};
|
|
48
40
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.18'; // 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.18";
|
|
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.18";
|
|
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.18'; // 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.18'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|