@composio/client 0.1.0-alpha.70 → 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.
- package/CHANGELOG.md +22 -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 +224 -0
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +224 -0
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/link.d.mts +91 -0
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +91 -0
- package/resources/link.d.ts.map +1 -1
- package/resources/tool-router/session/session.d.mts +93 -3
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +93 -3
- 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 +9 -3
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +9 -3
- 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 +246 -0
- package/src/resources/link.ts +101 -0
- package/src/resources/tool-router/session/session.ts +106 -3
- package/src/resources/toolkits.ts +16 -0
- package/src/resources/tools.ts +7 -3
- 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
|
@@ -212,6 +212,12 @@ export interface ConnectedAccountCreateResponse {
|
|
|
212
212
|
* @deprecated DEPRECATED: This field will be removed in a future version
|
|
213
213
|
*/
|
|
214
214
|
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
218
|
+
* versions.
|
|
219
|
+
*/
|
|
220
|
+
experimental?: ConnectedAccountCreateResponse.Experimental;
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
export namespace ConnectedAccountCreateResponse {
|
|
@@ -743,6 +749,8 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
743
749
|
|
|
744
750
|
extension?: string;
|
|
745
751
|
|
|
752
|
+
extra_token_data?: { [key: string]: unknown };
|
|
753
|
+
|
|
746
754
|
form_api_base_url?: string;
|
|
747
755
|
|
|
748
756
|
id_token?: string;
|
|
@@ -833,6 +841,8 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
833
841
|
|
|
834
842
|
extension?: string;
|
|
835
843
|
|
|
844
|
+
extra_token_data?: { [key: string]: unknown };
|
|
845
|
+
|
|
836
846
|
form_api_base_url?: string;
|
|
837
847
|
|
|
838
848
|
id_token?: string;
|
|
@@ -4633,6 +4643,41 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4633
4643
|
*/
|
|
4634
4644
|
uuid: string;
|
|
4635
4645
|
}
|
|
4646
|
+
|
|
4647
|
+
/**
|
|
4648
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
4649
|
+
* versions.
|
|
4650
|
+
*/
|
|
4651
|
+
export interface Experimental {
|
|
4652
|
+
/**
|
|
4653
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
4654
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
4655
|
+
* pinned in the session config.
|
|
4656
|
+
*/
|
|
4657
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
4658
|
+
|
|
4659
|
+
/**
|
|
4660
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
4661
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
4662
|
+
* without this block.
|
|
4663
|
+
*/
|
|
4664
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
export namespace Experimental {
|
|
4668
|
+
/**
|
|
4669
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
4670
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
4671
|
+
* without this block.
|
|
4672
|
+
*/
|
|
4673
|
+
export interface ACLConfigForShared {
|
|
4674
|
+
allow_all_users: boolean;
|
|
4675
|
+
|
|
4676
|
+
allowed_user_ids: Array<string>;
|
|
4677
|
+
|
|
4678
|
+
not_allowed_user_ids: Array<string>;
|
|
4679
|
+
}
|
|
4680
|
+
}
|
|
4636
4681
|
}
|
|
4637
4682
|
|
|
4638
4683
|
export interface ConnectedAccountRetrieveResponse {
|
|
@@ -4727,6 +4772,12 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4727
4772
|
*/
|
|
4728
4773
|
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
4729
4774
|
|
|
4775
|
+
/**
|
|
4776
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
4777
|
+
* versions.
|
|
4778
|
+
*/
|
|
4779
|
+
experimental?: ConnectedAccountRetrieveResponse.Experimental;
|
|
4780
|
+
|
|
4730
4781
|
/**
|
|
4731
4782
|
* The endpoint to make test request for verification
|
|
4732
4783
|
*/
|
|
@@ -5315,6 +5366,8 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
5315
5366
|
|
|
5316
5367
|
extension?: string;
|
|
5317
5368
|
|
|
5369
|
+
extra_token_data?: { [key: string]: unknown };
|
|
5370
|
+
|
|
5318
5371
|
form_api_base_url?: string;
|
|
5319
5372
|
|
|
5320
5373
|
id_token?: string;
|
|
@@ -5405,6 +5458,8 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
5405
5458
|
|
|
5406
5459
|
extension?: string;
|
|
5407
5460
|
|
|
5461
|
+
extra_token_data?: { [key: string]: unknown };
|
|
5462
|
+
|
|
5408
5463
|
form_api_base_url?: string;
|
|
5409
5464
|
|
|
5410
5465
|
id_token?: string;
|
|
@@ -9211,6 +9266,41 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9211
9266
|
*/
|
|
9212
9267
|
uuid: string;
|
|
9213
9268
|
}
|
|
9269
|
+
|
|
9270
|
+
/**
|
|
9271
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
9272
|
+
* versions.
|
|
9273
|
+
*/
|
|
9274
|
+
export interface Experimental {
|
|
9275
|
+
/**
|
|
9276
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
9277
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
9278
|
+
* pinned in the session config.
|
|
9279
|
+
*/
|
|
9280
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
9281
|
+
|
|
9282
|
+
/**
|
|
9283
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
9284
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
9285
|
+
* without this block.
|
|
9286
|
+
*/
|
|
9287
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
9288
|
+
}
|
|
9289
|
+
|
|
9290
|
+
export namespace Experimental {
|
|
9291
|
+
/**
|
|
9292
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
9293
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
9294
|
+
* without this block.
|
|
9295
|
+
*/
|
|
9296
|
+
export interface ACLConfigForShared {
|
|
9297
|
+
allow_all_users: boolean;
|
|
9298
|
+
|
|
9299
|
+
allowed_user_ids: Array<string>;
|
|
9300
|
+
|
|
9301
|
+
not_allowed_user_ids: Array<string>;
|
|
9302
|
+
}
|
|
9303
|
+
}
|
|
9214
9304
|
}
|
|
9215
9305
|
|
|
9216
9306
|
export interface ConnectedAccountListResponse {
|
|
@@ -9312,6 +9402,12 @@ export namespace ConnectedAccountListResponse {
|
|
|
9312
9402
|
*/
|
|
9313
9403
|
deprecated?: Item.Deprecated;
|
|
9314
9404
|
|
|
9405
|
+
/**
|
|
9406
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
9407
|
+
* versions.
|
|
9408
|
+
*/
|
|
9409
|
+
experimental?: Item.Experimental;
|
|
9410
|
+
|
|
9315
9411
|
/**
|
|
9316
9412
|
* The endpoint to make test request for verification
|
|
9317
9413
|
*/
|
|
@@ -9900,6 +9996,8 @@ export namespace ConnectedAccountListResponse {
|
|
|
9900
9996
|
|
|
9901
9997
|
extension?: string;
|
|
9902
9998
|
|
|
9999
|
+
extra_token_data?: { [key: string]: unknown };
|
|
10000
|
+
|
|
9903
10001
|
form_api_base_url?: string;
|
|
9904
10002
|
|
|
9905
10003
|
id_token?: string;
|
|
@@ -9990,6 +10088,8 @@ export namespace ConnectedAccountListResponse {
|
|
|
9990
10088
|
|
|
9991
10089
|
extension?: string;
|
|
9992
10090
|
|
|
10091
|
+
extra_token_data?: { [key: string]: unknown };
|
|
10092
|
+
|
|
9993
10093
|
form_api_base_url?: string;
|
|
9994
10094
|
|
|
9995
10095
|
id_token?: string;
|
|
@@ -13796,6 +13896,41 @@ export namespace ConnectedAccountListResponse {
|
|
|
13796
13896
|
*/
|
|
13797
13897
|
uuid: string;
|
|
13798
13898
|
}
|
|
13899
|
+
|
|
13900
|
+
/**
|
|
13901
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
13902
|
+
* versions.
|
|
13903
|
+
*/
|
|
13904
|
+
export interface Experimental {
|
|
13905
|
+
/**
|
|
13906
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
13907
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
13908
|
+
* pinned in the session config.
|
|
13909
|
+
*/
|
|
13910
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
13911
|
+
|
|
13912
|
+
/**
|
|
13913
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
13914
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
13915
|
+
* without this block.
|
|
13916
|
+
*/
|
|
13917
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
13918
|
+
}
|
|
13919
|
+
|
|
13920
|
+
export namespace Experimental {
|
|
13921
|
+
/**
|
|
13922
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
13923
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
13924
|
+
* without this block.
|
|
13925
|
+
*/
|
|
13926
|
+
export interface ACLConfigForShared {
|
|
13927
|
+
allow_all_users: boolean;
|
|
13928
|
+
|
|
13929
|
+
allowed_user_ids: Array<string>;
|
|
13930
|
+
|
|
13931
|
+
not_allowed_user_ids: Array<string>;
|
|
13932
|
+
}
|
|
13933
|
+
}
|
|
13799
13934
|
}
|
|
13800
13935
|
}
|
|
13801
13936
|
|
|
@@ -13901,6 +14036,12 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13901
14036
|
*/
|
|
13902
14037
|
deprecated_is_v1_rerouted?: boolean;
|
|
13903
14038
|
|
|
14039
|
+
/**
|
|
14040
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
14041
|
+
* versions.
|
|
14042
|
+
*/
|
|
14043
|
+
experimental?: Connection.Experimental;
|
|
14044
|
+
|
|
13904
14045
|
/**
|
|
13905
14046
|
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
13906
14047
|
* Please use callback_url instead.
|
|
@@ -13933,6 +14074,54 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13933
14074
|
}
|
|
13934
14075
|
|
|
13935
14076
|
export namespace Connection {
|
|
14077
|
+
/**
|
|
14078
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
14079
|
+
* versions.
|
|
14080
|
+
*/
|
|
14081
|
+
export interface Experimental {
|
|
14082
|
+
/**
|
|
14083
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by
|
|
14084
|
+
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
14085
|
+
* explicitly pinned in the session config — at most one SHARED connection per
|
|
14086
|
+
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
14087
|
+
*/
|
|
14088
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
14089
|
+
|
|
14090
|
+
/**
|
|
14091
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
14092
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
14093
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
14094
|
+
* deny-by-default — only the creator can use.
|
|
14095
|
+
*/
|
|
14096
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
14097
|
+
}
|
|
14098
|
+
|
|
14099
|
+
export namespace Experimental {
|
|
14100
|
+
/**
|
|
14101
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
14102
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
14103
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
14104
|
+
* deny-by-default — only the creator can use.
|
|
14105
|
+
*/
|
|
14106
|
+
export interface ACLConfigForShared {
|
|
14107
|
+
/**
|
|
14108
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
14109
|
+
* connections.
|
|
14110
|
+
*/
|
|
14111
|
+
allow_all_users?: boolean;
|
|
14112
|
+
|
|
14113
|
+
/**
|
|
14114
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
14115
|
+
*/
|
|
14116
|
+
allowed_user_ids?: Array<string>;
|
|
14117
|
+
|
|
14118
|
+
/**
|
|
14119
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
14120
|
+
*/
|
|
14121
|
+
not_allowed_user_ids?: Array<string>;
|
|
14122
|
+
}
|
|
14123
|
+
}
|
|
14124
|
+
|
|
13936
14125
|
export interface UnionMember0 {
|
|
13937
14126
|
authScheme: 'OAUTH1';
|
|
13938
14127
|
|
|
@@ -14461,6 +14650,8 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14461
14650
|
|
|
14462
14651
|
extension?: string;
|
|
14463
14652
|
|
|
14653
|
+
extra_token_data?: { [key: string]: unknown };
|
|
14654
|
+
|
|
14464
14655
|
form_api_base_url?: string;
|
|
14465
14656
|
|
|
14466
14657
|
id_token?: string;
|
|
@@ -14551,6 +14742,8 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14551
14742
|
|
|
14552
14743
|
extension?: string;
|
|
14553
14744
|
|
|
14745
|
+
extra_token_data?: { [key: string]: unknown };
|
|
14746
|
+
|
|
14554
14747
|
form_api_base_url?: string;
|
|
14555
14748
|
|
|
14556
14749
|
id_token?: string;
|
|
@@ -18339,6 +18532,13 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18339
18532
|
}
|
|
18340
18533
|
|
|
18341
18534
|
export interface ConnectedAccountListParams {
|
|
18535
|
+
/**
|
|
18536
|
+
* [Experimental] Filter by sharing model. Default (omitted) returns PRIVATE only —
|
|
18537
|
+
* shared accounts must be requested explicitly. Pass SHARED for only shared
|
|
18538
|
+
* accounts, or ALL for PRIVATE + SHARED.
|
|
18539
|
+
*/
|
|
18540
|
+
account_type?: 'PRIVATE' | 'SHARED' | 'ALL';
|
|
18541
|
+
|
|
18342
18542
|
/**
|
|
18343
18543
|
* The auth config ids of the connected accounts
|
|
18344
18544
|
*/
|
|
@@ -18395,6 +18595,12 @@ export interface ConnectedAccountPatchParams {
|
|
|
18395
18595
|
alias?: string;
|
|
18396
18596
|
|
|
18397
18597
|
connection?: ConnectedAccountPatchParams.Connection;
|
|
18598
|
+
|
|
18599
|
+
/**
|
|
18600
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
18601
|
+
* versions.
|
|
18602
|
+
*/
|
|
18603
|
+
experimental?: ConnectedAccountPatchParams.Experimental;
|
|
18398
18604
|
}
|
|
18399
18605
|
|
|
18400
18606
|
export namespace ConnectedAccountPatchParams {
|
|
@@ -18499,6 +18705,46 @@ export namespace ConnectedAccountPatchParams {
|
|
|
18499
18705
|
}
|
|
18500
18706
|
}
|
|
18501
18707
|
}
|
|
18708
|
+
|
|
18709
|
+
/**
|
|
18710
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
18711
|
+
* versions.
|
|
18712
|
+
*/
|
|
18713
|
+
export interface Experimental {
|
|
18714
|
+
/**
|
|
18715
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
18716
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
18717
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
18718
|
+
* deny-by-default — only the creator can use.
|
|
18719
|
+
*/
|
|
18720
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
18721
|
+
}
|
|
18722
|
+
|
|
18723
|
+
export namespace Experimental {
|
|
18724
|
+
/**
|
|
18725
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
18726
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
18727
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
18728
|
+
* deny-by-default — only the creator can use.
|
|
18729
|
+
*/
|
|
18730
|
+
export interface ACLConfigForShared {
|
|
18731
|
+
/**
|
|
18732
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
18733
|
+
* connections.
|
|
18734
|
+
*/
|
|
18735
|
+
allow_all_users?: boolean;
|
|
18736
|
+
|
|
18737
|
+
/**
|
|
18738
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
18739
|
+
*/
|
|
18740
|
+
allowed_user_ids?: Array<string>;
|
|
18741
|
+
|
|
18742
|
+
/**
|
|
18743
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
18744
|
+
*/
|
|
18745
|
+
not_allowed_user_ids?: Array<string>;
|
|
18746
|
+
}
|
|
18747
|
+
}
|
|
18502
18748
|
}
|
|
18503
18749
|
|
|
18504
18750
|
export interface ConnectedAccountRefreshParams {
|
package/src/resources/link.ts
CHANGED
|
@@ -37,6 +37,49 @@ export interface LinkCreateResponse {
|
|
|
37
37
|
* The redirect URI to send users to for authentication
|
|
38
38
|
*/
|
|
39
39
|
redirect_url: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
43
|
+
* versions.
|
|
44
|
+
*/
|
|
45
|
+
experimental?: LinkCreateResponse.Experimental;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace LinkCreateResponse {
|
|
49
|
+
/**
|
|
50
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
51
|
+
* versions.
|
|
52
|
+
*/
|
|
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
|
+
}
|
|
40
83
|
}
|
|
41
84
|
|
|
42
85
|
export interface LinkCreateParams {
|
|
@@ -140,6 +183,12 @@ export interface LinkCreateParams {
|
|
|
140
183
|
| LinkCreateParams.UnionMember72
|
|
141
184
|
| LinkCreateParams.UnionMember73
|
|
142
185
|
| LinkCreateParams.UnionMember74;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
189
|
+
* versions.
|
|
190
|
+
*/
|
|
191
|
+
experimental?: LinkCreateParams.Experimental;
|
|
143
192
|
}
|
|
144
193
|
|
|
145
194
|
export namespace LinkCreateParams {
|
|
@@ -625,6 +674,8 @@ export namespace LinkCreateParams {
|
|
|
625
674
|
|
|
626
675
|
extension?: string;
|
|
627
676
|
|
|
677
|
+
extra_token_data?: { [key: string]: unknown };
|
|
678
|
+
|
|
628
679
|
form_api_base_url?: string;
|
|
629
680
|
|
|
630
681
|
id_token?: string;
|
|
@@ -713,6 +764,8 @@ export namespace LinkCreateParams {
|
|
|
713
764
|
|
|
714
765
|
extension?: string;
|
|
715
766
|
|
|
767
|
+
extra_token_data?: { [key: string]: unknown };
|
|
768
|
+
|
|
716
769
|
form_api_base_url?: string;
|
|
717
770
|
|
|
718
771
|
id_token?: string;
|
|
@@ -4208,6 +4261,54 @@ export namespace LinkCreateParams {
|
|
|
4208
4261
|
|
|
4209
4262
|
[k: string]: unknown;
|
|
4210
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
|
+
}
|
|
4211
4312
|
}
|
|
4212
4313
|
|
|
4213
4314
|
export declare namespace Link {
|
|
@@ -1687,6 +1687,49 @@ export interface SessionLinkResponse {
|
|
|
1687
1687
|
* The URL where users should be redirected to complete OAuth
|
|
1688
1688
|
*/
|
|
1689
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
|
+
}
|
|
1690
1733
|
}
|
|
1691
1734
|
|
|
1692
1735
|
export interface SessionPatchResponse {
|
|
@@ -3615,6 +3658,62 @@ export interface SessionLinkParams {
|
|
|
3615
3658
|
* URL where users will be redirected after completing auth
|
|
3616
3659
|
*/
|
|
3617
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;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
export namespace SessionLinkParams {
|
|
3670
|
+
/**
|
|
3671
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
3672
|
+
* versions.
|
|
3673
|
+
*/
|
|
3674
|
+
export interface Experimental {
|
|
3675
|
+
/**
|
|
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.
|
|
3680
|
+
*/
|
|
3681
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
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.
|
|
3688
|
+
*/
|
|
3689
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
export namespace Experimental {
|
|
3693
|
+
/**
|
|
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.
|
|
3698
|
+
*/
|
|
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
|
+
}
|
|
3716
|
+
}
|
|
3618
3717
|
}
|
|
3619
3718
|
|
|
3620
3719
|
export interface SessionPatchParams {
|
|
@@ -3899,7 +3998,9 @@ export interface SessionProxyExecuteParams {
|
|
|
3899
3998
|
* content_type?: "..."}. For binary upload via base64: use {base64: "...",
|
|
3900
3999
|
* content_type?: "..."}.
|
|
3901
4000
|
*/
|
|
3902
|
-
binary_body?:
|
|
4001
|
+
binary_body?:
|
|
4002
|
+
| SessionProxyExecuteParams.BinaryBodyUnionMember0
|
|
4003
|
+
| SessionProxyExecuteParams.BinaryBodyUnionMember1;
|
|
3903
4004
|
|
|
3904
4005
|
/**
|
|
3905
4006
|
* The request body (for POST, PUT, and PATCH requests)
|
|
@@ -3926,7 +4027,7 @@ export interface SessionProxyExecuteParams {
|
|
|
3926
4027
|
}
|
|
3927
4028
|
|
|
3928
4029
|
export namespace SessionProxyExecuteParams {
|
|
3929
|
-
export interface
|
|
4030
|
+
export interface BinaryBodyUnionMember0 {
|
|
3930
4031
|
/**
|
|
3931
4032
|
* URL to fetch binary content from
|
|
3932
4033
|
*/
|
|
@@ -3938,7 +4039,7 @@ export namespace SessionProxyExecuteParams {
|
|
|
3938
4039
|
content_type?: string;
|
|
3939
4040
|
}
|
|
3940
4041
|
|
|
3941
|
-
export interface
|
|
4042
|
+
export interface BinaryBodyUnionMember1 {
|
|
3942
4043
|
/**
|
|
3943
4044
|
* Base64-encoded binary data
|
|
3944
4045
|
*/
|
|
@@ -3987,6 +4088,8 @@ export namespace SessionProxyExecuteParams {
|
|
|
3987
4088
|
|
|
3988
4089
|
extension?: string;
|
|
3989
4090
|
|
|
4091
|
+
extra_token_data?: { [key: string]: unknown };
|
|
4092
|
+
|
|
3990
4093
|
form_api_base_url?: string;
|
|
3991
4094
|
|
|
3992
4095
|
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
|
}
|