@composio/client 0.1.0-alpha.73 → 0.1.0-alpha.74

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 (115) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +8 -14
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -14
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth-configs.d.mts +27 -6
  12. package/resources/auth-configs.d.mts.map +1 -1
  13. package/resources/auth-configs.d.ts +27 -6
  14. package/resources/auth-configs.d.ts.map +1 -1
  15. package/resources/auth-configs.js +9 -3
  16. package/resources/auth-configs.js.map +1 -1
  17. package/resources/auth-configs.mjs +9 -3
  18. package/resources/auth-configs.mjs.map +1 -1
  19. package/resources/connected-accounts.d.mts +44 -46
  20. package/resources/connected-accounts.d.mts.map +1 -1
  21. package/resources/connected-accounts.d.ts +44 -46
  22. package/resources/connected-accounts.d.ts.map +1 -1
  23. package/resources/connected-accounts.js +11 -12
  24. package/resources/connected-accounts.js.map +1 -1
  25. package/resources/connected-accounts.mjs +11 -12
  26. package/resources/connected-accounts.mjs.map +1 -1
  27. package/resources/index.d.mts +4 -4
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +4 -4
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs +2 -2
  33. package/resources/index.mjs.map +1 -1
  34. package/resources/migration.d.mts +0 -31
  35. package/resources/migration.d.mts.map +1 -1
  36. package/resources/migration.d.ts +0 -31
  37. package/resources/migration.d.ts.map +1 -1
  38. package/resources/migration.js +0 -11
  39. package/resources/migration.js.map +1 -1
  40. package/resources/migration.mjs +0 -11
  41. package/resources/migration.mjs.map +1 -1
  42. package/resources/project/config.d.mts +0 -67
  43. package/resources/project/config.d.mts.map +1 -1
  44. package/resources/project/config.d.ts +0 -67
  45. package/resources/project/config.d.ts.map +1 -1
  46. package/resources/project/config.js +0 -24
  47. package/resources/project/config.js.map +1 -1
  48. package/resources/project/config.mjs +0 -24
  49. package/resources/project/config.mjs.map +1 -1
  50. package/resources/project/index.d.mts +1 -1
  51. package/resources/project/index.d.mts.map +1 -1
  52. package/resources/project/index.d.ts +1 -1
  53. package/resources/project/index.d.ts.map +1 -1
  54. package/resources/project/index.js.map +1 -1
  55. package/resources/project/index.mjs +1 -1
  56. package/resources/project/index.mjs.map +1 -1
  57. package/resources/project/project.d.mts +2 -2
  58. package/resources/project/project.d.mts.map +1 -1
  59. package/resources/project/project.d.ts +2 -2
  60. package/resources/project/project.d.ts.map +1 -1
  61. package/resources/project/project.js.map +1 -1
  62. package/resources/project/project.mjs.map +1 -1
  63. package/resources/tool-router/index.d.mts +1 -1
  64. package/resources/tool-router/index.d.mts.map +1 -1
  65. package/resources/tool-router/index.d.ts +1 -1
  66. package/resources/tool-router/index.d.ts.map +1 -1
  67. package/resources/tool-router/index.js.map +1 -1
  68. package/resources/tool-router/index.mjs +1 -1
  69. package/resources/tool-router/index.mjs.map +1 -1
  70. package/resources/tool-router/session/session.d.mts +1 -1
  71. package/resources/tool-router/session/session.d.mts.map +1 -1
  72. package/resources/tool-router/session/session.d.ts +1 -1
  73. package/resources/tool-router/session/session.d.ts.map +1 -1
  74. package/resources/tool-router/session/session.js.map +1 -1
  75. package/resources/tool-router/session/session.mjs.map +1 -1
  76. package/resources/tool-router/tool-router.d.mts +0 -84
  77. package/resources/tool-router/tool-router.d.mts.map +1 -1
  78. package/resources/tool-router/tool-router.d.ts +0 -84
  79. package/resources/tool-router/tool-router.d.ts.map +1 -1
  80. package/resources/tool-router/tool-router.js +0 -32
  81. package/resources/tool-router/tool-router.js.map +1 -1
  82. package/resources/tool-router/tool-router.mjs +0 -32
  83. package/resources/tool-router/tool-router.mjs.map +1 -1
  84. package/resources/tools.d.mts +2 -1
  85. package/resources/tools.d.mts.map +1 -1
  86. package/resources/tools.d.ts +2 -1
  87. package/resources/tools.d.ts.map +1 -1
  88. package/resources/tools.js +2 -1
  89. package/resources/tools.js.map +1 -1
  90. package/resources/tools.mjs +2 -1
  91. package/resources/tools.mjs.map +1 -1
  92. package/resources/trigger-instances/trigger-instances.d.mts +6 -1
  93. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  94. package/resources/trigger-instances/trigger-instances.d.ts +6 -1
  95. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  96. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  97. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  98. package/src/client.ts +17 -27
  99. package/src/resources/auth-configs.ts +37 -6
  100. package/src/resources/connected-accounts.ts +59 -67
  101. package/src/resources/index.ts +4 -10
  102. package/src/resources/migration.ts +1 -45
  103. package/src/resources/project/config.ts +1 -106
  104. package/src/resources/project/index.ts +1 -6
  105. package/src/resources/project/project.ts +2 -7
  106. package/src/resources/tool-router/index.ts +1 -5
  107. package/src/resources/tool-router/session/session.ts +1 -3
  108. package/src/resources/tool-router/tool-router.ts +0 -103
  109. package/src/resources/tools.ts +2 -1
  110. package/src/resources/trigger-instances/trigger-instances.ts +8 -2
  111. package/src/version.ts +1 -1
  112. package/version.d.mts +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/version.mjs +1 -1
