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

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 (223) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/resource.d.mts.map +1 -1
  16. package/core/resource.d.ts.map +1 -1
  17. package/core/uploads.d.mts.map +1 -1
  18. package/core/uploads.d.ts.map +1 -1
  19. package/core/uploads.mjs.map +1 -1
  20. package/error.d.mts +1 -0
  21. package/error.d.mts.map +1 -1
  22. package/error.d.ts +1 -0
  23. package/error.d.ts.map +1 -1
  24. package/error.mjs +1 -0
  25. package/error.mjs.map +1 -1
  26. package/index.d.mts.map +1 -1
  27. package/index.d.ts.map +1 -1
  28. package/index.mjs.map +1 -1
  29. package/internal/detect-platform.mjs.map +1 -1
  30. package/internal/headers.mjs.map +1 -1
  31. package/internal/parse.d.mts.map +1 -1
  32. package/internal/parse.d.ts.map +1 -1
  33. package/internal/parse.mjs.map +1 -1
  34. package/internal/qs/formats.d.mts.map +1 -1
  35. package/internal/qs/formats.d.ts.map +1 -1
  36. package/internal/qs/index.d.mts +2 -2
  37. package/internal/qs/index.d.mts.map +1 -1
  38. package/internal/qs/index.d.ts +2 -2
  39. package/internal/qs/index.d.ts.map +1 -1
  40. package/internal/qs/index.mjs.map +1 -1
  41. package/internal/qs/stringify.d.mts.map +1 -1
  42. package/internal/qs/stringify.d.ts.map +1 -1
  43. package/internal/qs/stringify.mjs.map +1 -1
  44. package/internal/qs/utils.d.mts.map +1 -1
  45. package/internal/qs/utils.d.ts.map +1 -1
  46. package/internal/qs/utils.mjs.map +1 -1
  47. package/internal/request-options.d.mts.map +1 -1
  48. package/internal/request-options.d.ts.map +1 -1
  49. package/internal/shims.d.mts +6 -0
  50. package/internal/shims.d.mts.map +1 -1
  51. package/internal/shims.d.ts +6 -0
  52. package/internal/shims.d.ts.map +1 -1
  53. package/internal/to-file.d.mts.map +1 -1
  54. package/internal/to-file.d.ts.map +1 -1
  55. package/internal/to-file.mjs.map +1 -1
  56. package/internal/types.d.mts +4 -4
  57. package/internal/types.d.mts.map +1 -1
  58. package/internal/types.d.ts +4 -4
  59. package/internal/types.d.ts.map +1 -1
  60. package/internal/uploads.d.mts.map +1 -1
  61. package/internal/uploads.d.ts.map +1 -1
  62. package/internal/uploads.mjs.map +1 -1
  63. package/internal/utils/base64.mjs.map +1 -1
  64. package/internal/utils/log.d.mts.map +1 -1
  65. package/internal/utils/log.d.ts.map +1 -1
  66. package/internal/utils/log.mjs.map +1 -1
  67. package/internal/utils/path.mjs.map +1 -1
  68. package/internal/utils/query.mjs.map +1 -1
  69. package/internal/utils/values.mjs.map +1 -1
  70. package/internal/utils.d.mts.map +1 -1
  71. package/internal/utils.d.ts.map +1 -1
  72. package/internal/utils.mjs.map +1 -1
  73. package/package.json +1 -1
  74. package/resource.d.mts +1 -0
  75. package/resource.d.mts.map +1 -1
  76. package/resource.d.ts +1 -0
  77. package/resource.d.ts.map +1 -1
  78. package/resource.mjs +1 -0
  79. package/resource.mjs.map +1 -1
  80. package/resources/auth-configs.d.mts.map +1 -1
  81. package/resources/auth-configs.d.ts.map +1 -1
  82. package/resources/auth-configs.mjs.map +1 -1
  83. package/resources/cli/cli.d.mts.map +1 -1
  84. package/resources/cli/cli.d.ts.map +1 -1
  85. package/resources/cli/cli.mjs.map +1 -1
  86. package/resources/cli/index.d.mts.map +1 -1
  87. package/resources/cli/index.d.ts.map +1 -1
  88. package/resources/cli/index.mjs.map +1 -1
  89. package/resources/cli/realtime.d.mts.map +1 -1
  90. package/resources/cli/realtime.d.ts.map +1 -1
  91. package/resources/cli/realtime.mjs.map +1 -1
  92. package/resources/cli.d.mts.map +1 -1
  93. package/resources/cli.d.ts.map +1 -1
  94. package/resources/cli.mjs.map +1 -1
  95. package/resources/connected-accounts.d.mts +203 -112
  96. package/resources/connected-accounts.d.mts.map +1 -1
  97. package/resources/connected-accounts.d.ts +203 -112
  98. package/resources/connected-accounts.d.ts.map +1 -1
  99. package/resources/connected-accounts.js +9 -3
  100. package/resources/connected-accounts.js.map +1 -1
  101. package/resources/connected-accounts.mjs +9 -3
  102. package/resources/connected-accounts.mjs.map +1 -1
  103. package/resources/files.d.mts.map +1 -1
  104. package/resources/files.d.ts.map +1 -1
  105. package/resources/files.mjs.map +1 -1
  106. package/resources/index.d.mts.map +1 -1
  107. package/resources/index.d.ts.map +1 -1
  108. package/resources/index.mjs.map +1 -1
  109. package/resources/link.d.mts +85 -41
  110. package/resources/link.d.mts.map +1 -1
  111. package/resources/link.d.ts +85 -41
  112. package/resources/link.d.ts.map +1 -1
  113. package/resources/link.mjs.map +1 -1
  114. package/resources/logs/index.d.mts.map +1 -1
  115. package/resources/logs/index.d.ts.map +1 -1
  116. package/resources/logs/index.mjs.map +1 -1
  117. package/resources/logs/logs.d.mts.map +1 -1
  118. package/resources/logs/logs.d.ts.map +1 -1
  119. package/resources/logs/logs.mjs.map +1 -1
  120. package/resources/logs/tools.d.mts.map +1 -1
  121. package/resources/logs/tools.d.ts.map +1 -1
  122. package/resources/logs/tools.mjs.map +1 -1
  123. package/resources/logs/triggers.d.mts.map +1 -1
  124. package/resources/logs/triggers.d.ts.map +1 -1
  125. package/resources/logs/triggers.mjs.map +1 -1
  126. package/resources/logs.d.mts.map +1 -1
  127. package/resources/logs.d.ts.map +1 -1
  128. package/resources/logs.mjs.map +1 -1
  129. package/resources/mcp/custom.d.mts.map +1 -1
  130. package/resources/mcp/custom.d.ts.map +1 -1
  131. package/resources/mcp/custom.mjs.map +1 -1
  132. package/resources/mcp/generate.d.mts.map +1 -1
  133. package/resources/mcp/generate.d.ts.map +1 -1
  134. package/resources/mcp/generate.mjs.map +1 -1
  135. package/resources/mcp/index.d.mts.map +1 -1
  136. package/resources/mcp/index.d.ts.map +1 -1
  137. package/resources/mcp/index.mjs.map +1 -1
  138. package/resources/mcp/mcp.d.mts.map +1 -1
  139. package/resources/mcp/mcp.d.ts.map +1 -1
  140. package/resources/mcp/mcp.mjs.map +1 -1
  141. package/resources/mcp.d.mts.map +1 -1
  142. package/resources/mcp.d.ts.map +1 -1
  143. package/resources/mcp.mjs.map +1 -1
  144. package/resources/migration.d.mts.map +1 -1
  145. package/resources/migration.d.ts.map +1 -1
  146. package/resources/migration.mjs.map +1 -1
  147. package/resources/project/config.d.mts.map +1 -1
  148. package/resources/project/config.d.ts.map +1 -1
  149. package/resources/project/config.mjs.map +1 -1
  150. package/resources/project/index.d.mts.map +1 -1
  151. package/resources/project/index.d.ts.map +1 -1
  152. package/resources/project/index.mjs.map +1 -1
  153. package/resources/project/project.d.mts.map +1 -1
  154. package/resources/project/project.d.ts.map +1 -1
  155. package/resources/project/project.mjs.map +1 -1
  156. package/resources/project.d.mts.map +1 -1
  157. package/resources/project.d.ts.map +1 -1
  158. package/resources/project.mjs.map +1 -1
  159. package/resources/tool-router/index.d.mts.map +1 -1
  160. package/resources/tool-router/index.d.ts.map +1 -1
  161. package/resources/tool-router/index.mjs.map +1 -1
  162. package/resources/tool-router/session/files.d.mts.map +1 -1
  163. package/resources/tool-router/session/files.d.ts.map +1 -1
  164. package/resources/tool-router/session/files.mjs.map +1 -1
  165. package/resources/tool-router/session/index.d.mts.map +1 -1
  166. package/resources/tool-router/session/index.d.ts.map +1 -1
  167. package/resources/tool-router/session/index.mjs.map +1 -1
  168. package/resources/tool-router/session/session.d.mts +90 -35
  169. package/resources/tool-router/session/session.d.mts.map +1 -1
  170. package/resources/tool-router/session/session.d.ts +90 -35
  171. package/resources/tool-router/session/session.d.ts.map +1 -1
  172. package/resources/tool-router/session/session.js.map +1 -1
  173. package/resources/tool-router/session/session.mjs.map +1 -1
  174. package/resources/tool-router/session.d.mts.map +1 -1
  175. package/resources/tool-router/session.d.ts.map +1 -1
  176. package/resources/tool-router/session.mjs.map +1 -1
  177. package/resources/tool-router/tool-router.d.mts.map +1 -1
  178. package/resources/tool-router/tool-router.d.ts.map +1 -1
  179. package/resources/tool-router/tool-router.mjs.map +1 -1
  180. package/resources/tool-router.d.mts.map +1 -1
  181. package/resources/tool-router.d.ts.map +1 -1
  182. package/resources/tool-router.mjs.map +1 -1
  183. package/resources/toolkits.d.mts.map +1 -1
  184. package/resources/toolkits.d.ts.map +1 -1
  185. package/resources/toolkits.mjs.map +1 -1
  186. package/resources/tools.d.mts +3 -3
  187. package/resources/tools.d.mts.map +1 -1
  188. package/resources/tools.d.ts +3 -3
  189. package/resources/tools.d.ts.map +1 -1
  190. package/resources/tools.mjs.map +1 -1
  191. package/resources/trigger-instances/index.d.mts.map +1 -1
  192. package/resources/trigger-instances/index.d.ts.map +1 -1
  193. package/resources/trigger-instances/index.mjs.map +1 -1
  194. package/resources/trigger-instances/manage.d.mts.map +1 -1
  195. package/resources/trigger-instances/manage.d.ts.map +1 -1
  196. package/resources/trigger-instances/manage.mjs.map +1 -1
  197. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  198. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  199. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  200. package/resources/trigger-instances.d.mts.map +1 -1
  201. package/resources/trigger-instances.d.ts.map +1 -1
  202. package/resources/trigger-instances.mjs.map +1 -1
  203. package/resources/triggers-types.d.mts.map +1 -1
  204. package/resources/triggers-types.d.ts.map +1 -1
  205. package/resources/triggers-types.mjs.map +1 -1
  206. package/resources.d.mts.map +1 -1
  207. package/resources.d.ts.map +1 -1
  208. package/resources.mjs.map +1 -1
  209. package/src/resources/connected-accounts.ts +227 -126
  210. package/src/resources/link.ts +96 -46
  211. package/src/resources/tool-router/session/session.ts +103 -38
  212. package/src/resources/tools.ts +3 -3
  213. package/src/version.ts +1 -1
  214. package/uploads.d.mts +1 -0
  215. package/uploads.d.mts.map +1 -1
  216. package/uploads.d.ts +1 -0
  217. package/uploads.d.ts.map +1 -1
  218. package/uploads.mjs +1 -0
  219. package/uploads.mjs.map +1 -1
  220. package/version.d.mts +1 -1
  221. package/version.d.ts +1 -1
  222. package/version.js +1 -1
  223. package/version.mjs +1 -1
