@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.
- package/CHANGELOG.md +29 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/cli/cli.d.mts.map +1 -1
- package/resources/cli/cli.d.ts.map +1 -1
- package/resources/cli/cli.mjs.map +1 -1
- package/resources/cli/index.d.mts.map +1 -1
- package/resources/cli/index.d.ts.map +1 -1
- package/resources/cli/index.mjs.map +1 -1
- package/resources/cli/realtime.d.mts.map +1 -1
- package/resources/cli/realtime.d.ts.map +1 -1
- package/resources/cli/realtime.mjs.map +1 -1
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +203 -112
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +203 -112
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +9 -3
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +9 -3
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/link.d.mts +85 -41
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +85 -41
- package/resources/link.d.ts.map +1 -1
- package/resources/link.mjs.map +1 -1
- package/resources/logs/index.d.mts.map +1 -1
- package/resources/logs/index.d.ts.map +1 -1
- package/resources/logs/index.mjs.map +1 -1
- package/resources/logs/logs.d.mts.map +1 -1
- package/resources/logs/logs.d.ts.map +1 -1
- package/resources/logs/logs.mjs.map +1 -1
- package/resources/logs/tools.d.mts.map +1 -1
- package/resources/logs/tools.d.ts.map +1 -1
- package/resources/logs/tools.mjs.map +1 -1
- package/resources/logs/triggers.d.mts.map +1 -1
- package/resources/logs/triggers.d.ts.map +1 -1
- package/resources/logs/triggers.mjs.map +1 -1
- package/resources/logs.d.mts.map +1 -1
- package/resources/logs.d.ts.map +1 -1
- package/resources/logs.mjs.map +1 -1
- package/resources/mcp/custom.d.mts.map +1 -1
- package/resources/mcp/custom.d.ts.map +1 -1
- package/resources/mcp/custom.mjs.map +1 -1
- package/resources/mcp/generate.d.mts.map +1 -1
- package/resources/mcp/generate.d.ts.map +1 -1
- package/resources/mcp/generate.mjs.map +1 -1
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.d.mts.map +1 -1
- package/resources/mcp.d.ts.map +1 -1
- package/resources/mcp.mjs.map +1 -1
- package/resources/migration.d.mts.map +1 -1
- package/resources/migration.d.ts.map +1 -1
- package/resources/migration.mjs.map +1 -1
- package/resources/project/config.d.mts.map +1 -1
- package/resources/project/config.d.ts.map +1 -1
- package/resources/project/config.mjs.map +1 -1
- package/resources/project/index.d.mts.map +1 -1
- package/resources/project/index.d.ts.map +1 -1
- package/resources/project/index.mjs.map +1 -1
- package/resources/project/project.d.mts.map +1 -1
- package/resources/project/project.d.ts.map +1 -1
- package/resources/project/project.mjs.map +1 -1
- package/resources/project.d.mts.map +1 -1
- package/resources/project.d.ts.map +1 -1
- package/resources/project.mjs.map +1 -1
- package/resources/tool-router/index.d.mts.map +1 -1
- package/resources/tool-router/index.d.ts.map +1 -1
- package/resources/tool-router/index.mjs.map +1 -1
- package/resources/tool-router/session/files.d.mts.map +1 -1
- package/resources/tool-router/session/files.d.ts.map +1 -1
- package/resources/tool-router/session/files.mjs.map +1 -1
- package/resources/tool-router/session/index.d.mts.map +1 -1
- package/resources/tool-router/session/index.d.ts.map +1 -1
- package/resources/tool-router/session/index.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +90 -35
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +90 -35
- 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/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/tool-router.d.mts.map +1 -1
- package/resources/tool-router.d.ts.map +1 -1
- package/resources/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +3 -3
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +3 -3
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts.map +1 -1
- package/resources/trigger-instances/manage.d.ts.map +1 -1
- package/resources/trigger-instances/manage.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/connected-accounts.ts +227 -126
- package/src/resources/link.ts +96 -46
- package/src/resources/tool-router/session/session.ts +103 -38
- package/src/resources/tools.ts +3 -3
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -70,9 +70,15 @@ export declare class ConnectedAccounts extends APIResource {
|
|
|
70
70
|
*/
|
|
71
71
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse>;
|
|
72
72
|
/**
|
|
73
|
-
* Update a connected account. Supports updating
|
|
74
|
-
*
|
|
75
|
-
*
|
|
73
|
+
* Update a connected account. Supports updating alias, credentials, sharing model
|
|
74
|
+
* (`experimental.account_type`), and per-user ACL
|
|
75
|
+
* (`experimental.acl_config_for_shared`). Only specified fields are updated. Set a
|
|
76
|
+
* credential field to null to remove it. Alias must be unique within the same
|
|
77
|
+
* project, entity, and toolkit scope. Toggling `experimental.account_type` between
|
|
78
|
+
* PRIVATE and SHARED reuses the stored credentials — no re-auth is required.
|
|
79
|
+
* Demoting SHARED → PRIVATE atomically clears the stored ACL; supplying
|
|
80
|
+
* `acl_config_for_shared` in the same call is rejected as
|
|
81
|
+
* `acl_config_for_shared is only valid on SHARED connections`.
|
|
76
82
|
*
|
|
77
83
|
* @example
|
|
78
84
|
* ```ts
|
|
@@ -124,12 +130,6 @@ export interface ConnectedAccountCreateResponse {
|
|
|
124
130
|
* The id of the connected account
|
|
125
131
|
*/
|
|
126
132
|
id: string;
|
|
127
|
-
/**
|
|
128
|
-
* The persisted sharing model for this connected account (PRIVATE | SHARED).
|
|
129
|
-
* Echoes back the value supplied at creation time so callers can confirm what
|
|
130
|
-
* landed without a follow-up GET.
|
|
131
|
-
*/
|
|
132
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
133
133
|
/**
|
|
134
134
|
* The connection data of the connected account
|
|
135
135
|
*/
|
|
@@ -151,6 +151,11 @@ export interface ConnectedAccountCreateResponse {
|
|
|
151
151
|
* @deprecated DEPRECATED: This field will be removed in a future version
|
|
152
152
|
*/
|
|
153
153
|
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
154
|
+
/**
|
|
155
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
156
|
+
* versions.
|
|
157
|
+
*/
|
|
158
|
+
experimental?: ConnectedAccountCreateResponse.Experimental;
|
|
154
159
|
}
|
|
155
160
|
export declare namespace ConnectedAccountCreateResponse {
|
|
156
161
|
interface UnionMember0 {
|
|
@@ -2498,19 +2503,42 @@ export declare namespace ConnectedAccountCreateResponse {
|
|
|
2498
2503
|
*/
|
|
2499
2504
|
uuid: string;
|
|
2500
2505
|
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
2508
|
+
* versions.
|
|
2509
|
+
*/
|
|
2510
|
+
interface Experimental {
|
|
2511
|
+
/**
|
|
2512
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
2513
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
2514
|
+
* pinned in the session config.
|
|
2515
|
+
*/
|
|
2516
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
2517
|
+
/**
|
|
2518
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
2519
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
2520
|
+
* without this block.
|
|
2521
|
+
*/
|
|
2522
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
2523
|
+
}
|
|
2524
|
+
namespace Experimental {
|
|
2525
|
+
/**
|
|
2526
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
2527
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
2528
|
+
* without this block.
|
|
2529
|
+
*/
|
|
2530
|
+
interface ACLConfigForShared {
|
|
2531
|
+
allow_all_users: boolean;
|
|
2532
|
+
allowed_user_ids: Array<string>;
|
|
2533
|
+
not_allowed_user_ids: Array<string>;
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2501
2536
|
}
|
|
2502
2537
|
export interface ConnectedAccountRetrieveResponse {
|
|
2503
2538
|
/**
|
|
2504
2539
|
* The id of the connection
|
|
2505
2540
|
*/
|
|
2506
2541
|
id: string;
|
|
2507
|
-
/**
|
|
2508
|
-
* Sharing model. PRIVATE accounts are usable only by their owning user_id. SHARED
|
|
2509
|
-
* accounts are reachable from a tool-router session only when explicitly pinned in
|
|
2510
|
-
* the session config (at most one SHARED per toolkit per session); they are never
|
|
2511
|
-
* used implicitly.
|
|
2512
|
-
*/
|
|
2513
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
2514
2542
|
/**
|
|
2515
2543
|
* A user-defined alias for the connected account
|
|
2516
2544
|
*/
|
|
@@ -2569,16 +2597,15 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
2569
2597
|
* toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
|
|
2570
2598
|
*/
|
|
2571
2599
|
word_id: string | null;
|
|
2572
|
-
/**
|
|
2573
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
2574
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
2575
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
2576
|
-
*/
|
|
2577
|
-
acl_config_for_shared?: ConnectedAccountRetrieveResponse.ACLConfigForShared;
|
|
2578
2600
|
/**
|
|
2579
2601
|
* @deprecated
|
|
2580
2602
|
*/
|
|
2581
2603
|
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
2604
|
+
/**
|
|
2605
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
2606
|
+
* versions.
|
|
2607
|
+
*/
|
|
2608
|
+
experimental?: ConnectedAccountRetrieveResponse.Experimental;
|
|
2582
2609
|
/**
|
|
2583
2610
|
* The endpoint to make test request for verification
|
|
2584
2611
|
*/
|
|
@@ -4955,16 +4982,6 @@ export declare namespace ConnectedAccountRetrieveResponse {
|
|
|
4955
4982
|
*/
|
|
4956
4983
|
slug: string;
|
|
4957
4984
|
}
|
|
4958
|
-
/**
|
|
4959
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
4960
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
4961
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
4962
|
-
*/
|
|
4963
|
-
interface ACLConfigForShared {
|
|
4964
|
-
allow_all_users: boolean;
|
|
4965
|
-
allowed_user_ids: Array<string>;
|
|
4966
|
-
not_allowed_user_ids: Array<string>;
|
|
4967
|
-
}
|
|
4968
4985
|
/**
|
|
4969
4986
|
* @deprecated
|
|
4970
4987
|
*/
|
|
@@ -4978,6 +4995,36 @@ export declare namespace ConnectedAccountRetrieveResponse {
|
|
|
4978
4995
|
*/
|
|
4979
4996
|
uuid: string;
|
|
4980
4997
|
}
|
|
4998
|
+
/**
|
|
4999
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
5000
|
+
* versions.
|
|
5001
|
+
*/
|
|
5002
|
+
interface Experimental {
|
|
5003
|
+
/**
|
|
5004
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
5005
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
5006
|
+
* pinned in the session config.
|
|
5007
|
+
*/
|
|
5008
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
5009
|
+
/**
|
|
5010
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
5011
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
5012
|
+
* without this block.
|
|
5013
|
+
*/
|
|
5014
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
5015
|
+
}
|
|
5016
|
+
namespace Experimental {
|
|
5017
|
+
/**
|
|
5018
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
5019
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
5020
|
+
* without this block.
|
|
5021
|
+
*/
|
|
5022
|
+
interface ACLConfigForShared {
|
|
5023
|
+
allow_all_users: boolean;
|
|
5024
|
+
allowed_user_ids: Array<string>;
|
|
5025
|
+
not_allowed_user_ids: Array<string>;
|
|
5026
|
+
}
|
|
5027
|
+
}
|
|
4981
5028
|
}
|
|
4982
5029
|
export interface ConnectedAccountListResponse {
|
|
4983
5030
|
current_page: number;
|
|
@@ -4992,13 +5039,6 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
4992
5039
|
* The id of the connection
|
|
4993
5040
|
*/
|
|
4994
5041
|
id: string;
|
|
4995
|
-
/**
|
|
4996
|
-
* Sharing model. PRIVATE accounts are usable only by their owning user_id. SHARED
|
|
4997
|
-
* accounts are reachable from a tool-router session only when explicitly pinned in
|
|
4998
|
-
* the session config (at most one SHARED per toolkit per session); they are never
|
|
4999
|
-
* used implicitly.
|
|
5000
|
-
*/
|
|
5001
|
-
account_type: 'PRIVATE' | 'SHARED';
|
|
5002
5042
|
/**
|
|
5003
5043
|
* A user-defined alias for the connected account
|
|
5004
5044
|
*/
|
|
@@ -5050,16 +5090,15 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
5050
5090
|
* toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
|
|
5051
5091
|
*/
|
|
5052
5092
|
word_id: string | null;
|
|
5053
|
-
/**
|
|
5054
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
5055
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
5056
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
5057
|
-
*/
|
|
5058
|
-
acl_config_for_shared?: Item.ACLConfigForShared;
|
|
5059
5093
|
/**
|
|
5060
5094
|
* @deprecated
|
|
5061
5095
|
*/
|
|
5062
5096
|
deprecated?: Item.Deprecated;
|
|
5097
|
+
/**
|
|
5098
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
5099
|
+
* versions.
|
|
5100
|
+
*/
|
|
5101
|
+
experimental?: Item.Experimental;
|
|
5063
5102
|
/**
|
|
5064
5103
|
* The endpoint to make test request for verification
|
|
5065
5104
|
*/
|
|
@@ -7436,16 +7475,6 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
7436
7475
|
*/
|
|
7437
7476
|
slug: string;
|
|
7438
7477
|
}
|
|
7439
|
-
/**
|
|
7440
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
7441
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
7442
|
-
* user in allowed_user_ids → ALLOW; else DENY.
|
|
7443
|
-
*/
|
|
7444
|
-
interface ACLConfigForShared {
|
|
7445
|
-
allow_all_users: boolean;
|
|
7446
|
-
allowed_user_ids: Array<string>;
|
|
7447
|
-
not_allowed_user_ids: Array<string>;
|
|
7448
|
-
}
|
|
7449
7478
|
/**
|
|
7450
7479
|
* @deprecated
|
|
7451
7480
|
*/
|
|
@@ -7459,6 +7488,36 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
7459
7488
|
*/
|
|
7460
7489
|
uuid: string;
|
|
7461
7490
|
}
|
|
7491
|
+
/**
|
|
7492
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
7493
|
+
* versions.
|
|
7494
|
+
*/
|
|
7495
|
+
interface Experimental {
|
|
7496
|
+
/**
|
|
7497
|
+
* Sharing model for this connected account. PRIVATE is usable only by the owning
|
|
7498
|
+
* user_id. SHARED is reachable from a tool-router session only when explicitly
|
|
7499
|
+
* pinned in the session config.
|
|
7500
|
+
*/
|
|
7501
|
+
account_type: 'PRIVATE' | 'SHARED';
|
|
7502
|
+
/**
|
|
7503
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
7504
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
7505
|
+
* without this block.
|
|
7506
|
+
*/
|
|
7507
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
7508
|
+
}
|
|
7509
|
+
namespace Experimental {
|
|
7510
|
+
/**
|
|
7511
|
+
* Access control for SHARED connections. Visible only to the connection creator
|
|
7512
|
+
* and project/org API key callers; non-creator cookie callers receive the response
|
|
7513
|
+
* without this block.
|
|
7514
|
+
*/
|
|
7515
|
+
interface ACLConfigForShared {
|
|
7516
|
+
allow_all_users: boolean;
|
|
7517
|
+
allowed_user_ids: Array<string>;
|
|
7518
|
+
not_allowed_user_ids: Array<string>;
|
|
7519
|
+
}
|
|
7520
|
+
}
|
|
7462
7521
|
}
|
|
7463
7522
|
}
|
|
7464
7523
|
/**
|
|
@@ -7529,20 +7588,6 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
7529
7588
|
id: string;
|
|
7530
7589
|
}
|
|
7531
7590
|
interface Connection {
|
|
7532
|
-
/**
|
|
7533
|
-
* Sharing model for this connected account. PRIVATE (default) is usable only by
|
|
7534
|
-
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
7535
|
-
* explicitly pinned in the session config — at most one SHARED connection per
|
|
7536
|
-
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
7537
|
-
*/
|
|
7538
|
-
account_type?: 'PRIVATE' | 'SHARED';
|
|
7539
|
-
/**
|
|
7540
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
7541
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
7542
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
7543
|
-
* deny-by-default — only the creator can use.
|
|
7544
|
-
*/
|
|
7545
|
-
acl_config_for_shared?: Connection.ACLConfigForShared;
|
|
7546
7591
|
/**
|
|
7547
7592
|
* A human-readable alias for this connected account. Must be unique per entity and
|
|
7548
7593
|
* toolkit within the project.
|
|
@@ -7563,6 +7608,11 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
7563
7608
|
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
7564
7609
|
*/
|
|
7565
7610
|
deprecated_is_v1_rerouted?: boolean;
|
|
7611
|
+
/**
|
|
7612
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
7613
|
+
* versions.
|
|
7614
|
+
*/
|
|
7615
|
+
experimental?: Connection.Experimental;
|
|
7566
7616
|
/**
|
|
7567
7617
|
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
7568
7618
|
* Please use callback_url instead.
|
|
@@ -7579,25 +7629,47 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
7579
7629
|
}
|
|
7580
7630
|
namespace Connection {
|
|
7581
7631
|
/**
|
|
7582
|
-
*
|
|
7583
|
-
*
|
|
7584
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
7585
|
-
* deny-by-default — only the creator can use.
|
|
7632
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
7633
|
+
* versions.
|
|
7586
7634
|
*/
|
|
7587
|
-
interface
|
|
7635
|
+
interface Experimental {
|
|
7588
7636
|
/**
|
|
7589
|
-
*
|
|
7590
|
-
*
|
|
7637
|
+
* Sharing model for this connected account. PRIVATE (default) is usable only by
|
|
7638
|
+
* the owning user_id. SHARED is reachable from a tool-router session ONLY when
|
|
7639
|
+
* explicitly pinned in the session config — at most one SHARED connection per
|
|
7640
|
+
* toolkit per session. Sessions never use a SHARED connection implicitly.
|
|
7591
7641
|
*/
|
|
7592
|
-
|
|
7642
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
7593
7643
|
/**
|
|
7594
|
-
*
|
|
7644
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
7645
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
7646
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
7647
|
+
* deny-by-default — only the creator can use.
|
|
7595
7648
|
*/
|
|
7596
|
-
|
|
7649
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
7650
|
+
}
|
|
7651
|
+
namespace Experimental {
|
|
7597
7652
|
/**
|
|
7598
|
-
*
|
|
7653
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
7654
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
7655
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
7656
|
+
* deny-by-default — only the creator can use.
|
|
7599
7657
|
*/
|
|
7600
|
-
|
|
7658
|
+
interface ACLConfigForShared {
|
|
7659
|
+
/**
|
|
7660
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
7661
|
+
* connections.
|
|
7662
|
+
*/
|
|
7663
|
+
allow_all_users?: boolean;
|
|
7664
|
+
/**
|
|
7665
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
7666
|
+
*/
|
|
7667
|
+
allowed_user_ids?: Array<string>;
|
|
7668
|
+
/**
|
|
7669
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
7670
|
+
*/
|
|
7671
|
+
not_allowed_user_ids?: Array<string>;
|
|
7672
|
+
}
|
|
7601
7673
|
}
|
|
7602
7674
|
interface UnionMember0 {
|
|
7603
7675
|
authScheme: 'OAUTH1';
|
|
@@ -9934,9 +10006,9 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
9934
10006
|
}
|
|
9935
10007
|
export interface ConnectedAccountListParams {
|
|
9936
10008
|
/**
|
|
9937
|
-
* Filter by sharing model. Default (omitted) returns PRIVATE only —
|
|
9938
|
-
* accounts must be requested explicitly. Pass SHARED for only shared
|
|
9939
|
-
* ALL for PRIVATE + SHARED.
|
|
10009
|
+
* [Experimental] Filter by sharing model. Default (omitted) returns PRIVATE only —
|
|
10010
|
+
* shared accounts must be requested explicitly. Pass SHARED for only shared
|
|
10011
|
+
* accounts, or ALL for PRIVATE + SHARED.
|
|
9940
10012
|
*/
|
|
9941
10013
|
account_type?: 'PRIVATE' | 'SHARED' | 'ALL';
|
|
9942
10014
|
/**
|
|
@@ -9977,42 +10049,19 @@ export interface ConnectedAccountListParams {
|
|
|
9977
10049
|
user_ids?: Array<string> | null;
|
|
9978
10050
|
}
|
|
9979
10051
|
export interface ConnectedAccountPatchParams {
|
|
9980
|
-
/**
|
|
9981
|
-
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
9982
|
-
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
9983
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
9984
|
-
* deny-by-default — only the creator can use.
|
|
9985
|
-
*/
|
|
9986
|
-
acl_config_for_shared?: ConnectedAccountPatchParams.ACLConfigForShared;
|
|
9987
10052
|
/**
|
|
9988
10053
|
* A human-readable alias for this connected account. Pass an empty string to clear
|
|
9989
10054
|
* the alias. Must be unique per entity and toolkit within the project.
|
|
9990
10055
|
*/
|
|
9991
10056
|
alias?: string;
|
|
9992
10057
|
connection?: ConnectedAccountPatchParams.Connection;
|
|
9993
|
-
}
|
|
9994
|
-
export declare namespace ConnectedAccountPatchParams {
|
|
9995
10058
|
/**
|
|
9996
|
-
*
|
|
9997
|
-
*
|
|
9998
|
-
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
9999
|
-
* deny-by-default — only the creator can use.
|
|
10059
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
10060
|
+
* versions.
|
|
10000
10061
|
*/
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
* connections.
|
|
10005
|
-
*/
|
|
10006
|
-
allow_all_users?: boolean;
|
|
10007
|
-
/**
|
|
10008
|
-
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
10009
|
-
*/
|
|
10010
|
-
allowed_user_ids?: Array<string>;
|
|
10011
|
-
/**
|
|
10012
|
-
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
10013
|
-
*/
|
|
10014
|
-
not_allowed_user_ids?: Array<string>;
|
|
10015
|
-
}
|
|
10062
|
+
experimental?: ConnectedAccountPatchParams.Experimental;
|
|
10063
|
+
}
|
|
10064
|
+
export declare namespace ConnectedAccountPatchParams {
|
|
10016
10065
|
interface Connection {
|
|
10017
10066
|
state: Connection.State;
|
|
10018
10067
|
}
|
|
@@ -10072,6 +10121,48 @@ export declare namespace ConnectedAccountPatchParams {
|
|
|
10072
10121
|
}
|
|
10073
10122
|
}
|
|
10074
10123
|
}
|
|
10124
|
+
/**
|
|
10125
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
10126
|
+
* versions.
|
|
10127
|
+
*/
|
|
10128
|
+
interface Experimental {
|
|
10129
|
+
/**
|
|
10130
|
+
* Mutate the sharing model. PRIVATE → SHARED promotes the existing connection
|
|
10131
|
+
* without re-auth; SHARED → PRIVATE revokes all non-creator access and clears the
|
|
10132
|
+
* stored ACL atomically. Omit to leave unchanged.
|
|
10133
|
+
*/
|
|
10134
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
10135
|
+
/**
|
|
10136
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
10137
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
10138
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
10139
|
+
* deny-by-default — only the creator can use.
|
|
10140
|
+
*/
|
|
10141
|
+
acl_config_for_shared?: Experimental.ACLConfigForShared;
|
|
10142
|
+
}
|
|
10143
|
+
namespace Experimental {
|
|
10144
|
+
/**
|
|
10145
|
+
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
10146
|
+
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
10147
|
+
* user in allowed_user_ids → ALLOW; else DENY. Default state (omitted or {}) is
|
|
10148
|
+
* deny-by-default — only the creator can use.
|
|
10149
|
+
*/
|
|
10150
|
+
interface ACLConfigForShared {
|
|
10151
|
+
/**
|
|
10152
|
+
* Wildcard "any user_id in the project" allow toggle. Only valid on SHARED
|
|
10153
|
+
* connections.
|
|
10154
|
+
*/
|
|
10155
|
+
allow_all_users?: boolean;
|
|
10156
|
+
/**
|
|
10157
|
+
* Explicit allow list of user_ids who can use this SHARED connection.
|
|
10158
|
+
*/
|
|
10159
|
+
allowed_user_ids?: Array<string>;
|
|
10160
|
+
/**
|
|
10161
|
+
* Explicit deny list. Wins on conflict with allow_all_users and allowed_user_ids.
|
|
10162
|
+
*/
|
|
10163
|
+
not_allowed_user_ids?: Array<string>;
|
|
10164
|
+
}
|
|
10165
|
+
}
|
|
10075
10166
|
}
|
|
10076
10167
|
export interface ConnectedAccountRefreshParams {
|
|
10077
10168
|
/**
|