@@ -77,7 +77,9 @@ export class AuthConfigs extends APIResource {
77
77
 
78
78
  /**
79
79
  * Soft-deletes an authentication configuration by marking it as deleted in the
80
- * database. This operation cannot be undone.
80
+ * database. This operation cannot be undone. Pass `?revoke_on_delete=true` to also
81
+ * revoke the upstream credentials of every connection using this auth config via a
82
+ * background job.
81
83
  *
82
84
  * @example
83
85
  * ```ts
@@ -86,8 +88,16 @@ export class AuthConfigs extends APIResource {
86
88
  * );
87
89
  * ```
88
90
  */
89
- delete(nanoid: string, options?: RequestOptions): APIPromise<unknown> {
90
- return this._client.delete(path`/api/v3.1/auth_configs/${nanoid}`, options);
91
+ delete(
92
+ nanoid: string,
93
+ params: AuthConfigDeleteParams | null | undefined = {},
94
+ options?: RequestOptions,
95
+ ): APIPromise<AuthConfigDeleteResponse> {
96
+ const { revoke_on_delete } = params ?? {};
97
+ return this._client.delete(path`/api/v3.1/auth_configs/${nanoid}`, {
98
+ query: { revoke_on_delete },
99
+ ...options,
100
+ });
91
101
  }
92
102
 
93
103
  /**
@@ -183,7 +193,8 @@ export interface AuthConfigRetrieveResponse {
183
193
  type: 'default' | 'custom';
184
194
 
185
195
  /**
186
- * The UUID of the authentication configuration (for backward compatibility)
196
+ * @deprecated The UUID of the authentication configuration (for backward
197
+ * compatibility)
187
198
  */
188
199
  uuid: string;
189
200
 
@@ -389,7 +400,8 @@ export namespace AuthConfigListResponse {
389
400
  type: 'default' | 'custom';
390
401
 
391
402
  /**
392
- * The UUID of the authentication configuration (for backward compatibility)
403
+ * @deprecated The UUID of the authentication configuration (for backward
404
+ * compatibility)
393
405
  */
394
406
  uuid: string;
395
407
 
@@ -547,7 +559,15 @@ export namespace AuthConfigListResponse {
547
559
  }
548
560
  }
549
561
 
550
- export type AuthConfigDeleteResponse = unknown;
562
+ export interface AuthConfigDeleteResponse {
563
+ /**
564
+ * Identifier of the background revoke job started for this delete. Present only
565
+ * when `revoke_on_delete=true`. Track the job and its per-connection results from
566
+ * the Composio dashboard — a programmatic endpoint to poll this job is not yet
567
+ * generally available.
568
+ */
569
+ revoke_job_id?: string;
570
+ }
551
571
 
552
572
  export type AuthConfigUpdateStatusResponse = unknown;
553
573
 
@@ -853,6 +873,16 @@ export interface AuthConfigListParams {
853
873
  toolkit_slug?: string;
854
874
  }
855
875
 
876
+ export interface AuthConfigDeleteParams {
877
+ /**
878
+ * When `true`, the delete also starts a background job that revokes the upstream
879
+ * credentials of every connected account in scope, and the response carries a
880
+ * `revoke_job_id`. Defaults to `false`. Revocation is irreversible — recovering a
881
+ * deleted entity does not restore working credentials.
882
+ */
883
+ revoke_on_delete?: boolean | null;
884
+ }
885
+
856
886
  export interface AuthConfigUpdateStatusParams {
857
887
  /**
858
888
  * The unique identifier of the authentication configuration to update
@@ -871,6 +901,7 @@ export declare namespace AuthConfigs {
871
901
  type AuthConfigCreateParams as AuthConfigCreateParams,
872
902
  type AuthConfigUpdateParams as AuthConfigUpdateParams,
873
903
  type AuthConfigListParams as AuthConfigListParams,
904
+ type AuthConfigDeleteParams as AuthConfigDeleteParams,
874
905
  type AuthConfigUpdateStatusParams as AuthConfigUpdateStatusParams,
875
906
  };
876
907
  }
@@ -79,7 +79,8 @@ export class ConnectedAccounts extends APIResource {
79
79
  /**
80
80
  * Soft-deletes a connected account by marking it as deleted in the database. This
81
81
  * prevents the account from being used for API calls but preserves the record for
82
- * audit purposes.
82
+ * audit purposes. Pass `?revoke_on_delete=true` to also revoke the account's
83
+ * upstream credentials via a background job.
83
84
  *
84
85
  * @example
85
86
  * ```ts
@@ -87,20 +88,22 @@ export class ConnectedAccounts extends APIResource {
87
88
  * await client.connectedAccounts.delete('ca_1a2b3c4d5e6f');
88
89
  * ```
89
90
  */
90
- delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
91
- return this._client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, options);
91
+ delete(
92
+ nanoid: string,
93
+ params: ConnectedAccountDeleteParams | null | undefined = {},
94
+ options?: RequestOptions,
95
+ ): APIPromise<ConnectedAccountDeleteResponse> {
96
+ const { revoke_on_delete } = params ?? {};
97
+ return this._client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, {
98
+ query: { revoke_on_delete },
99
+ ...options,
100
+ });
92
101
  }
93
102
 
94
103
  /**
95
- * Update a connected account. Supports updating alias, credentials, sharing model
96
- * (`experimental.account_type`), and per-user ACL
97
- * (`experimental.acl_config_for_shared`). Only specified fields are updated. Set a
98
- * credential field to null to remove it. Alias must be unique within the same
99
- * project, entity, and toolkit scope. Toggling `experimental.account_type` between
100
- * PRIVATE and SHARED reuses the stored credentials — no re-auth is required.
101
- * Demoting SHARED → PRIVATE atomically clears the stored ACL; supplying
102
- * `acl_config_for_shared` in the same call is rejected as
103
- * `acl_config_for_shared is only valid on SHARED connections`.
104
+ * Update a connected account. Supports updating the alias and/or credentials. Only
105
+ * specified fields will be updated. Set a credential field to null to remove it.
106
+ * Alias must be unique within the same project, entity, and toolkit scope.
104
107
  *
105
108
  * @example
106
109
  * ```ts
@@ -198,12 +201,6 @@ export interface ConnectedAccountCreateResponse {
198
201
  | ConnectedAccountCreateResponse.UnionMember12
199
202
  | ConnectedAccountCreateResponse.UnionMember13;
200
203
 
201
- /**
202
- * @deprecated DEPRECATED: This field will be removed in a future version. Please
203
- * use id and auth_config.id instead.
204
- */
205
- deprecated: ConnectedAccountCreateResponse.Deprecated;
206
-
207
204
  /**
208
205
  * @deprecated DEPRECATED: This field will be removed in a future version
209
206
  */
@@ -219,6 +216,12 @@ export interface ConnectedAccountCreateResponse {
219
216
  */
220
217
  status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
221
218
 
219
+ /**
220
+ * @deprecated DEPRECATED: This field will be removed in a future version. Please
221
+ * use id and auth_config.id instead.
222
+ */
223
+ deprecated?: ConnectedAccountCreateResponse.Deprecated;
224
+
222
225
  /**
223
226
  * Experimental features - not stable, may be modified or removed in future
224
227
  * versions.
@@ -4784,6 +4787,19 @@ export interface ConnectedAccountRetrieveResponse {
4784
4787
  */
4785
4788
  experimental?: ConnectedAccountRetrieveResponse.Experimental;
4786
4789
 
4790
+ /**
4791
+ * OAuth scopes requested when this connection was most recently initiated (create
4792
+ * or refresh). Absent for connections created before scope snapshots were captured
4793
+ * and for non-OAuth auth schemes.
4794
+ */
4795
+ requested_scopes?: Array<string>;
4796
+
4797
+ /**
4798
+ * OAuth user-token scopes requested at the most recent initiation. Only meaningful
4799
+ * for Slackbot auth configs (user-token scopes); absent otherwise.
4800
+ */
4801
+ requested_user_scopes?: Array<string>;
4802
+
4787
4803
  /**
4788
4804
  * The endpoint to make test request for verification
4789
4805
  */
@@ -13948,6 +13964,14 @@ export interface ConnectedAccountDeleteResponse {
13948
13964
  * Indicates whether the connected account was successfully deleted
13949
13965
  */
13950
13966
  success: boolean;
13967
+
13968
+ /**
13969
+ * Identifier of the background revoke job started for this delete. Present only
13970
+ * when `revoke_on_delete=true`. Track the job and its per-connection results from
13971
+ * the Composio dashboard — a programmatic endpoint to poll this job is not yet
13972
+ * generally available.
13973
+ */
13974
+ revoke_job_id?: string;
13951
13975
  }
13952
13976
 
13953
13977
  export interface ConnectedAccountPatchResponse {
@@ -18593,6 +18617,16 @@ export interface ConnectedAccountListParams {
18593
18617
  user_ids?: Array<string> | null;
18594
18618
  }
18595
18619
 
18620
+ export interface ConnectedAccountDeleteParams {
18621
+ /**
18622
+ * When `true`, the delete also starts a background job that revokes the upstream
18623
+ * credentials of every connected account in scope, and the response carries a
18624
+ * `revoke_job_id`. Defaults to `false`. Revocation is irreversible — recovering a
18625
+ * deleted entity does not restore working credentials.
18626
+ */
18627
+ revoke_on_delete?: boolean | null;
18628
+ }
18629
+
18596
18630
  export interface ConnectedAccountPatchParams {
18597
18631
  /**
18598
18632
  * A human-readable alias for this connected account. Pass an empty string to clear
@@ -18643,71 +18677,35 @@ export namespace ConnectedAccountPatchParams {
18643
18677
  export interface Val {
18644
18678
  token?: string | null;
18645
18679
 
18646
- account_id?: string | null;
18647
-
18648
- account_url?: string | null;
18649
-
18650
18680
  api_key?: string | null;
18651
18681
 
18652
- api_url?: string | null;
18682
+ api_key_prefix?: string | null;
18653
18683
 
18654
18684
  application_id?: string | null;
18655
18685
 
18656
- base_url?: string | null;
18657
-
18658
18686
  basic_encoded?: string | null;
18659
18687
 
18660
18688
  bearer_token?: string | null;
18661
18689
 
18662
- borneo_dashboard_url?: string | null;
18663
-
18664
- COMPANYDOMAIN?: string | null;
18665
-
18666
18690
  credentials_json?: string | null;
18667
18691
 
18668
- dc?: string | null;
18669
-
18670
- domain?: string | null;
18692
+ generic_api_key?: string | null;
18671
18693
 
18672
- extension?: string | null;
18694
+ generic_id?: string | null;
18673
18695
 
18674
- form_api_base_url?: string | null;
18696
+ generic_secret?: string | null;
18675
18697
 
18676
- generic_api_key?: string | null;
18698
+ generic_token?: string | null;
18677
18699
 
18678
18700
  installation_id?: string | null;
18679
18701
 
18680
- instanceEndpoint?: string | null;
18681
-
18682
- instanceName?: string | null;
18683
-
18684
18702
  password?: string | null;
18685
18703
 
18686
18704
  private_key?: string | null;
18687
18705
 
18688
- proxy_password?: string | null;
18689
-
18690
- proxy_username?: string | null;
18691
-
18692
- region?: string | null;
18693
-
18694
- server_location?: string | null;
18695
-
18696
- shop?: string | null;
18697
-
18698
- site_name?: string | null;
18699
-
18700
- subdomain?: string | null;
18706
+ user_agent?: string | null;
18701
18707
 
18702
18708
  username?: string | null;
18703
-
18704
- version?: string | null;
18705
-
18706
- your_server?: string | null;
18707
-
18708
- 'your-domain'?: string | null;
18709
-
18710
- [k: string]: unknown;
18711
18709
  }
18712
18710
  }
18713
18711
  }
@@ -18717,13 +18715,6 @@ export namespace ConnectedAccountPatchParams {
18717
18715
  * versions.
18718
18716
  */
18719
18717
  export interface Experimental {
18720
- /**
18721
- * Mutate the sharing model. PRIVATE → SHARED promotes the existing connection
18722
- * without re-auth; SHARED → PRIVATE revokes all non-creator access and clears the
18723
- * stored ACL atomically. Omit to leave unchanged.
18724
- */
18725
- account_type?: 'PRIVATE' | 'SHARED';
18726
-
18727
18718
  /**
18728
18719
  * Access control for SHARED connections. Resolution rule (only fires when caller
18729
18720
  * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
@@ -18796,6 +18787,7 @@ export declare namespace ConnectedAccounts {
18796
18787
  type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse,
18797
18788
  type ConnectedAccountCreateParams as ConnectedAccountCreateParams,
18798
18789
  type ConnectedAccountListParams as ConnectedAccountListParams,
18790
+ type ConnectedAccountDeleteParams as ConnectedAccountDeleteParams,
18799
18791
  type ConnectedAccountPatchParams as ConnectedAccountPatchParams,
18800
18792
  type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams,
18801
18793
  type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams,
@@ -11,6 +11,7 @@ export {
11
11
  type AuthConfigCreateParams,
12
12
  type AuthConfigUpdateParams,
13
13
  type AuthConfigListParams,
14
+ type AuthConfigDeleteParams,
14
15
  type AuthConfigUpdateStatusParams,
15
16
  } from './auth-configs';
16
17
  export {
@@ -31,6 +32,7 @@ export {
31
32
  type ConnectedAccountUpdateStatusResponse,
32
33
  type ConnectedAccountCreateParams,
33
34
  type ConnectedAccountListParams,
35
+ type ConnectedAccountDeleteParams,
34
36
  type ConnectedAccountPatchParams,
35
37
  type ConnectedAccountRefreshParams,
36
38
  type ConnectedAccountUpdateStatusParams,
@@ -57,17 +59,9 @@ export {
57
59
  type McpListParams,
58
60
  type McpRetrieveAppParams,
59
61
  } from './mcp/mcp';
60
- export {
61
- Migration,
62
- type MigrationRetrieveNanoidResponse,
63
- type MigrationRetrieveNanoidParams,
64
- } from './migration';
62
+ export { Migration } from './migration';
65
63
  export { Project } from './project/project';
66
- export {
67
- ToolRouter,
68
- type ToolRouterCreateSessionResponse,
69
- type ToolRouterCreateSessionParams,
70
- } from './tool-router/tool-router';
64
+ export { ToolRouter } from './tool-router/tool-router';
71
65
  export {
72
66
  Toolkits,
73
67
  type ToolkitRetrieveResponse,
@@ -1,49 +1,5 @@
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 { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
4
 
7
- /**
8
- * Endpoints to help with migration from v1 to v3
9
- */
10
- export class Migration extends APIResource {
11
- /**
12
- * Convert a legacy UUID to its corresponding NanoId for migration purposes. This
13
- * endpoint facilitates the transition from UUID-based identifiers to the more
14
- * compact NanoId format used in the v3 API.
15
- */
16
- retrieveNanoid(
17
- query: MigrationRetrieveNanoidParams,
18
- options?: RequestOptions,
19
- ): APIPromise<MigrationRetrieveNanoidResponse> {
20
- return this._client.get('/api/v3.1/migration/get-nanoid', { query, ...options });
21
- }
22
- }
23
-
24
- export interface MigrationRetrieveNanoidResponse {
25
- /**
26
- * The NanoId corresponding to the provided UUID. This is the new identifier that
27
- * should be used in place of the legacy UUID.
28
- */
29
- nanoid: string;
30
- }
31
-
32
- export interface MigrationRetrieveNanoidParams {
33
- /**
34
- * The type of resource that the UUID belongs to
35
- */
36
- type: 'CONNECTED_ACCOUNT' | 'AUTH_CONFIG' | 'TRIGGER_INSTANCE';
37
-
38
- /**
39
- * The legacy UUID that needs to be converted to a NanoId
40
- */
41
- uuid: string;
42
- }
43
-
44
- export declare namespace Migration {
45
- export {
46
- type MigrationRetrieveNanoidResponse as MigrationRetrieveNanoidResponse,
47
- type MigrationRetrieveNanoidParams as MigrationRetrieveNanoidParams,
48
- };
49
- }
5
+ export class Migration extends APIResource {}
@@ -1,110 +1,5 @@
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 { APIPromise } from '../../core/api-promise';
5
- import { RequestOptions } from '../../internal/request-options';
6
4
 
7
- export class Config extends APIResource {
8
- /**
9
- * Retrieves the current project configuration including 2FA settings.
10
- *
11
- * @example
12
- * ```ts
13
- * const config = await client.project.config.retrieve();
14
- * ```
15
- */
16
- retrieve(options?: RequestOptions): APIPromise<ConfigRetrieveResponse> {
17
- return this._client.get('/api/v3.1/org/project/config', options);
18
- }
19
-
20
- /**
21
- * Updates the project configuration settings.
22
- *
23
- * @example
24
- * ```ts
25
- * const config = await client.project.config.update({
26
- * is_2FA_enabled: true,
27
- * });
28
- * ```
29
- */
30
- update(
31
- body: ConfigUpdateParams | null | undefined = {},
32
- options?: RequestOptions,
33
- ): APIPromise<ConfigUpdateResponse> {
34
- return this._client.patch('/api/v3.1/org/project/config', { body, ...options });
35
- }
36
- }
37
-
38
- export interface ConfigRetrieveResponse {
39
- is_2FA_enabled: boolean;
40
-
41
- log_visibility_setting: 'show_all' | 'dont_store_data';
42
-
43
- mask_secret_keys_in_connected_account: boolean;
44
-
45
- display_name?: string;
46
-
47
- /**
48
- * Whether to enable composio link for managed authentication. This key will be
49
- * deprecated in the future. Please don't use this key.
50
- */
51
- is_composio_link_enabled_for_managed_auth?: boolean;
52
-
53
- logo_url?: string;
54
-
55
- require_mcp_api_key?: boolean;
56
-
57
- signed_url_file_expiry_in_seconds?: number;
58
- }
59
-
60
- export interface ConfigUpdateResponse {
61
- is_2FA_enabled: boolean;
62
-
63
- log_visibility_setting: 'show_all' | 'dont_store_data';
64
-
65
- mask_secret_keys_in_connected_account: boolean;
66
-
67
- display_name?: string;
68
-
69
- /**
70
- * Whether to enable composio link for managed authentication. This key will be
71
- * deprecated in the future. Please don't use this key.
72
- */
73
- is_composio_link_enabled_for_managed_auth?: boolean;
74
-
75
- logo_url?: string;
76
-
77
- require_mcp_api_key?: boolean;
78
-
79
- signed_url_file_expiry_in_seconds?: number;
80
- }
81
-
82
- export interface ConfigUpdateParams {
83
- display_name?: string;
84
-
85
- is_2FA_enabled?: boolean;
86
-
87
- /**
88
- * Whether to enable composio link for managed authentication. This key will be
89
- * deprecated in the future. Please don't use this key.
90
- */
91
- is_composio_link_enabled_for_managed_auth?: boolean;
92
-
93
- log_visibility_setting?: 'show_all' | 'dont_store_data';
94
-
95
- logo_url?: string;
96
-
97
- mask_secret_keys_in_connected_account?: boolean;
98
-
99
- require_mcp_api_key?: boolean;
100
-
101
- signed_url_file_expiry_in_seconds?: number;
102
- }
103
-
104
- export declare namespace Config {
105
- export {
106
- type ConfigRetrieveResponse as ConfigRetrieveResponse,
107
- type ConfigUpdateResponse as ConfigUpdateResponse,
108
- type ConfigUpdateParams as ConfigUpdateParams,
109
- };
110
- }
5
+ export class Config extends APIResource {}
@@ -1,9 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- Config,
5
- type ConfigRetrieveResponse,
6
- type ConfigUpdateResponse,
7
- type ConfigUpdateParams,
8
- } from './config';
3
+ export { Config } from './config';
9
4
  export { Project } from './project';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as ConfigAPI from './config';
5
- import { Config, ConfigRetrieveResponse, ConfigUpdateParams, ConfigUpdateResponse } from './config';
5
+ import { Config } from './config';
6
6
 
7
7
  export class Project extends APIResource {
8
8
  config: ConfigAPI.Config = new ConfigAPI.Config(this._client);
@@ -11,10 +11,5 @@ export class Project extends APIResource {
11
11
  Project.Config = Config;
12
12
 
13
13
  export declare namespace Project {
14
- export {
15
- Config as Config,
16
- type ConfigRetrieveResponse as ConfigRetrieveResponse,
17
- type ConfigUpdateResponse as ConfigUpdateResponse,
18
- type ConfigUpdateParams as ConfigUpdateParams,
19
- };
14
+ export { Config as Config };
20
15
  }
@@ -26,8 +26,4 @@ export {
26
26
  type SessionToolkitsParams,
27
27
  type SessionToolsParams,
28
28
  } from './session/index';
29
- export {
30
- ToolRouter,
31
- type ToolRouterCreateSessionResponse,
32
- type ToolRouterCreateSessionParams,
33
- } from './tool-router';
29
+ export { ToolRouter } from './tool-router';
@@ -3512,9 +3512,7 @@ export interface SessionExecuteMetaParams {
3512
3512
  | 'COMPOSIO_WAIT_FOR_CONNECTIONS'
3513
3513
  | 'COMPOSIO_REMOTE_WORKBENCH'
3514
3514
  | 'COMPOSIO_REMOTE_BASH_TOOL'
3515
- | 'COMPOSIO_GET_TOOL_SCHEMAS'
3516
- | 'COMPOSIO_UPSERT_RECIPE'
3517
- | 'COMPOSIO_GET_RECIPE';
3515
+ | 'COMPOSIO_GET_TOOL_SCHEMAS';
3518
3516
 
3519
3517
  /**
3520
3518
  * The arguments required by the meta tool
@@ -28,117 +28,14 @@ import {
28
28
  SessionToolsParams,
29
29
  SessionToolsResponse,
30
30
  } from './session/session';
31
- import { APIPromise } from '../../core/api-promise';
32
- import { RequestOptions } from '../../internal/request-options';
33
31
 
34
- /**
35
- * (Labs) Tool router endpoints
36
- */
37
32
  export class ToolRouter extends APIResource {
38
33
  session: SessionAPI.Session = new SessionAPI.Session(this._client);
39
-
40
- /**
41
- * Creates a new session for the tool router lab feature (Legacy). This endpoint
42
- * initializes a new session with specified toolkits and their authentication
43
- * configurations. The session provides an isolated environment for testing and
44
- * managing tool routing logic with scoped MCP server access.
45
- *
46
- * @example
47
- * ```ts
48
- * const response = await client.toolRouter.createSession({
49
- * user_id: 'user_123456789',
50
- * config: {
51
- * toolkits: [
52
- * {
53
- * toolkit: 'gmail',
54
- * auth_config_id: 'ac_1a2b3c4d5e6f',
55
- * },
56
- * {
57
- * toolkit: 'slack',
58
- * auth_config_id: 'ac_7g8h9i0j1k2l',
59
- * },
60
- * { toolkit: 'github' },
61
- * ],
62
- * },
63
- * });
64
- * ```
65
- */
66
- createSession(
67
- body: ToolRouterCreateSessionParams,
68
- options?: RequestOptions,
69
- ): APIPromise<ToolRouterCreateSessionResponse> {
70
- return this._client.post('/api/v3.1/labs/tool_router/session', { body, ...options });
71
- }
72
- }
73
-
74
- export interface ToolRouterCreateSessionResponse {
75
- /**
76
- * MCP server endpoint URL for this specific chat session
77
- */
78
- chat_session_mcp_url: string;
79
-
80
- /**
81
- * Generated session identifier (prefixed with "trs\_")
82
- */
83
- session_id: string;
84
-
85
- /**
86
- * MCP server endpoint URL for this specific tool router instance
87
- */
88
- tool_router_instance_mcp_url: string;
89
- }
90
-
91
- export interface ToolRouterCreateSessionParams {
92
- /**
93
- * Unique user identifier for the session owner
94
- */
95
- user_id: string;
96
-
97
- /**
98
- * Session configuration including enabled toolkits and their auth configs
99
- */
100
- config?: ToolRouterCreateSessionParams.Config;
101
- }
102
-
103
- export namespace ToolRouterCreateSessionParams {
104
- /**
105
- * Session configuration including enabled toolkits and their auth configs
106
- */
107
- export interface Config {
108
- /**
109
- * Whether to manually manage connections
110
- */
111
- manually_manage_connections?: boolean | null;
112
-
113
- /**
114
- * Array of toolkit configurations with optional auth configs
115
- */
116
- toolkits?: Array<Config.Toolkit>;
117
- }
118
-
119
- export namespace Config {
120
- export interface Toolkit {
121
- /**
122
- * Toolkit identifier (e.g., gmail, slack, github)
123
- */
124
- toolkit: string;
125
-
126
- /**
127
- * Specific auth configuration ID for this toolkit
128
- */
129
- auth_config_id?: string;
130
- }
131
- }
132
34
  }
133
35
 
134
36
  ToolRouter.Session = Session;
135
37
 
136
38
  export declare namespace ToolRouter {
137
- export {
138
- type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
139
- type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
140
- };
141
-
142
39
  export {
143
40
  Session as Session,
144
41
  type SessionCreateResponse as SessionCreateResponse,
@@ -96,7 +96,8 @@ export class Tools extends APIResource {
96
96
  /**
97
97
  * Proxy an HTTP request to a third-party API using connected account credentials.
98
98
  * This endpoint allows making authenticated API calls to external services while
99
- * abstracting away authentication details.
99
+ * abstracting away authentication details. v3.1 requires a proxy_execute scoped
100
+ * project API key; default project API keys are rejected.
100
101
  *
101
102
  * @example
102
103
  * ```ts