@@ -92,9 +92,15 @@ export class ConnectedAccounts extends APIResource {
92
92
  }
93
93
 
94
94
  /**
95
- * Update a connected account. Supports updating the alias and/or credentials. Only
96
- * specified fields will be updated. Set a credential field to null to remove it.
97
- * Alias must be unique within the same project, entity, and toolkit scope.
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`.
98
104
  *
99
105
  * @example
100
106
  * ```ts
@@ -173,13 +179,6 @@ export interface ConnectedAccountCreateResponse {
173
179
  */
174
180
  id: string;
175
181
 
176
- /**
177
- * The persisted sharing model for this connected account (PRIVATE | SHARED).
178
- * Echoes back the value supplied at creation time so callers can confirm what
179
- * landed without a follow-up GET.
180
- */
181
- account_type: 'PRIVATE' | 'SHARED';
182
-
183
182
  /**
184
183
  * The connection data of the connected account
185
184
  */
@@ -219,6 +218,12 @@ export interface ConnectedAccountCreateResponse {
219
218
  * @deprecated DEPRECATED: This field will be removed in a future version
220
219
  */
221
220
  status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
221
+
222
+ /**
223
+ * Experimental features - not stable, may be modified or removed in future
224
+ * versions.
225
+ */
226
+ experimental?: ConnectedAccountCreateResponse.Experimental;
222
227
  }
