@composio/client 0.1.0-alpha.70 → 0.1.0-alpha.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connected-accounts.d.mts +145 -0
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +145 -0
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/link.d.mts +47 -0
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +47 -0
- package/resources/link.d.ts.map +1 -1
- package/resources/tool-router/session/session.d.mts +46 -0
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +46 -0
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/resources/toolkits.d.mts +8 -0
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +8 -0
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +6 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/triggers-types.d.mts +12 -0
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +12 -0
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/internal/utils/log.ts +2 -1
- package/src/resources/connected-accounts.ts +158 -0
- package/src/resources/link.ts +51 -0
- package/src/resources/tool-router/session/session.ts +51 -0
- package/src/resources/toolkits.ts +16 -0
- package/src/resources/tools.ts +4 -0
- package/src/resources/triggers-types.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -106,8 +106,9 @@ export const formatRequestDetails = (details: {
|
|
|
106
106
|
([name, value]) => [
|
|
107
107
|
name,
|
|
108
108
|
(
|
|
109
|
-
name.toLowerCase() === 'x-api-key' ||
|
|
110
109
|
name.toLowerCase() === 'authorization' ||
|
|
110
|
+
name.toLowerCase() === 'api-key' ||
|
|
111
|
+
name.toLowerCase() === 'x-api-key' ||
|
|
111
112
|
name.toLowerCase() === 'cookie' ||
|
|
112
113
|
name.toLowerCase() === 'set-cookie'
|
|
113
114
|
) ?
|
|
@@ -173,6 +173,13 @@ export interface ConnectedAccountCreateResponse {
|
|
|
173
173
|
*/
|
|
174
174
|
id: string;
|
|
175
175
|
|
|
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
|
+
|
|
176
183
|
/**
|
|
177
184
|
* The connection data of the connected account
|
|
178
185
|
*/
|
|
@@ -743,6 +750,8 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
743
750
|
|
|
744
751
|
extension?: string;
|
|
745
752
|
|
|
753
|
+
extra_token_data?: { [key: string]: unknown };
|
|
754
|
+
|
|
746
755
|
form_api_base_url?: string;
|
|
747
756
|
|
|
748
757
|
id_token?: string;
|
|
@@ -833,6 +842,8 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
833
842
|
|
|
834
843
|
extension?: string;
|
|
835
844
|
|
|
845
|
+
extra_token_data?: { [key: string]: unknown };
|
|
846
|
+
|
|
836
847
|
form_api_base_url?: string;
|
|
837
848
|
|
|
838
849
|
id_token?: string;
|
|
@@ -4641,6 +4652,14 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4641
4652
|
*/
|
|
4642
4653
|
id: string;
|
|
4643
4654
|
|
|
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
|
+
|
|
4644
4663
|
/**
|
|
4645
4664
|
* A user-defined alias for the connected account
|
|
4646
4665
|
*/
|
|
@@ -4722,6 +4741,13 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4722
4741
|
*/
|
|
4723
4742
|
word_id: string | null;
|
|
4724
4743
|
|
|
4744
|
+
/**
|
|
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.
|
|
4748
|
+
*/
|
|
4749
|
+
acl_config_for_shared?: ConnectedAccountRetrieveResponse.ACLConfigForShared;
|
|
4750
|
+
|
|
4725
4751
|
/**
|
|
4726
4752
|
* @deprecated
|
|
4727
4753
|
*/
|
|
@@ -5315,6 +5341,8 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
5315
5341
|
|
|
5316
5342
|
extension?: string;
|
|
5317
5343
|
|
|
5344
|
+
extra_token_data?: { [key: string]: unknown };
|
|
5345
|
+
|
|
5318
5346
|
form_api_base_url?: string;
|
|
5319
5347
|
|
|
5320
5348
|
id_token?: string;
|
|
@@ -5405,6 +5433,8 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
5405
5433
|
|
|
5406
5434
|
extension?: string;
|
|
5407
5435
|
|
|
5436
|
+
extra_token_data?: { [key: string]: unknown };
|
|
5437
|
+
|
|
5408
5438
|
form_api_base_url?: string;
|
|
5409
5439
|
|
|
5410
5440
|
id_token?: string;
|
|
@@ -9197,6 +9227,19 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9197
9227
|
slug: string;
|
|
9198
9228
|
}
|
|
9199
9229
|
|
|
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
|
+
|
|
9200
9243
|
/**
|
|
9201
9244
|
* @deprecated
|
|
9202
9245
|
*/
|
|
@@ -9232,6 +9275,14 @@ export namespace ConnectedAccountListResponse {
|
|
|
9232
9275
|
*/
|
|
9233
9276
|
id: string;
|
|
9234
9277
|
|
|
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
|
+
|
|
9235
9286
|
/**
|
|
9236
9287
|
* A user-defined alias for the connected account
|
|
9237
9288
|
*/
|
|
@@ -9307,6 +9358,13 @@ export namespace ConnectedAccountListResponse {
|
|
|
9307
9358
|
*/
|
|
9308
9359
|
word_id: string | null;
|
|
9309
9360
|
|
|
9361
|
+
/**
|
|
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.
|
|
9365
|
+
*/
|
|
9366
|
+
acl_config_for_shared?: Item.ACLConfigForShared;
|
|
9367
|
+
|
|
9310
9368
|
/**
|
|
9311
9369
|
* @deprecated
|
|
9312
9370
|
*/
|
|
@@ -9900,6 +9958,8 @@ export namespace ConnectedAccountListResponse {
|
|
|
9900
9958
|
|
|
9901
9959
|
extension?: string;
|
|
9902
9960
|
|
|
9961
|
+
extra_token_data?: { [key: string]: unknown };
|
|
9962
|
+
|
|
9903
9963
|
form_api_base_url?: string;
|
|
9904
9964
|
|
|
9905
9965
|
id_token?: string;
|
|
@@ -9990,6 +10050,8 @@ export namespace ConnectedAccountListResponse {
|
|
|
9990
10050
|
|
|
9991
10051
|
extension?: string;
|
|
9992
10052
|
|
|
10053
|
+
extra_token_data?: { [key: string]: unknown };
|
|
10054
|
+
|
|
9993
10055
|
form_api_base_url?: string;
|
|
9994
10056
|
|
|
9995
10057
|
id_token?: string;
|
|
@@ -13782,6 +13844,19 @@ export namespace ConnectedAccountListResponse {
|
|
|
13782
13844
|
slug: string;
|
|
13783
13845
|
}
|
|
13784
13846
|
|
|
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
|
+
|
|
13785
13860
|
/**
|
|
13786
13861
|
* @deprecated
|
|
13787
13862
|
*/
|
|
@@ -13879,6 +13954,22 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13879
13954
|
}
|
|
13880
13955
|
|
|
13881
13956
|
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
|
+
|
|
13882
13973
|
/**
|
|
13883
13974
|
* A human-readable alias for this connected account. Must be unique per entity and
|
|
13884
13975
|
* toolkit within the project.
|
|
@@ -13933,6 +14024,30 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13933
14024
|
}
|
|
13934
14025
|
|
|
13935
14026
|
export namespace Connection {
|
|
14027
|
+
/**
|
|
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.
|
|
14032
|
+
*/
|
|
14033
|
+
export interface ACLConfigForShared {
|
|
14034
|
+
/**
|
|
14035
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
14036
|
+
* connections.
|
|
14037
|
+
*/
|
|
14038
|
+
allow_all_users?: boolean;
|
|
14039
|
+
|
|
14040
|
+
/**
|
|
14041
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
14042
|
+
*/
|
|
14043
|
+
allowed_user_ids?: Array<string>;
|
|
14044
|
+
|
|
14045
|
+
/**
|
|
14046
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
14047
|
+
*/
|
|
14048
|
+
not_allowed_user_ids?: Array<string>;
|
|
14049
|
+
}
|
|
14050
|
+
|
|
13936
14051
|
export interface UnionMember0 {
|
|
13937
14052
|
authScheme: 'OAUTH1';
|
|
13938
14053
|
|
|
@@ -14461,6 +14576,8 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14461
14576
|
|
|
14462
14577
|
extension?: string;
|
|
14463
14578
|
|
|
14579
|
+
extra_token_data?: { [key: string]: unknown };
|
|
14580
|
+
|
|
14464
14581
|
form_api_base_url?: string;
|
|
14465
14582
|
|
|
14466
14583
|
id_token?: string;
|
|
@@ -14551,6 +14668,8 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14551
14668
|
|
|
14552
14669
|
extension?: string;
|
|
14553
14670
|
|
|
14671
|
+
extra_token_data?: { [key: string]: unknown };
|
|
14672
|
+
|
|
14554
14673
|
form_api_base_url?: string;
|
|
14555
14674
|
|
|
14556
14675
|
id_token?: string;
|
|
@@ -18339,6 +18458,13 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18339
18458
|
}
|
|
18340
18459
|
|
|
18341
18460
|
export interface ConnectedAccountListParams {
|
|
18461
|
+
/**
|
|
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.
|
|
18465
|
+
*/
|
|
18466
|
+
account_type?: 'PRIVATE' | 'SHARED' | 'ALL';
|
|
18467
|
+
|
|
18342
18468
|
/**
|
|
18343
18469
|
* The auth config ids of the connected accounts
|
|
18344
18470
|
*/
|
|
@@ -18388,6 +18514,14 @@ export interface ConnectedAccountListParams {
|
|
|
18388
18514
|
}
|
|
18389
18515
|
|
|
18390
18516
|
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
|
+
|
|
18391
18525
|
/**
|
|
18392
18526
|
* A human-readable alias for this connected account. Pass an empty string to clear
|
|
18393
18527
|
* the alias. Must be unique per entity and toolkit within the project.
|
|
@@ -18398,6 +18532,30 @@ export interface ConnectedAccountPatchParams {
|
|
|
18398
18532
|
}
|
|
18399
18533
|
|
|
18400
18534
|
export namespace ConnectedAccountPatchParams {
|
|
18535
|
+
/**
|
|
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.
|
|
18540
|
+
*/
|
|
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
|
+
}
|
|
18558
|
+
|
|
18401
18559
|
export interface Connection {
|
|
18402
18560
|
state: Connection.State;
|
|
18403
18561
|
}
|
package/src/resources/link.ts
CHANGED
|
@@ -18,6 +18,13 @@ 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
|
+
|
|
21
28
|
/**
|
|
22
29
|
* The connected account ID that was created
|
|
23
30
|
*/
|
|
@@ -50,6 +57,22 @@ export interface LinkCreateParams {
|
|
|
50
57
|
*/
|
|
51
58
|
user_id: string;
|
|
52
59
|
|
|
60
|
+
/**
|
|
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.
|
|
65
|
+
*/
|
|
66
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
67
|
+
|
|
68
|
+
/**
|
|
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.
|
|
73
|
+
*/
|
|
74
|
+
acl_config_for_shared?: LinkCreateParams.ACLConfigForShared;
|
|
75
|
+
|
|
53
76
|
/**
|
|
54
77
|
* A human-readable alias for this connected account. Must be unique per entity and
|
|
55
78
|
* toolkit within the project.
|
|
@@ -143,6 +166,30 @@ export interface LinkCreateParams {
|
|
|
143
166
|
}
|
|
144
167
|
|
|
145
168
|
export namespace LinkCreateParams {
|
|
169
|
+
/**
|
|
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.
|
|
174
|
+
*/
|
|
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
|
+
}
|
|
192
|
+
|
|
146
193
|
export interface UnionMember0 {
|
|
147
194
|
account_id?: string;
|
|
148
195
|
|
|
@@ -625,6 +672,8 @@ export namespace LinkCreateParams {
|
|
|
625
672
|
|
|
626
673
|
extension?: string;
|
|
627
674
|
|
|
675
|
+
extra_token_data?: { [key: string]: unknown };
|
|
676
|
+
|
|
628
677
|
form_api_base_url?: string;
|
|
629
678
|
|
|
630
679
|
id_token?: string;
|
|
@@ -713,6 +762,8 @@ export namespace LinkCreateParams {
|
|
|
713
762
|
|
|
714
763
|
extension?: string;
|
|
715
764
|
|
|
765
|
+
extra_token_data?: { [key: string]: unknown };
|
|
766
|
+
|
|
716
767
|
form_api_base_url?: string;
|
|
717
768
|
|
|
718
769
|
id_token?: string;
|
|
@@ -1673,6 +1673,13 @@ 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
|
+
|
|
1676
1683
|
/**
|
|
1677
1684
|
* The unique identifier for the connected account
|
|
1678
1685
|
*/
|
|
@@ -3605,6 +3612,22 @@ export interface SessionLinkParams {
|
|
|
3605
3612
|
*/
|
|
3606
3613
|
toolkit: string;
|
|
3607
3614
|
|
|
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
|
+
|
|
3608
3631
|
/**
|
|
3609
3632
|
* A human-readable alias for this connected account. Must be unique per entity and
|
|
3610
3633
|
* toolkit within the project.
|
|
@@ -3617,6 +3640,32 @@ export interface SessionLinkParams {
|
|
|
3617
3640
|
callback_url?: string;
|
|
3618
3641
|
}
|
|
3619
3642
|
|
|
3643
|
+
export namespace SessionLinkParams {
|
|
3644
|
+
/**
|
|
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.
|
|
3649
|
+
*/
|
|
3650
|
+
export interface ACLConfigForShared {
|
|
3651
|
+
/**
|
|
3652
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
3653
|
+
* connections.
|
|
3654
|
+
*/
|
|
3655
|
+
allow_all_users?: boolean;
|
|
3656
|
+
|
|
3657
|
+
/**
|
|
3658
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
3659
|
+
*/
|
|
3660
|
+
allowed_user_ids?: Array<string>;
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
3664
|
+
*/
|
|
3665
|
+
not_allowed_user_ids?: Array<string>;
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3620
3669
|
export interface SessionPatchParams {
|
|
3621
3670
|
/**
|
|
3622
3671
|
* The auth configs to use for the session. This will override the default behavior
|
|
@@ -3987,6 +4036,8 @@ export namespace SessionProxyExecuteParams {
|
|
|
3987
4036
|
|
|
3988
4037
|
extension?: string;
|
|
3989
4038
|
|
|
4039
|
+
extra_token_data?: { [key: string]: unknown };
|
|
4040
|
+
|
|
3990
4041
|
form_api_base_url?: string;
|
|
3991
4042
|
|
|
3992
4043
|
id_token?: string;
|
|
@@ -268,8 +268,12 @@ export namespace ToolkitRetrieveResponse {
|
|
|
268
268
|
|
|
269
269
|
type: string;
|
|
270
270
|
|
|
271
|
+
advanced?: boolean;
|
|
272
|
+
|
|
271
273
|
default?: string | null;
|
|
272
274
|
|
|
275
|
+
is_secret?: boolean;
|
|
276
|
+
|
|
273
277
|
legacy_template_name?: string;
|
|
274
278
|
}
|
|
275
279
|
|
|
@@ -284,8 +288,12 @@ export namespace ToolkitRetrieveResponse {
|
|
|
284
288
|
|
|
285
289
|
type: string;
|
|
286
290
|
|
|
291
|
+
advanced?: boolean;
|
|
292
|
+
|
|
287
293
|
default?: string | null;
|
|
288
294
|
|
|
295
|
+
is_secret?: boolean;
|
|
296
|
+
|
|
289
297
|
legacy_template_name?: string;
|
|
290
298
|
}
|
|
291
299
|
}
|
|
@@ -312,8 +320,12 @@ export namespace ToolkitRetrieveResponse {
|
|
|
312
320
|
|
|
313
321
|
type: string;
|
|
314
322
|
|
|
323
|
+
advanced?: boolean;
|
|
324
|
+
|
|
315
325
|
default?: string | null;
|
|
316
326
|
|
|
327
|
+
is_secret?: boolean;
|
|
328
|
+
|
|
317
329
|
legacy_template_name?: string;
|
|
318
330
|
}
|
|
319
331
|
|
|
@@ -328,8 +340,12 @@ export namespace ToolkitRetrieveResponse {
|
|
|
328
340
|
|
|
329
341
|
type: string;
|
|
330
342
|
|
|
343
|
+
advanced?: boolean;
|
|
344
|
+
|
|
331
345
|
default?: string | null;
|
|
332
346
|
|
|
347
|
+
is_secret?: boolean;
|
|
348
|
+
|
|
333
349
|
legacy_template_name?: string;
|
|
334
350
|
}
|
|
335
351
|
}
|
package/src/resources/tools.ts
CHANGED
|
@@ -741,6 +741,8 @@ export namespace ToolExecuteParams {
|
|
|
741
741
|
|
|
742
742
|
extension?: string;
|
|
743
743
|
|
|
744
|
+
extra_token_data?: { [key: string]: unknown };
|
|
745
|
+
|
|
744
746
|
form_api_base_url?: string;
|
|
745
747
|
|
|
746
748
|
id_token?: string;
|
|
@@ -1610,6 +1612,8 @@ export namespace ToolProxyParams {
|
|
|
1610
1612
|
|
|
1611
1613
|
extension?: string;
|
|
1612
1614
|
|
|
1615
|
+
extra_token_data?: { [key: string]: unknown };
|
|
1616
|
+
|
|
1613
1617
|
form_api_base_url?: string;
|
|
1614
1618
|
|
|
1615
1619
|
id_token?: string;
|
|
@@ -86,6 +86,13 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
86
86
|
* Version of the trigger type
|
|
87
87
|
*/
|
|
88
88
|
version: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* True when the developer must register a Composio-issued webhook URL with the
|
|
92
|
+
* upstream provider (e.g. Slack Event Subscriptions, Notion integration webhooks).
|
|
93
|
+
* See the webhook_endpoint API for the setup.
|
|
94
|
+
*/
|
|
95
|
+
requires_webhook_endpoint_setup?: boolean;
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
export namespace TriggersTypeRetrieveResponse {
|
|
@@ -168,6 +175,13 @@ export namespace TriggersTypeListResponse {
|
|
|
168
175
|
* Version of the trigger type
|
|
169
176
|
*/
|
|
170
177
|
version: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* True when the developer must register a Composio-issued webhook URL with the
|
|
181
|
+
* upstream provider (e.g. Slack Event Subscriptions, Notion integration webhooks).
|
|
182
|
+
* See the webhook_endpoint API for the setup.
|
|
183
|
+
*/
|
|
184
|
+
requires_webhook_endpoint_setup?: boolean;
|
|
171
185
|
}
|
|
172
186
|
|
|
173
187
|
export namespace Item {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.71'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.71";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.71";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-alpha.
|
|
4
|
+
exports.VERSION = '0.1.0-alpha.71'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.71'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|