@composio/client 0.1.0-alpha.61 → 0.1.0-alpha.63

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 (99) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/internal/utils/env.js +2 -2
  9. package/internal/utils/env.js.map +1 -1
  10. package/internal/utils/env.mjs +2 -2
  11. package/internal/utils/env.mjs.map +1 -1
  12. package/package.json +12 -1
  13. package/resources/auth-configs.d.mts +17 -0
  14. package/resources/auth-configs.d.mts.map +1 -1
  15. package/resources/auth-configs.d.ts +17 -0
  16. package/resources/auth-configs.d.ts.map +1 -1
  17. package/resources/connected-accounts.d.mts +981 -137
  18. package/resources/connected-accounts.d.mts.map +1 -1
  19. package/resources/connected-accounts.d.ts +981 -137
  20. package/resources/connected-accounts.d.ts.map +1 -1
  21. package/resources/connected-accounts.js +27 -4
  22. package/resources/connected-accounts.js.map +1 -1
  23. package/resources/connected-accounts.mjs +27 -4
  24. package/resources/connected-accounts.mjs.map +1 -1
  25. package/resources/index.d.mts +1 -1
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +1 -1
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/link.d.mts +168 -1
  32. package/resources/link.d.mts.map +1 -1
  33. package/resources/link.d.ts +168 -1
  34. package/resources/link.d.ts.map +1 -1
  35. package/resources/mcp/mcp.d.mts +1 -1
  36. package/resources/mcp/mcp.d.ts +1 -1
  37. package/resources/mcp/mcp.js +1 -1
  38. package/resources/mcp/mcp.mjs +1 -1
  39. package/resources/tool-router/index.d.mts +1 -1
  40. package/resources/tool-router/index.d.mts.map +1 -1
  41. package/resources/tool-router/index.d.ts +1 -1
  42. package/resources/tool-router/index.d.ts.map +1 -1
  43. package/resources/tool-router/index.js.map +1 -1
  44. package/resources/tool-router/index.mjs.map +1 -1
  45. package/resources/tool-router/session/index.d.mts +1 -1
  46. package/resources/tool-router/session/index.d.mts.map +1 -1
  47. package/resources/tool-router/session/index.d.ts +1 -1
  48. package/resources/tool-router/session/index.d.ts.map +1 -1
  49. package/resources/tool-router/session/index.js.map +1 -1
  50. package/resources/tool-router/session/index.mjs.map +1 -1
  51. package/resources/tool-router/session/session.d.mts +879 -12
  52. package/resources/tool-router/session/session.d.mts.map +1 -1
  53. package/resources/tool-router/session/session.d.ts +879 -12
  54. package/resources/tool-router/session/session.d.ts.map +1 -1
  55. package/resources/tool-router/session/session.js +29 -1
  56. package/resources/tool-router/session/session.js.map +1 -1
  57. package/resources/tool-router/session/session.mjs +29 -1
  58. package/resources/tool-router/session/session.mjs.map +1 -1
  59. package/resources/tool-router/tool-router.d.mts +4 -4
  60. package/resources/tool-router/tool-router.d.mts.map +1 -1
  61. package/resources/tool-router/tool-router.d.ts +4 -4
  62. package/resources/tool-router/tool-router.d.ts.map +1 -1
  63. package/resources/tool-router/tool-router.js +2 -2
  64. package/resources/tool-router/tool-router.js.map +1 -1
  65. package/resources/tool-router/tool-router.mjs +2 -2
  66. package/resources/tool-router/tool-router.mjs.map +1 -1
  67. package/resources/toolkits.d.mts +13 -0
  68. package/resources/toolkits.d.mts.map +1 -1
  69. package/resources/toolkits.d.ts +13 -0
  70. package/resources/toolkits.d.ts.map +1 -1
  71. package/resources/tools.d.mts +114 -2
  72. package/resources/tools.d.mts.map +1 -1
  73. package/resources/tools.d.ts +114 -2
  74. package/resources/tools.d.ts.map +1 -1
  75. package/resources/trigger-instances/trigger-instances.d.mts +6 -1
  76. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  77. package/resources/trigger-instances/trigger-instances.d.ts +6 -1
  78. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  79. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  80. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  81. package/src/client.ts +4 -0
  82. package/src/internal/utils/env.ts +2 -2
  83. package/src/resources/auth-configs.ts +22 -0
  84. package/src/resources/connected-accounts.ts +3698 -2112
  85. package/src/resources/index.ts +2 -0
  86. package/src/resources/link.ts +329 -1
  87. package/src/resources/mcp/mcp.ts +1 -1
  88. package/src/resources/tool-router/index.ts +2 -0
  89. package/src/resources/tool-router/session/index.ts +2 -0
  90. package/src/resources/tool-router/session/session.ts +1343 -48
  91. package/src/resources/tool-router/tool-router.ts +6 -2
  92. package/src/resources/toolkits.ts +16 -0
  93. package/src/resources/tools.ts +188 -2
  94. package/src/resources/trigger-instances/trigger-instances.ts +7 -1
  95. package/src/version.ts +1 -1
  96. package/version.d.mts +1 -1
  97. package/version.d.ts +1 -1
  98. package/version.js +1 -1
  99. package/version.mjs +1 -1