223
228
 
224
229
  export namespace ConnectedAccountCreateResponse {
@@ -4644,6 +4649,41 @@ export namespace ConnectedAccountCreateResponse {
4644
4649
  */
4645
4650
  uuid: string;
4646
4651
  }
4652
+
4653
+ /**
4654
+ * Experimental features - not stable, may be modified or removed in future
4655
+ * versions.
4656
+ */
4657
+ export interface Experimental {
4658
+ /**
4659
+ * Sharing model for this connected account. PRIVATE is usable only by the owning
4660
+ * user_id. SHARED is reachable from a tool-router session only when explicitly
4661
+ * pinned in the session config.
4662
+ */
4663
+ account_type: 'PRIVATE' | 'SHARED';
4664
+
4665
+ /**
4666
+ * Access control for SHARED connections. Visible only to the connection creator
4667
+ * and project/org API key callers; non-creator cookie callers receive the response
4668
+ * without this block.
4669
+ */
4670
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
4671
+ }
4672
+
4673
+ export namespace Experimental {
4674
+ /**
4675
+ * Access control for SHARED connections. Visible only to the connection creator
4676
+ * and project/org API key callers; non-creator cookie callers receive the response
4677
+ * without this block.
4678
+ */
4679
+ export interface ACLConfigForShared {
4680
+ allow_all_users: boolean;
4681
+
4682
+ allowed_user_ids: Array<string>;
4683
+
4684
+ not_allowed_user_ids: Array<string>;
4685
+ }
4686
+ }
4647
4687
  }
