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

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.
@@ -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 {
@@ -1673,13 +1673,6 @@ export interface SessionExecuteMetaResponse {
1673
1673
  }
1674
1674
 
1675
1675
  export interface SessionLinkResponse {
1676
- /**
1677
- * PRIVATE (default) is usable only by the owning user_id. SHARED is reachable from
1678
- * a tool-router session ONLY when explicitly pinned, with at most one SHARED per
1679
- * toolkit per session.
1680
- */
1681
- account_type: 'PRIVATE' | 'SHARED';
1682
-
1683
1676
  /**
1684
1677
  * The unique identifier for the connected account
1685
1678
  */
@@ -1694,6 +1687,49 @@ export interface SessionLinkResponse {
1694
1687
  * The URL where users should be redirected to complete OAuth
1695
1688
  */
1696
1689
  redirect_url: string;
1690
+
1691
+ /**
1692
+ * Experimental features - not stable, may be modified or removed in future
1693
+ * versions.
1694
+ */
1695
+ experimental?: SessionLinkResponse.Experimental;
1696
+ }
1697
+
1698
+ export namespace SessionLinkResponse {
1699
+ /**
1700
+ * Experimental features - not stable, may be modified or removed in future
1701
+ * versions.
1702
+ */
1703
+ export interface Experimental {
1704
+ /**
1705
+ * Sharing model for this connected account. PRIVATE is usable only by the owning
1706
+ * user_id. SHARED is reachable from a tool-router session only when explicitly
1707
+ * pinned in the session config.
1708
+ */
1709
+ account_type: 'PRIVATE' | 'SHARED';
1710
+
1711
+ /**
1712
+ * Access control for SHARED connections. Visible only to the connection creator
1713
+ * and project/org API key callers; non-creator cookie callers receive the response
1714
+ * without this block.
1715
+ */
1716
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
1717
+ }
1718
+
1719
+ export namespace Experimental {
1720
+ /**
1721
+ * Access control for SHARED connections. Visible only to the connection creator
1722
+ * and project/org API key callers; non-creator cookie callers receive the response
1723
+ * without this block.
1724
+ */
1725
+ export interface ACLConfigForShared {
1726
+ allow_all_users: boolean;
1727
+
1728
+ allowed_user_ids: Array<string>;
1729
+
1730
+ not_allowed_user_ids: Array<string>;
1731
+ }
1732
+ }
1697
1733
  }
1698
1734
 
1699
1735
  export interface SessionPatchResponse {
@@ -3612,22 +3648,6 @@ export interface SessionLinkParams {
3612
3648
  */
3613
3649
  toolkit: string;
3614
3650
 
3615
- /**
3616
- * Sharing model for this connected account. PRIVATE (default) is usable only by
3617
- * the owning user_id. SHARED is reachable from a tool-router session ONLY when
3618
- * explicitly pinned in the session config — at most one SHARED connection per
3619
- * toolkit per session. Sessions never use a SHARED connection implicitly.
3620
- */
3621
- account_type?: 'PRIVATE' | 'SHARED';
3622
-
3623
- /**
3624
- * Access control for SHARED connections. Resolution rule (only fires when caller
3625
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
3626
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
3627
- * deny-by-default — only the creator can use.
3628
- */
3629
- acl_config_for_shared?: SessionLinkParams.ACLConfigForShared;
3630
-
3631
3651
  /**
3632
3652
  * A human-readable alias for this connected account. Must be unique per entity and
3633
3653
  * toolkit within the project.
@@ -3638,31 +3658,61 @@ export interface SessionLinkParams {
3638
3658
  * URL where users will be redirected after completing auth
3639
3659
  */
3640
3660
  callback_url?: string;
3661
+
3662
+ /**
3663
+ * Experimental features - not stable, may be modified or removed in future
3664
+ * versions.
3665
+ */
3666
+ experimental?: SessionLinkParams.Experimental;
3641
3667
  }
3642
3668
 
3643
3669
  export namespace SessionLinkParams {
3644
3670
  /**
3645
- * Access control for SHARED connections. Resolution rule (only fires when caller
3646
- * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
3647
- * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
3648
- * deny-by-default — only the creator can use.
3671
+ * Experimental features - not stable, may be modified or removed in future
3672
+ * versions.
3649
3673
  */
3650
- export interface ACLConfigForShared {
3674
+ export interface Experimental {
3651
3675
  /**
3652
- * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
3653
- * connections.
3676
+ * Sharing model for this connected account. PRIVATE (default) is usable only by
3677
+ * the owning user_id. SHARED is reachable from a tool-router session ONLY when
3678
+ * explicitly pinned in the session config — at most one SHARED connection per
3679
+ * toolkit per session. Sessions never use a SHARED connection implicitly.
3654
3680
  */
3655
- allow_all_users?: boolean;
3681
+ account_type?: 'PRIVATE' | 'SHARED';
3656
3682
 
3657
3683
  /**
3658
- * Explicit allow list of user_ids who can use this SHARED connection.
3684
+ * Access control for SHARED connections. Resolution rule (only fires when caller
3685
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
3686
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
3687
+ * deny-by-default — only the creator can use.
3659
3688
  */
3660
- allowed_user_ids?: Array<string>;
3689
+ acl_config_for_shared?: Experimental.ACLConfigForShared;
3690
+ }
3661
3691
 
3692
+ export namespace Experimental {
3662
3693
  /**
3663
- * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
3694
+ * Access control for SHARED connections. Resolution rule (only fires when caller
3695
+ * != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
3696
+ * user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
3697
+ * deny-by-default — only the creator can use.
3664
3698
  */
3665
- not_allowed_user_ids?: Array<string>;
3699
+ export interface ACLConfigForShared {
3700
+ /**
3701
+ * Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
3702
+ * connections.
3703
+ */
3704
+ allow_all_users?: boolean;
3705
+
3706
+ /**
3707
+ * Explicit allow list of user_ids who can use this SHARED connection.
3708
+ */
3709
+ allowed_user_ids?: Array<string>;
3710
+
3711
+ /**
3712
+ * Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
3713
+ */
3714
+ not_allowed_user_ids?: Array<string>;
3715
+ }
3666
3716
  }
3667
3717
  }
3668
3718
 
@@ -3948,7 +3998,9 @@ export interface SessionProxyExecuteParams {
3948
3998
  * content_type?: "..."}. For binary upload via base64: use {base64: "...",
3949
3999
  * content_type?: "..."}.
3950
4000
  */
3951
- binary_body?: SessionProxyExecuteParams.UnionMember0 | SessionProxyExecuteParams.UnionMember1;
4001
+ binary_body?:
4002
+ | SessionProxyExecuteParams.BinaryBodyUnionMember0
4003
+ | SessionProxyExecuteParams.BinaryBodyUnionMember1;
3952
4004
 
3953
4005
  /**
3954
4006
  * The request body (for POST, PUT, and PATCH requests)
@@ -3975,7 +4027,7 @@ export interface SessionProxyExecuteParams {
3975
4027
  }
3976
4028
 
3977
4029
  export namespace SessionProxyExecuteParams {
3978
- export interface UnionMember0 {
4030
+ export interface BinaryBodyUnionMember0 {
3979
4031
  /**
3980
4032
  * URL to fetch binary content from
3981
4033
  */
@@ -3987,7 +4039,7 @@ export namespace SessionProxyExecuteParams {
3987
4039
  content_type?: string;
3988
4040
  }
3989
4041
 
3990
- export interface UnionMember1 {
4042
+ export interface BinaryBodyUnionMember1 {
3991
4043
  /**
3992
4044
  * Base64-encoded binary data
3993
4045
  */
@@ -1515,7 +1515,7 @@ export interface ToolProxyParams {
1515
1515
  * content_type?: "..."}. For binary upload via base64: use {base64: "...",
1516
1516
  * content_type?: "..."}.
1517
1517
  */
1518
- binary_body?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1;
1518
+ binary_body?: ToolProxyParams.BinaryBodyUnionMember0 | ToolProxyParams.BinaryBodyUnionMember1;
1519
1519
 
1520
1520
  /**
1521
1521
  * The request body (for POST, PUT, and PATCH requests)
@@ -1551,7 +1551,7 @@ export interface ToolProxyParams {
1551
1551
  }
1552
1552
 
1553
1553
  export namespace ToolProxyParams {
1554
- export interface UnionMember0 {
1554
+ export interface BinaryBodyUnionMember0 {
1555
1555
  /**
1556
1556
  * URL to fetch binary content from
1557
1557
  */
@@ -1563,7 +1563,7 @@ export namespace ToolProxyParams {
1563
1563
  content_type?: string;
1564
1564
  }
1565
1565
 
1566
- export interface UnionMember1 {
1566
+ export interface BinaryBodyUnionMember1 {
1567
1567
  /**
1568
1568
  * Base64-encoded binary data
1569
1569
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.71'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.72'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.71";
1
+ export declare const VERSION = "0.1.0-alpha.72";
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.71";
1
+ export declare const VERSION = "0.1.0-alpha.72";
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.71'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.72'; // 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.71'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.72'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map