@@ -12,6 +12,8 @@ import {
12
12
  SessionExecuteResponse,
13
13
  SessionLinkParams,
14
14
  SessionLinkResponse,
15
+ SessionProxyExecuteParams,
16
+ SessionProxyExecuteResponse,
15
17
  SessionRetrieveResponse,
16
18
  SessionSearchParams,
17
19
  SessionSearchResponse,
@@ -43,11 +45,11 @@ export class ToolRouter extends APIResource {
43
45
  * toolkits: [
44
46
  * {
45
47
  * toolkit: 'gmail',
46
- * auth_config_id: 'auth_config_123',
48
+ * auth_config_id: 'ac_1a2b3c4d5e6f',
47
49
  * },
48
50
  * {
49
51
  * toolkit: 'slack',
50
- * auth_config_id: 'auth_config_456',
52
+ * auth_config_id: 'ac_7g8h9i0j1k2l',
51
53
  * },
52
54
  * { toolkit: 'github' },
53
55
  * ],
@@ -138,6 +140,7 @@ export declare namespace ToolRouter {
138
140
  type SessionExecuteResponse as SessionExecuteResponse,
139
141
  type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
140
142
  type SessionLinkResponse as SessionLinkResponse,
143
+ type SessionProxyExecuteResponse as SessionProxyExecuteResponse,
141
144
  type SessionSearchResponse as SessionSearchResponse,
142
145
  type SessionToolkitsResponse as SessionToolkitsResponse,
143
146
  type SessionToolsResponse as SessionToolsResponse,
@@ -145,6 +148,7 @@ export declare namespace ToolRouter {
145
148
  type SessionExecuteParams as SessionExecuteParams,
146
149
  type SessionExecuteMetaParams as SessionExecuteMetaParams,
147
150
  type SessionLinkParams as SessionLinkParams,
151
+ type SessionProxyExecuteParams as SessionProxyExecuteParams,
148
152
  type SessionSearchParams as SessionSearchParams,
149
153
  type SessionToolkitsParams as SessionToolkitsParams,
150
154
  type SessionToolsParams as SessionToolsParams,
@@ -86,6 +86,11 @@ export interface ToolkitRetrieveResponse {
86
86
  */
87
87
  auth_config_details?: Array<ToolkitRetrieveResponse.AuthConfigDetail>;
88
88
 
89
+ /**
90
+ * URL to a guide page with authentication setup instructions for this toolkit
91
+ */
92
+ auth_guide_url?: string | null;
93
+
89
94
  /**
90
95
  * If evaluation of base URL needs some connection info (like shopify), please
91
96
  * create the connection and get the base URL from there
@@ -206,6 +211,12 @@ export namespace ToolkitRetrieveResponse {
206
211
  */
207
212
  name: string;
208
213
 
214
+ /**
215
+ * URL to a page where users can obtain or configure credentials for this
216
+ * authentication method
217
+ */
218
+ auth_hint_url?: string | null;
219
+
209
220
  /**
210
221
  * @deprecated Authentication URL fields for OAuth 2.0 and OAuth 1.0. We don't
211
222
  * recommend using this field for authentication and might break post Aug 31 2025.
@@ -390,6 +401,11 @@ export namespace ToolkitListResponse {
390
401
  */
391
402
  slug: string;
392
403
 
404
+ /**
405
+ * URL to a guide page with authentication setup instructions for this toolkit
406
+ */
407
+ auth_guide_url?: string | null;
408
+
393
409
  /**
394
410
  * List of authentication methods supported by this toolkit
395
411
  */
@@ -163,6 +163,12 @@ export interface ToolRetrieveResponse {
163
163
  */
164
164
  output_parameters: { [key: string]: unknown };
165
165
 
166
+ /**
167
+ * Structured scope requirements for the tool. Null means the tool is legacy and
168
+ * only exposes flat scopes.
169
+ */
170
+ scope_requirements: ToolRetrieveResponse.ScopeRequirements | null;
171
+
166
172
  /**
167
173
  * List of scopes associated with the tool
168
174
  */
@@ -225,6 +231,20 @@ export namespace ToolRetrieveResponse {
225
231
  }
226
232
  }
227
233
 
234
+ /**
235
+ * Structured scope requirements for the tool. Null means the tool is legacy and
236
+ * only exposes flat scopes.
237
+ */
238
+ export interface ScopeRequirements {
239
+ all_of: Array<string | ScopeRequirements.AnyOf>;
240
+ }
241
+
242
+ export namespace ScopeRequirements {
243
+ export interface AnyOf {
244
+ any_of: Array<string>;
245
+ }
246
+ }
247
+
228
248
  export interface Toolkit {
229
249
  /**
230
250
  * URL to the toolkit logo image
@@ -294,6 +314,12 @@ export namespace ToolListResponse {
294
314
  */
295
315
  output_parameters: { [key: string]: unknown };
296
316
 
317
+ /**
318
+ * Structured scope requirements for the tool. Null means the tool is legacy and
319
+ * only exposes flat scopes.
320
+ */
321
+ scope_requirements: Item.ScopeRequirements | null;
322
+
297
323
  /**
298
324
  * List of scopes associated with the tool
299
325
  */
@@ -356,6 +382,20 @@ export namespace ToolListResponse {
356
382
  }
357
383
  }
358
384
 
385
+ /**
386
+ * Structured scope requirements for the tool. Null means the tool is legacy and
387
+ * only exposes flat scopes.
388
+ */
389
+ export interface ScopeRequirements {
390
+ all_of: Array<string | ScopeRequirements.AnyOf>;
391
+ }
392
+
393
+ export namespace ScopeRequirements {
394
+ export interface AnyOf {
395
+ any_of: Array<string>;
396
+ }
397
+ }
398
+
359
399
  export interface Toolkit {
360
400
  /**
361
401
  * URL to the toolkit logo image
@@ -589,7 +629,8 @@ export interface ToolExecuteParams {
589
629
  | ToolExecuteParams.UnionMember6
590
630
  | ToolExecuteParams.UnionMember7
591
631
  | ToolExecuteParams.UnionMember8
592
- | ToolExecuteParams.UnionMember9;
632
+ | ToolExecuteParams.UnionMember9
633
+ | ToolExecuteParams.UnionMember10;
593
634
 
594
635
  /**
595
636
  * @deprecated Body param: Deprecated: please use user_id instead. Entity
@@ -1356,6 +1397,78 @@ export namespace ToolExecuteParams {
1356
1397
  [k: string]: unknown;
1357
1398
  }
1358
1399
  }
1400
+
1401
+ export interface UnionMember10 {
1402
+ authScheme: 'S2S_OAUTH2';
1403
+
1404
+ toolkitSlug: string;
1405
+
1406
+ val: UnionMember10.Val;
1407
+ }
1408
+
1409
+ export namespace UnionMember10 {
1410
+ export interface Val {
1411
+ access_token: string;
1412
+
1413
+ client_id: string;
1414
+
1415
+ client_secret: string;
1416
+
1417
+ account_id?: string;
1418
+
1419
+ account_url?: string;
1420
+
1421
+ api_url?: string;
1422
+
1423
+ base_url?: string;
1424
+
1425
+ borneo_dashboard_url?: string;
1426
+
1427
+ COMPANYDOMAIN?: string;
1428
+
1429
+ dc?: string;
1430
+
1431
+ domain?: string;
1432
+
1433
+ expires_at?: string;
1434
+
1435
+ expires_in?: number | string | null;
1436
+
1437
+ extension?: string;
1438
+
1439
+ form_api_base_url?: string;
1440
+
1441
+ instanceEndpoint?: string;
1442
+
1443
+ instanceName?: string;
1444
+
1445
+ proxy_password?: string;
1446
+
1447
+ proxy_username?: string;
1448
+
1449
+ region?: string;
1450
+
1451
+ scope?: string | Array<string> | null;
1452
+
1453
+ server_location?: string;
1454
+
1455
+ shop?: string;
1456
+
1457
+ site_name?: string;
1458
+
1459
+ subdomain?: string;
1460
+
1461
+ token_type?: string;
1462
+
1463
+ version?: string;
1464
+
1465
+ your_server?: string;
1466
+
1467
+ 'your-domain'?: string;
1468
+
1469
+ [k: string]: unknown;
1470
+ }
1471
+ }
1359
1472
  }
1360
1473
 
1361
1474
  export interface ToolGetInputParams {
@@ -1426,7 +1539,8 @@ export interface ToolProxyParams {
1426
1539
  | ToolProxyParams.UnionMember6
1427
1540
  | ToolProxyParams.UnionMember7
1428
1541
  | ToolProxyParams.UnionMember8
1429
- | ToolProxyParams.UnionMember9;
1542
+ | ToolProxyParams.UnionMember9
1543
+ | ToolProxyParams.UnionMember10;
1430
1544
 
1431
1545
  /**
1432
1546
  * Additional HTTP headers or query parameters to include in the request
@@ -2153,6 +2267,78 @@ export namespace ToolProxyParams {
2153
2267
  }
2154
2268
  }
2155
2269
 
2270
+ export interface UnionMember10 {
2271
+ authScheme: 'S2S_OAUTH2';
2272
+
2273
+ toolkitSlug: string;
2274
+
2275
+ val: UnionMember10.Val;
2276
+ }
2277
+
2278
+ export namespace UnionMember10 {
2279
+ export interface Val {
2280
+ access_token: string;
2281
+
2282
+ client_id: string;
2283
+
2284
+ client_secret: string;
2285
+
2286
+ account_id?: string;
2287
+
2288
+ account_url?: string;
2289
+
2290
+ api_url?: string;
2291
+
2292
+ base_url?: string;
2293
+
2294
+ borneo_dashboard_url?: string;
2295
+
2296
+ COMPANYDOMAIN?: string;
2297
+
2298
+ dc?: string;
2299
+
2300
+ domain?: string;
2301
+
2302
+ expires_at?: string;
2303
+
2304
+ expires_in?: number | string | null;
2305
+
2306
+ extension?: string;
2307
+
2308
+ form_api_base_url?: string;
2309
+
2310
+ instanceEndpoint?: string;
2311
+
2312
+ instanceName?: string;
2313
+
2314
+ proxy_password?: string;
2315
+
2316
+ proxy_username?: string;
2317
+
2318
+ region?: string;
2319
+
2320
+ scope?: string | Array<string> | null;
2321
+
2322
+ server_location?: string;
2323
+
2324
+ shop?: string;
2325
+
2326
+ site_name?: string;
2327
+
2328
+ subdomain?: string;
2329
+
2330
+ token_type?: string;
2331
+
2332
+ version?: string;
2333
+
2334
+ your_server?: string;
2335
+
2336
+ 'your-domain'?: string;
2337
+
2338
+ [k: string]: unknown;
2339
+ }
2340
+ }
2341
+
2156
2342
  export interface Parameter {
2157
2343
  /**
2158
2344
  * Parameter name
@@ -101,7 +101,8 @@ export namespace TriggerInstanceListActiveResponse {
101
101
  disabledAt: string | null;
102
102
 
103
103
  /**
104
- * State of the trigger instance
104
+ * @deprecated DEPRECATED: This field exposes internal state and will be removed in
105
+ * a future version.
105
106
  */
106
107
  state: { [key: string]: unknown };
107
108
 
@@ -143,6 +144,11 @@ export namespace TriggerInstanceListActiveResponse {
143
144
  */
144
145
  user_id: string;
145
146
 
147
+ /**
148
+ * Version of the trigger instance
149
+ */
150
+ version: string;
151
+
146
152
  /**
147
153
  * Deprecated fields for the trigger instance
148
154
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.61'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.63'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.61";
1
+ export declare const VERSION = "0.1.0-alpha.63";
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.61";
1
+ export declare const VERSION = "0.1.0-alpha.63";
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.61'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.63'; // 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.61'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.63'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map