4648
4688
 
4649
4689
  export interface ConnectedAccountRetrieveResponse {
@@ -4652,14 +4692,6 @@ export interface ConnectedAccountRetrieveResponse {
4652
4692
  */
4653
4693
  id: string;
4654
4694
 
4655
- /**
4656
- * Sharing model. PRIVATE accounts are usable only by their owning user_id. SHARED
4657
- * accounts are reachable from a tool-router session only when explicitly pinned in
4658
- * the session config (at most one SHARED per toolkit per session); they are never
4659
- * used implicitly.
4660
- */
4661
- account_type: 'PRIVATE' | 'SHARED';
4662
-
4663
4695
  /**
4664
4696
  * A user-defined alias for the connected account
4665
4697
  */
@@ -4742,16 +4774,15 @@ export interface ConnectedAccountRetrieveResponse {
4742
4774
  word_id: string | null;
4743
4775
 
4744
4776
  /**
4745
- * Access control for SHARED connections. Resolution rule (only fires when caller
4746
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
4747
- * user in allowed_user_ids → ALLOW; else DENY.
4777
+ * @deprecated
4748
4778
  */
4749
- acl_config_for_shared?: ConnectedAccountRetrieveResponse.ACLConfigForShared;
4779
+ deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
4750
4780
 
4751
4781
  /**
4752
- * @deprecated
4782
+ * Experimental features - not stable, may be modified or removed in future
4783
+ * versions.
4753
4784
  */
4754
- deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
4785
+ experimental?: ConnectedAccountRetrieveResponse.Experimental;
4755
4786
 
4756
4787
  /**
4757
4788
  * The endpoint to make test request for verification
@@ -9227,19 +9258,6 @@ export namespace ConnectedAccountRetrieveResponse {
9227
9258
  slug: string;
9228
9259
  }
9229
9260
 
9230
- /**
9231
- * Access control for SHARED connections. Resolution rule (only fires when caller
9232
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
9233
- * user in allowed_user_ids → ALLOW; else DENY.
9234
- */
9235
- export interface ACLConfigForShared {
9236
- allow_all_users: boolean;
9237
-
9238
- allowed_user_ids: Array<string>;
9239
-
9240
- not_allowed_user_ids: Array<string>;
9241
- }
9242
-
9243
9261
  /**
9244
9262
  * @deprecated
9245
9263
  */
@@ -9254,6 +9272,41 @@ export namespace ConnectedAccountRetrieveResponse {
9254
9272
  */
9255
9273
  uuid: string;
9256
9274
  }
9275
+
9276
+ /**
9277
+ * Experimental features - not stable, may be modified or removed in future
9278
+ * versions.
9279
+ */
9280
+ export interface Experimental {
9281
+ /**
9282
+ * Sharing model for this connected account. PRIVATE is usable only by the owning
9283
+ * user_id. SHARED is reachable from a tool-router session only when explicitly
9284
+ * pinned in the session config.
9285
+ */
9286
+ account_type: 'PRIVATE' | 'SHARED';
9287
+
9288
+ /**
9289
+ * Access control for SHARED connections. Visible only to the connection creator
9290
+ * and project/org API key callers; non-creator cookie callers receive the response
9291
+ * without this block.
9292
+ */
9293
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
9294
+ }
9295
+
9296
+ export namespace Experimental {
9297
+ /**
9298
+ * Access control for SHARED connections. Visible only to the connection creator
9299
+ * and project/org API key callers; non-creator cookie callers receive the response
9300
+ * without this block.
9301
+ */
9302
+ export interface ACLConfigForShared {
9303
+ allow_all_users: boolean;
9304
+
9305
+ allowed_user_ids: Array<string>;
9306
+
9307
+ not_allowed_user_ids: Array<string>;
9308
+ }
9309
+ }
9257
9310
  }
9258
9311
 
9259
9312
  export interface ConnectedAccountListResponse {
@@ -9275,14 +9328,6 @@ export namespace ConnectedAccountListResponse {
9275
9328
  */
9276
9329
  id: string;
9277
9330
 
9278
- /**
9279
- * Sharing model. PRIVATE accounts are usable only by their owning user_id. SHARED
9280
- * accounts are reachable from a tool-router session only when explicitly pinned in
9281
- * the session config (at most one SHARED per toolkit per session); they are never
9282
- * used implicitly.
9283
- */
9284
- account_type: 'PRIVATE' | 'SHARED';
9285
-
9286
9331
  /**
9287
9332
  * A user-defined alias for the connected account
9288
9333
  */
@@ -9359,16 +9404,15 @@ export namespace ConnectedAccountListResponse {
9359
9404
  word_id: string | null;
9360
9405
 
9361
9406
  /**
9362
- * Access control for SHARED connections. Resolution rule (only fires when caller
9363
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
9364
- * user in allowed_user_ids → ALLOW; else DENY.
9407
+ * @deprecated
9365
9408
  */
9366
- acl_config_for_shared?: Item.ACLConfigForShared;
9409
+ deprecated?: Item.Deprecated;
9367
9410
 
9368
9411
  /**
9369
- * @deprecated
9412
+ * Experimental features - not stable, may be modified or removed in future
9413
+ * versions.
9370
9414
  */
9371
- deprecated?: Item.Deprecated;
9415
+ experimental?: Item.Experimental;
9372
9416
 
9373
9417
  /**
9374
9418
  * The endpoint to make test request for verification
@@ -13844,19 +13888,6 @@ export namespace ConnectedAccountListResponse {
13844
13888
  slug: string;
13845
13889
  }
13846
13890
 
13847
- /**
13848
- * Access control for SHARED connections. Resolution rule (only fires when caller
13849
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
13850
- * user in allowed_user_ids → ALLOW; else DENY.
13851
- */
13852
- export interface ACLConfigForShared {
13853
- allow_all_users: boolean;
13854
-
13855
- allowed_user_ids: Array<string>;
13856
-
13857
- not_allowed_user_ids: Array<string>;
13858
- }
13859
-
13860
13891
  /**
13861
13892
  * @deprecated
13862
13893
  */
@@ -13871,6 +13902,41 @@ export namespace ConnectedAccountListResponse {
13871
13902
  */
13872
13903
  uuid: string;
13873
13904
  }
13905
+
13906
+ /**
13907
+ * Experimental features - not stable, may be modified or removed in future
13908
+ * versions.
13909
+ */
13910
+ export interface Experimental {
13911
+ /**
13912
+ * Sharing model for this connected account. PRIVATE is usable only by the owning
13913
+ * user_id. SHARED is reachable from a tool-router session only when explicitly
13914
+ * pinned in the session config.
13915
+ */
13916
+ account_type: 'PRIVATE' | 'SHARED';
13917
+
13918
+ /**
13919
+ * Access control for SHARED connections. Visible only to the connection creator
13920
+ * and project/org API key callers; non-creator cookie callers receive the response
13921
+ * without this block.
13922
+ */
13923
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
13924
+ }
13925
+
13926
+ export namespace Experimental {
13927
+ /**
13928
+ * Access control for SHARED connections. Visible only to the connection creator
13929
+ * and project/org API key callers; non-creator cookie callers receive the response
13930
+ * without this block.
13931
+ */
13932
+ export interface ACLConfigForShared {
13933
+ allow_all_users: boolean;
13934
+
13935
+ allowed_user_ids: Array<string>;
13936
+
13937
+ not_allowed_user_ids: Array<string>;
13938
+ }
13939
+ }
13874
13940
  }
13875
13941
  }
13876
13942
 
@@ -13954,22 +14020,6 @@ export namespace ConnectedAccountCreateParams {
13954
14020
  }
13955
14021
 
13956
14022
  export interface Connection {
13957
- /**
13958
- * Sharing model for this connected account. PRIVATE (default) is usable only by
13959
- * the owning user_id. SHARED is reachable from a tool-router session ONLY when
13960
- * explicitly pinned in the session config — at most one SHARED connection per
13961
- * toolkit per session. Sessions never use a SHARED connection implicitly.
13962
- */
13963
- account_type?: 'PRIVATE' | 'SHARED';
13964
-
13965
- /**
13966
- * Access control for SHARED connections. Resolution rule (only fires when caller
13967
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
13968
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
13969
- * deny-by-default — only the creator can use.
13970
- */
13971
- acl_config_for_shared?: Connection.ACLConfigForShared;
13972
-
13973
14023
  /**
13974
14024
  * A human-readable alias for this connected account. Must be unique per entity and
13975
14025
  * toolkit within the project.
@@ -13992,6 +14042,12 @@ export namespace ConnectedAccountCreateParams {
13992
14042
  */
13993
14043
  deprecated_is_v1_rerouted?: boolean;
13994
14044
 
14045
+ /**
14046
+ * Experimental features - not stable, may be modified or removed in future
14047
+ * versions.
14048
+ */
14049
+ experimental?: Connection.Experimental;
14050
+
13995
14051
  /**
13996
14052
  * @deprecated DEPRECATED: This parameter will be removed in a future version.
13997
14053
  * Please use callback_url instead.
@@ -14025,27 +14081,51 @@ export namespace ConnectedAccountCreateParams {
14025
14081
 
14026
14082
  export namespace Connection {
14027
14083
  /**
14028
- * Access control for SHARED connections. Resolution rule (only fires when caller
14029
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
14030
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
14031
- * deny-by-default — only the creator can use.
14084
+ * Experimental features - not stable, may be modified or removed in future
14085
+ * versions.
14032
14086
  */
14033
- export interface ACLConfigForShared {
14087
+ export interface Experimental {
14034
14088
  /**
14035
- * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
14036
- * connections.
14089
+ * Sharing model for this connected account. PRIVATE (default) is usable only by
14090
+ * the owning user_id. SHARED is reachable from a tool-router session ONLY when
14091
+ * explicitly pinned in the session config — at most one SHARED connection per
14092
+ * toolkit per session. Sessions never use a SHARED connection implicitly.
14037
14093
  */
14038
- allow_all_users?: boolean;
14094
+ account_type?: 'PRIVATE' | 'SHARED';
14039
14095
 
14040
14096
  /**
14041
- * Explicit allow list of user_ids who can use this SHARED connection.
14097
+ * Access control for SHARED connections. Resolution rule (only fires when caller
14098
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
14099
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
14100
+ * deny-by-default — only the creator can use.
14042
14101
  */
14043
- allowed_user_ids?: Array<string>;
14102
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
14103
+ }
14044
14104
 
14105
+ export namespace Experimental {
14045
14106
  /**
14046
- * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
14107
+ * Access control for SHARED connections. Resolution rule (only fires when caller
14108
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
14109
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
14110
+ * deny-by-default — only the creator can use.
14047
14111
  */
14048
- not_allowed_user_ids?: Array<string>;
14112
+ export interface ACLConfigForShared {
14113
+ /**
14114
+ * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
14115
+ * connections.
14116
+ */
14117
+ allow_all_users?: boolean;
14118
+
14119
+ /**
14120
+ * Explicit allow list of user_ids who can use this SHARED connection.
14121
+ */
14122
+ allowed_user_ids?: Array<string>;
14123
+
14124
+ /**
14125
+ * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
14126
+ */
14127
+ not_allowed_user_ids?: Array<string>;
14128
+ }
14049
14129
  }
14050
14130
 
14051
14131
  export interface UnionMember0 {
@@ -18459,9 +18539,9 @@ export namespace ConnectedAccountCreateParams {
18459
18539
 
18460
18540
  export interface ConnectedAccountListParams {
18461
18541
  /**
18462
- * Filter by sharing model. Default (omitted) returns PRIVATE only — shared
18463
- * accounts must be requested explicitly. Pass SHARED for only shared accounts, or
18464
- * ALL for PRIVATE + SHARED.
18542
+ * [Experimental] Filter by sharing model. Default (omitted) returns PRIVATE only —
18543
+ * shared accounts must be requested explicitly. Pass SHARED for only shared
18544
+ * accounts, or ALL for PRIVATE + SHARED.
18465
18545
  */
18466
18546
  account_type?: 'PRIVATE' | 'SHARED' | 'ALL';
18467
18547
 
@@ -18514,14 +18594,6 @@ export interface ConnectedAccountListParams {
18514
18594
  }
18515
18595
 
18516
18596
  export interface ConnectedAccountPatchParams {
18517
- /**
18518
- * Access control for SHARED connections. Resolution rule (only fires when caller
18519
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
18520
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
18521
- * deny-by-default — only the creator can use.
18522
- */
18523
- acl_config_for_shared?: ConnectedAccountPatchParams.ACLConfigForShared;
18524
-
18525
18597
  /**
18526
18598
  * A human-readable alias for this connected account. Pass an empty string to clear
18527
18599
  * the alias. Must be unique per entity and toolkit within the project.
@@ -18529,33 +18601,15 @@ export interface ConnectedAccountPatchParams {
18529
18601
  alias?: string;
18530
18602
 
18531
18603
  connection?: ConnectedAccountPatchParams.Connection;
18532
- }
18533
18604
 
18534
- export namespace ConnectedAccountPatchParams {
18535
18605
  /**
18536
- * Access control for SHARED connections. Resolution rule (only fires when caller
18537
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
18538
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
18539
- * deny-by-default — only the creator can use.
18606
+ * Experimental features - not stable, may be modified or removed in future
18607
+ * versions.
18540
18608
  */
18541
- export interface ACLConfigForShared {
18542
- /**
18543
- * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
18544
- * connections.
18545
- */
18546
- allow_all_users?: boolean;
18547
-
18548
- /**
18549
- * Explicit allow list of user_ids who can use this SHARED connection.
18550
- */
18551
- allowed_user_ids?: Array<string>;
18552
-
18553
- /**
18554
- * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
18555
- */
18556
- not_allowed_user_ids?: Array<string>;
18557
- }
18609
+ experimental?: ConnectedAccountPatchParams.Experimental;
18610
+ }
18558
18611
 
18612
+ export namespace ConnectedAccountPatchParams {
18559
18613
  export interface Connection {
18560
18614
  state: Connection.State;
18561
18615
  }
@@ -18657,6 +18711,53 @@ export namespace ConnectedAccountPatchParams {
18657
18711
  }
18658
18712
  }
18659
18713
  }
18714
+
18715
+ /**
18716
+ * Experimental features - not stable, may be modified or removed in future
18717
+ * versions.
18718
+ */
18719
+ 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
+ /**
18728
+ * Access control for SHARED connections. Resolution rule (only fires when caller
18729
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
18730
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
18731
+ * deny-by-default — only the creator can use.
18732
+ */
18733
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
18734
+ }
18735
+
18736
+ export namespace Experimental {
18737
+ /**
18738
+ * Access control for SHARED connections. Resolution rule (only fires when caller
18739
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
18740
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
18741
+ * deny-by-default — only the creator can use.
18742
+ */
18743
+ export interface ACLConfigForShared {
18744
+ /**
18745
+ * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
18746
+ * connections.
18747
+ */
18748
+ allow_all_users?: boolean;
18749
+
18750
+ /**
18751
+ * Explicit allow list of user_ids who can use this SHARED connection.
18752
+ */
18753
+ allowed_user_ids?: Array<string>;
18754
+
18755
+ /**
18756
+ * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
18757
+ */
18758
+ not_allowed_user_ids?: Array<string>;
18759
+ }
18760
+ }
18660
18761
  }
18661
18762
 
18662
18763
  export interface ConnectedAccountRefreshParams {
@@ -18,13 +18,6 @@ export class Link extends APIResource {
18
18
  }
19
19
 
20
20
  export interface LinkCreateResponse {
21
- /**
22
- * The persisted sharing model for this connected account (PRIVATE | SHARED).
23
- * Echoes back the value supplied at creation time so callers can confirm what
24
- * landed without a follow-up GET.
25
- */
26
- account_type: 'PRIVATE' | 'SHARED';
27
-
28
21
  /**
29
22
  * The connected account ID that was created
30
23
  */
@@ -44,34 +37,61 @@ export interface LinkCreateResponse {
44
37
  * The redirect URI to send users to for authentication
45
38
  */
46
39
  redirect_url: string;
47
- }
48
40
 
49
- export interface LinkCreateParams {
50
41
  /**
51
- * The auth config id to create a link for
42
+ * Experimental features - not stable, may be modified or removed in future
43
+ * versions.
52
44
  */
53
- auth_config_id: string;
45
+ experimental?: LinkCreateResponse.Experimental;
46
+ }
54
47
 
48
+ export namespace LinkCreateResponse {
55
49
  /**
56
- * The user id to create a link for
50
+ * Experimental features - not stable, may be modified or removed in future
51
+ * versions.
57
52
  */
58
- user_id: string;
53
+ export interface Experimental {
54
+ /**
55
+ * Sharing model for this connected account. PRIVATE is usable only by the owning
56
+ * user_id. SHARED is reachable from a tool-router session only when explicitly
57
+ * pinned in the session config.
58
+ */
59
+ account_type: 'PRIVATE' | 'SHARED';
60
+
61
+ /**
62
+ * Access control for SHARED connections. Visible only to the connection creator
63
+ * and project/org API key callers; non-creator cookie callers receive the response
64
+ * without this block.
65
+ */
66
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
67
+ }
68
+
69
+ export namespace Experimental {
70
+ /**
71
+ * Access control for SHARED connections. Visible only to the connection creator
72
+ * and project/org API key callers; non-creator cookie callers receive the response
73
+ * without this block.
74
+ */
75
+ export interface ACLConfigForShared {
76
+ allow_all_users: boolean;
77
+
78
+ allowed_user_ids: Array<string>;
79
+
80
+ not_allowed_user_ids: Array<string>;
81
+ }
82
+ }
83
+ }
59
84
 
85
+ export interface LinkCreateParams {
60
86
  /**
61
- * Sharing model for this connected account. PRIVATE (default) is usable only by
62
- * the owning user_id. SHARED is reachable from a tool-router session ONLY when
63
- * explicitly pinned in the session config — at most one SHARED connection per
64
- * toolkit per session. Sessions never use a SHARED connection implicitly.
87
+ * The auth config id to create a link for
65
88
  */
66
- account_type?: 'PRIVATE' | 'SHARED';
89
+ auth_config_id: string;
67
90
 
68
91
  /**
69
- * Access control for SHARED connections. Resolution rule (only fires when caller
70
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
71
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
72
- * deny-by-default — only the creator can use.
92
+ * The user id to create a link for
73
93
  */
74
- acl_config_for_shared?: LinkCreateParams.ACLConfigForShared;
94
+ user_id: string;
75
95
 
76
96
  /**
77
97
  * A human-readable alias for this connected account. Must be unique per entity and
@@ -163,33 +183,15 @@ export interface LinkCreateParams {
163
183
  | LinkCreateParams.UnionMember72
164
184
  | LinkCreateParams.UnionMember73
165
185
  | LinkCreateParams.UnionMember74;
166
- }
167
186
 
168
- export namespace LinkCreateParams {
169
187
  /**
170
- * Access control for SHARED connections. Resolution rule (only fires when caller
171
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
172
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
173
- * deny-by-default — only the creator can use.
188
+ * Experimental features - not stable, may be modified or removed in future
189
+ * versions.
174
190
  */
175
- export interface ACLConfigForShared {
176
- /**
177
- * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
178
- * connections.
179
- */
180
- allow_all_users?: boolean;
181
-
182
- /**
183
- * Explicit allow list of user_ids who can use this SHARED connection.
184
- */
185
- allowed_user_ids?: Array<string>;
186
-
187
- /**
188
- * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
189
- */
190
- not_allowed_user_ids?: Array<string>;
191
- }
191
+ experimental?: LinkCreateParams.Experimental;
192
+ }
192
193
 
194
+ export namespace LinkCreateParams {
193
195
  export interface UnionMember0 {
194
196
  account_id?: string;
195
197
 
@@ -4259,6 +4261,54 @@ export namespace LinkCreateParams {
4259
4261
 
4260
4262
  [k: string]: unknown;
4261
4263
  }
4264
+
4265
+ /**
4266
+ * Experimental features - not stable, may be modified or removed in future
4267
+ * versions.
4268
+ */
4269
+ export interface Experimental {
4270
+ /**
4271
+ * Sharing model for this connected account. PRIVATE (default) is usable only by
4272
+ * the owning user_id. SHARED is reachable from a tool-router session ONLY when
4273
+ * explicitly pinned in the session config — at most one SHARED connection per
4274
+ * toolkit per session. Sessions never use a SHARED connection implicitly.
4275
+ */
4276
+ account_type?: 'PRIVATE' | 'SHARED';
4277
+
4278
+ /**
4279
+ * Access control for SHARED connections. Resolution rule (only fires when caller
4280
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
4281
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
4282
+ * deny-by-default — only the creator can use.
4283
+ */
4284
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
4285
+ }
4286
+
4287
+ export namespace Experimental {
4288
+ /**
4289
+ * Access control for SHARED connections. Resolution rule (only fires when caller
4290
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
4291
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
4292
+ * deny-by-default — only the creator can use.
4293
+ */
4294
+ export interface ACLConfigForShared {
4295
+ /**
4296
+ * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
4297
+ * connections.
4298
+ */
4299
+ allow_all_users?: boolean;
4300
+
4301
+ /**
4302
+ * Explicit allow list of user_ids who can use this SHARED connection.
4303
+ */
4304
+ allowed_user_ids?: Array<string>;
4305
+
4306
+ /**
4307
+ * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
4308
+ */
4309
+ not_allowed_user_ids?: Array<string>;
4310
+ }
4311
+ }
4262
4312
  }
4263
4313
 
4264
4314
  export declare namespace Link {