@composio/client 0.1.0-alpha.62 → 0.1.0-alpha.64
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 +44 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +1 -0
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +1 -0
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/connected-accounts.d.mts +133 -5
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +133 -5
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +27 -4
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +27 -4
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts +1 -1
- package/resources/mcp/mcp.d.ts +1 -1
- package/resources/mcp/mcp.js +1 -1
- package/resources/mcp/mcp.mjs +1 -1
- package/resources/tool-router/session/session.d.mts +112 -8
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +112 -8
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js +1 -1
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs +1 -1
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +2 -2
- package/resources/tool-router/tool-router.d.ts +2 -2
- package/resources/tool-router/tool-router.js +2 -2
- package/resources/tool-router/tool-router.mjs +2 -2
- package/resources/tools.d.mts +34 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +34 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +2 -1
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +2 -1
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/auth-configs.ts +2 -0
- package/src/resources/connected-accounts.ts +194 -4
- package/src/resources/index.ts +2 -0
- package/src/resources/mcp/mcp.ts +1 -1
- package/src/resources/tool-router/session/session.ts +129 -8
- package/src/resources/tool-router/tool-router.ts +2 -2
- package/src/resources/tools.ts +40 -0
- package/src/resources/trigger-instances/trigger-instances.ts +2 -1
- 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
|
@@ -30,7 +30,7 @@ export declare class ConnectedAccounts extends APIResource {
|
|
|
30
30
|
* ```ts
|
|
31
31
|
* const connectedAccount =
|
|
32
32
|
* await client.connectedAccounts.retrieve(
|
|
33
|
-
* '
|
|
33
|
+
* 'ca_1a2b3c4d5e6f',
|
|
34
34
|
* );
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
@@ -56,10 +56,31 @@ export declare class ConnectedAccounts extends APIResource {
|
|
|
56
56
|
* @example
|
|
57
57
|
* ```ts
|
|
58
58
|
* const connectedAccount =
|
|
59
|
-
* await client.connectedAccounts.delete('
|
|
59
|
+
* await client.connectedAccounts.delete('ca_1a2b3c4d5e6f');
|
|
60
60
|
* ```
|
|
61
61
|
*/
|
|
62
62
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Update a connected account. Supports updating the alias and/or credentials. Only
|
|
65
|
+
* specified fields will be updated. Set a credential field to null to remove it.
|
|
66
|
+
* Alias must be unique within the same project, entity, and toolkit scope.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const response = await client.connectedAccounts.patch(
|
|
71
|
+
* 'ca_1a2b3c4d5e6f',
|
|
72
|
+
* {
|
|
73
|
+
* connection: {
|
|
74
|
+
* state: {
|
|
75
|
+
* authScheme: 'BEARER_TOKEN',
|
|
76
|
+
* val: { token: 'new_access_token' },
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* },
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
patch(nanoid: string, body?: ConnectedAccountPatchParams | null | undefined, options?: RequestOptions): APIPromise<ConnectedAccountPatchResponse>;
|
|
63
84
|
/**
|
|
64
85
|
* Initiates a new authentication flow for a connected account when credentials
|
|
65
86
|
* have expired or become invalid. This may generate a new authentication URL for
|
|
@@ -68,7 +89,7 @@ export declare class ConnectedAccounts extends APIResource {
|
|
|
68
89
|
* @example
|
|
69
90
|
* ```ts
|
|
70
91
|
* const response = await client.connectedAccounts.refresh(
|
|
71
|
-
* '
|
|
92
|
+
* 'ca_1a2b3c4d5e6f',
|
|
72
93
|
* );
|
|
73
94
|
* ```
|
|
74
95
|
*/
|
|
@@ -82,7 +103,7 @@ export declare class ConnectedAccounts extends APIResource {
|
|
|
82
103
|
* ```ts
|
|
83
104
|
* const response =
|
|
84
105
|
* await client.connectedAccounts.updateStatus(
|
|
85
|
-
* '
|
|
106
|
+
* 'ca_1a2b3c4d5e6f',
|
|
86
107
|
* { enabled: true },
|
|
87
108
|
* );
|
|
88
109
|
* ```
|
|
@@ -2427,6 +2448,10 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
2427
2448
|
* The id of the connection
|
|
2428
2449
|
*/
|
|
2429
2450
|
id: string;
|
|
2451
|
+
/**
|
|
2452
|
+
* A user-defined alias for the connected account
|
|
2453
|
+
*/
|
|
2454
|
+
alias: string | null;
|
|
2430
2455
|
auth_config: ConnectedAccountRetrieveResponse.AuthConfig;
|
|
2431
2456
|
/**
|
|
2432
2457
|
* The created at of the connection
|
|
@@ -2474,6 +2499,11 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
2474
2499
|
* anymore, you will only be able to read via userId not get it back
|
|
2475
2500
|
*/
|
|
2476
2501
|
user_id: string;
|
|
2502
|
+
/**
|
|
2503
|
+
* A short, token-friendly identifier for multi-account disambiguation, typically
|
|
2504
|
+
* toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
|
|
2505
|
+
*/
|
|
2506
|
+
word_id: string | null;
|
|
2477
2507
|
/**
|
|
2478
2508
|
* @deprecated
|
|
2479
2509
|
*/
|
|
@@ -4840,6 +4870,10 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
4840
4870
|
* The id of the connection
|
|
4841
4871
|
*/
|
|
4842
4872
|
id: string;
|
|
4873
|
+
/**
|
|
4874
|
+
* A user-defined alias for the connected account
|
|
4875
|
+
*/
|
|
4876
|
+
alias: string | null;
|
|
4843
4877
|
auth_config: Item.AuthConfig;
|
|
4844
4878
|
/**
|
|
4845
4879
|
* The created at of the connection
|
|
@@ -4880,6 +4914,11 @@ export declare namespace ConnectedAccountListResponse {
|
|
|
4880
4914
|
* anymore, you will only be able to read via userId not get it back
|
|
4881
4915
|
*/
|
|
4882
4916
|
user_id: string;
|
|
4917
|
+
/**
|
|
4918
|
+
* A short, token-friendly identifier for multi-account disambiguation, typically
|
|
4919
|
+
* toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
|
|
4920
|
+
*/
|
|
4921
|
+
word_id: string | null;
|
|
4883
4922
|
/**
|
|
4884
4923
|
* @deprecated
|
|
4885
4924
|
*/
|
|
@@ -7243,6 +7282,21 @@ export interface ConnectedAccountDeleteResponse {
|
|
|
7243
7282
|
*/
|
|
7244
7283
|
success: boolean;
|
|
7245
7284
|
}
|
|
7285
|
+
export interface ConnectedAccountPatchResponse {
|
|
7286
|
+
/**
|
|
7287
|
+
* The unique identifier of the updated connected account
|
|
7288
|
+
*/
|
|
7289
|
+
id: string;
|
|
7290
|
+
/**
|
|
7291
|
+
* The current status of the connected account after the update (ACTIVE, EXPIRED,
|
|
7292
|
+
* INACTIVE, etc.)
|
|
7293
|
+
*/
|
|
7294
|
+
status: string;
|
|
7295
|
+
/**
|
|
7296
|
+
* Whether the update was successful
|
|
7297
|
+
*/
|
|
7298
|
+
success: boolean;
|
|
7299
|
+
}
|
|
7246
7300
|
/**
|
|
7247
7301
|
* Response schema for a refreshed connected account authentication
|
|
7248
7302
|
*/
|
|
@@ -7287,6 +7341,11 @@ export declare namespace ConnectedAccountCreateParams {
|
|
|
7287
7341
|
id: string;
|
|
7288
7342
|
}
|
|
7289
7343
|
interface Connection {
|
|
7344
|
+
/**
|
|
7345
|
+
* A human-readable alias for this connected account. Must be unique per entity and
|
|
7346
|
+
* toolkit within the project.
|
|
7347
|
+
*/
|
|
7348
|
+
alias?: string;
|
|
7290
7349
|
/**
|
|
7291
7350
|
* The URL to redirect to after connection completion
|
|
7292
7351
|
*/
|
|
@@ -9647,6 +9706,75 @@ export interface ConnectedAccountListParams {
|
|
|
9647
9706
|
*/
|
|
9648
9707
|
user_ids?: Array<string> | null;
|
|
9649
9708
|
}
|
|
9709
|
+
export interface ConnectedAccountPatchParams {
|
|
9710
|
+
/**
|
|
9711
|
+
* A human-readable alias for this connected account. Pass an empty string to clear
|
|
9712
|
+
* the alias. Must be unique per entity and toolkit within the project.
|
|
9713
|
+
*/
|
|
9714
|
+
alias?: string;
|
|
9715
|
+
connection?: ConnectedAccountPatchParams.Connection;
|
|
9716
|
+
}
|
|
9717
|
+
export declare namespace ConnectedAccountPatchParams {
|
|
9718
|
+
interface Connection {
|
|
9719
|
+
state: Connection.State;
|
|
9720
|
+
}
|
|
9721
|
+
namespace Connection {
|
|
9722
|
+
interface State {
|
|
9723
|
+
/**
|
|
9724
|
+
* The auth scheme of the connected account. Must match the connection's actual
|
|
9725
|
+
* auth scheme.
|
|
9726
|
+
*/
|
|
9727
|
+
authScheme: 'BEARER_TOKEN' | 'API_KEY' | 'BASIC' | 'BASIC_WITH_JWT' | 'GOOGLE_SERVICE_ACCOUNT' | 'SERVICE_ACCOUNT';
|
|
9728
|
+
/**
|
|
9729
|
+
* Credential fields to update. Only provided fields are changed — omitted fields
|
|
9730
|
+
* are preserved. Set a field to null to remove it.
|
|
9731
|
+
*/
|
|
9732
|
+
val: State.Val;
|
|
9733
|
+
}
|
|
9734
|
+
namespace State {
|
|
9735
|
+
/**
|
|
9736
|
+
* Credential fields to update. Only provided fields are changed — omitted fields
|
|
9737
|
+
* are preserved. Set a field to null to remove it.
|
|
9738
|
+
*/
|
|
9739
|
+
interface Val {
|
|
9740
|
+
token?: string | null;
|
|
9741
|
+
account_id?: string | null;
|
|
9742
|
+
account_url?: string | null;
|
|
9743
|
+
api_key?: string | null;
|
|
9744
|
+
api_url?: string | null;
|
|
9745
|
+
application_id?: string | null;
|
|
9746
|
+
base_url?: string | null;
|
|
9747
|
+
basic_encoded?: string | null;
|
|
9748
|
+
bearer_token?: string | null;
|
|
9749
|
+
borneo_dashboard_url?: string | null;
|
|
9750
|
+
COMPANYDOMAIN?: string | null;
|
|
9751
|
+
credentials_json?: string | null;
|
|
9752
|
+
dc?: string | null;
|
|
9753
|
+
domain?: string | null;
|
|
9754
|
+
extension?: string | null;
|
|
9755
|
+
form_api_base_url?: string | null;
|
|
9756
|
+
generic_api_key?: string | null;
|
|
9757
|
+
installation_id?: string | null;
|
|
9758
|
+
instanceEndpoint?: string | null;
|
|
9759
|
+
instanceName?: string | null;
|
|
9760
|
+
password?: string | null;
|
|
9761
|
+
private_key?: string | null;
|
|
9762
|
+
proxy_password?: string | null;
|
|
9763
|
+
proxy_username?: string | null;
|
|
9764
|
+
region?: string | null;
|
|
9765
|
+
server_location?: string | null;
|
|
9766
|
+
shop?: string | null;
|
|
9767
|
+
site_name?: string | null;
|
|
9768
|
+
subdomain?: string | null;
|
|
9769
|
+
username?: string | null;
|
|
9770
|
+
version?: string | null;
|
|
9771
|
+
your_server?: string | null;
|
|
9772
|
+
'your-domain'?: string | null;
|
|
9773
|
+
[k: string]: unknown;
|
|
9774
|
+
}
|
|
9775
|
+
}
|
|
9776
|
+
}
|
|
9777
|
+
}
|
|
9650
9778
|
export interface ConnectedAccountRefreshParams {
|
|
9651
9779
|
/**
|
|
9652
9780
|
* Query param
|
|
@@ -9669,6 +9797,6 @@ export interface ConnectedAccountUpdateStatusParams {
|
|
|
9669
9797
|
enabled: boolean;
|
|
9670
9798
|
}
|
|
9671
9799
|
export declare namespace ConnectedAccounts {
|
|
9672
|
-
export { type ConnectedAccountCreateResponse as ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse as ConnectedAccountListResponse, type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse, type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams as ConnectedAccountCreateParams, type ConnectedAccountListParams as ConnectedAccountListParams, type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams, type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams, };
|
|
9800
|
+
export { type ConnectedAccountCreateResponse as ConnectedAccountCreateResponse, type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse, type ConnectedAccountListResponse as ConnectedAccountListResponse, type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse, type ConnectedAccountPatchResponse as ConnectedAccountPatchResponse, type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse, type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse, type ConnectedAccountCreateParams as ConnectedAccountCreateParams, type ConnectedAccountListParams as ConnectedAccountListParams, type ConnectedAccountPatchParams as ConnectedAccountPatchParams, type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams, type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams, };
|
|
9673
9801
|
}
|
|
9674
9802
|
//# sourceMappingURL=connected-accounts.d.mts.map
|