@composio/client 0.1.0-alpha.62 → 0.1.0-alpha.63
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 +36 -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 +86 -8
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +86 -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 +99 -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
|
@@ -40,7 +40,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
40
40
|
* ```ts
|
|
41
41
|
* const connectedAccount =
|
|
42
42
|
* await client.connectedAccounts.retrieve(
|
|
43
|
-
* '
|
|
43
|
+
* 'ca_1a2b3c4d5e6f',
|
|
44
44
|
* );
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
@@ -75,13 +75,41 @@ export class ConnectedAccounts extends APIResource {
|
|
|
75
75
|
* @example
|
|
76
76
|
* ```ts
|
|
77
77
|
* const connectedAccount =
|
|
78
|
-
* await client.connectedAccounts.delete('
|
|
78
|
+
* await client.connectedAccounts.delete('ca_1a2b3c4d5e6f');
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
81
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
|
|
82
82
|
return this._client.delete(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* Update a connected account. Supports updating the alias and/or credentials. Only
|
|
87
|
+
* specified fields will be updated. Set a credential field to null to remove it.
|
|
88
|
+
* Alias must be unique within the same project, entity, and toolkit scope.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const response = await client.connectedAccounts.patch(
|
|
93
|
+
* 'ca_1a2b3c4d5e6f',
|
|
94
|
+
* {
|
|
95
|
+
* connection: {
|
|
96
|
+
* state: {
|
|
97
|
+
* authScheme: 'BEARER_TOKEN',
|
|
98
|
+
* val: { token: 'new_access_token' },
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* },
|
|
102
|
+
* );
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
patch(
|
|
106
|
+
nanoid: string,
|
|
107
|
+
body: ConnectedAccountPatchParams | null | undefined = {},
|
|
108
|
+
options?: RequestOptions,
|
|
109
|
+
): APIPromise<ConnectedAccountPatchResponse> {
|
|
110
|
+
return this._client.patch(path`/api/v3/connected_accounts/${nanoid}`, { body, ...options });
|
|
111
|
+
}
|
|
112
|
+
|
|
85
113
|
/**
|
|
86
114
|
* Initiates a new authentication flow for a connected account when credentials
|
|
87
115
|
* have expired or become invalid. This may generate a new authentication URL for
|
|
@@ -90,7 +118,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
90
118
|
* @example
|
|
91
119
|
* ```ts
|
|
92
120
|
* const response = await client.connectedAccounts.refresh(
|
|
93
|
-
* '
|
|
121
|
+
* 'ca_1a2b3c4d5e6f',
|
|
94
122
|
* );
|
|
95
123
|
* ```
|
|
96
124
|
*/
|
|
@@ -116,7 +144,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
116
144
|
* ```ts
|
|
117
145
|
* const response =
|
|
118
146
|
* await client.connectedAccounts.updateStatus(
|
|
119
|
-
* '
|
|
147
|
+
* 'ca_1a2b3c4d5e6f',
|
|
120
148
|
* { enabled: true },
|
|
121
149
|
* );
|
|
122
150
|
* ```
|
|
@@ -4541,6 +4569,11 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4541
4569
|
*/
|
|
4542
4570
|
id: string;
|
|
4543
4571
|
|
|
4572
|
+
/**
|
|
4573
|
+
* A user-defined alias for the connected account
|
|
4574
|
+
*/
|
|
4575
|
+
alias: string | null;
|
|
4576
|
+
|
|
4544
4577
|
auth_config: ConnectedAccountRetrieveResponse.AuthConfig;
|
|
4545
4578
|
|
|
4546
4579
|
/**
|
|
@@ -4609,6 +4642,12 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4609
4642
|
*/
|
|
4610
4643
|
user_id: string;
|
|
4611
4644
|
|
|
4645
|
+
/**
|
|
4646
|
+
* A short, token-friendly identifier for multi-account disambiguation, typically
|
|
4647
|
+
* toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
|
|
4648
|
+
*/
|
|
4649
|
+
word_id: string | null;
|
|
4650
|
+
|
|
4612
4651
|
/**
|
|
4613
4652
|
* @deprecated
|
|
4614
4653
|
*/
|
|
@@ -9056,6 +9095,11 @@ export namespace ConnectedAccountListResponse {
|
|
|
9056
9095
|
*/
|
|
9057
9096
|
id: string;
|
|
9058
9097
|
|
|
9098
|
+
/**
|
|
9099
|
+
* A user-defined alias for the connected account
|
|
9100
|
+
*/
|
|
9101
|
+
alias: string | null;
|
|
9102
|
+
|
|
9059
9103
|
auth_config: Item.AuthConfig;
|
|
9060
9104
|
|
|
9061
9105
|
/**
|
|
@@ -9118,6 +9162,12 @@ export namespace ConnectedAccountListResponse {
|
|
|
9118
9162
|
*/
|
|
9119
9163
|
user_id: string;
|
|
9120
9164
|
|
|
9165
|
+
/**
|
|
9166
|
+
* A short, token-friendly identifier for multi-account disambiguation, typically
|
|
9167
|
+
* toolkit-prefixed with 1-2 words (e.g., "gmail_red-castle")
|
|
9168
|
+
*/
|
|
9169
|
+
word_id: string | null;
|
|
9170
|
+
|
|
9121
9171
|
/**
|
|
9122
9172
|
* @deprecated
|
|
9123
9173
|
*/
|
|
@@ -13557,6 +13607,24 @@ export interface ConnectedAccountDeleteResponse {
|
|
|
13557
13607
|
success: boolean;
|
|
13558
13608
|
}
|
|
13559
13609
|
|
|
13610
|
+
export interface ConnectedAccountPatchResponse {
|
|
13611
|
+
/**
|
|
13612
|
+
* The unique identifier of the updated connected account
|
|
13613
|
+
*/
|
|
13614
|
+
id: string;
|
|
13615
|
+
|
|
13616
|
+
/**
|
|
13617
|
+
* The current status of the connected account after the update (ACTIVE, EXPIRED,
|
|
13618
|
+
* INACTIVE, etc.)
|
|
13619
|
+
*/
|
|
13620
|
+
status: string;
|
|
13621
|
+
|
|
13622
|
+
/**
|
|
13623
|
+
* Whether the update was successful
|
|
13624
|
+
*/
|
|
13625
|
+
success: boolean;
|
|
13626
|
+
}
|
|
13627
|
+
|
|
13560
13628
|
/**
|
|
13561
13629
|
* Response schema for a refreshed connected account authentication
|
|
13562
13630
|
*/
|
|
@@ -13609,6 +13677,12 @@ export namespace ConnectedAccountCreateParams {
|
|
|
13609
13677
|
}
|
|
13610
13678
|
|
|
13611
13679
|
export interface Connection {
|
|
13680
|
+
/**
|
|
13681
|
+
* A human-readable alias for this connected account. Must be unique per entity and
|
|
13682
|
+
* toolkit within the project.
|
|
13683
|
+
*/
|
|
13684
|
+
alias?: string;
|
|
13685
|
+
|
|
13612
13686
|
/**
|
|
13613
13687
|
* The URL to redirect to after connection completion
|
|
13614
13688
|
*/
|
|
@@ -18046,6 +18120,120 @@ export interface ConnectedAccountListParams {
|
|
|
18046
18120
|
user_ids?: Array<string> | null;
|
|
18047
18121
|
}
|
|
18048
18122
|
|
|
18123
|
+
export interface ConnectedAccountPatchParams {
|
|
18124
|
+
/**
|
|
18125
|
+
* A human-readable alias for this connected account. Pass an empty string to clear
|
|
18126
|
+
* the alias. Must be unique per entity and toolkit within the project.
|
|
18127
|
+
*/
|
|
18128
|
+
alias?: string;
|
|
18129
|
+
|
|
18130
|
+
connection?: ConnectedAccountPatchParams.Connection;
|
|
18131
|
+
}
|
|
18132
|
+
|
|
18133
|
+
export namespace ConnectedAccountPatchParams {
|
|
18134
|
+
export interface Connection {
|
|
18135
|
+
state: Connection.State;
|
|
18136
|
+
}
|
|
18137
|
+
|
|
18138
|
+
export namespace Connection {
|
|
18139
|
+
export interface State {
|
|
18140
|
+
/**
|
|
18141
|
+
* The auth scheme of the connected account. Must match the connection's actual
|
|
18142
|
+
* auth scheme.
|
|
18143
|
+
*/
|
|
18144
|
+
authScheme:
|
|
18145
|
+
| 'BEARER_TOKEN'
|
|
18146
|
+
| 'API_KEY'
|
|
18147
|
+
| 'BASIC'
|
|
18148
|
+
| 'BASIC_WITH_JWT'
|
|
18149
|
+
| 'GOOGLE_SERVICE_ACCOUNT'
|
|
18150
|
+
| 'SERVICE_ACCOUNT';
|
|
18151
|
+
|
|
18152
|
+
/**
|
|
18153
|
+
* Credential fields to update. Only provided fields are changed — omitted fields
|
|
18154
|
+
* are preserved. Set a field to null to remove it.
|
|
18155
|
+
*/
|
|
18156
|
+
val: State.Val;
|
|
18157
|
+
}
|
|
18158
|
+
|
|
18159
|
+
export namespace State {
|
|
18160
|
+
/**
|
|
18161
|
+
* Credential fields to update. Only provided fields are changed — omitted fields
|
|
18162
|
+
* are preserved. Set a field to null to remove it.
|
|
18163
|
+
*/
|
|
18164
|
+
export interface Val {
|
|
18165
|
+
token?: string | null;
|
|
18166
|
+
|
|
18167
|
+
account_id?: string | null;
|
|
18168
|
+
|
|
18169
|
+
account_url?: string | null;
|
|
18170
|
+
|
|
18171
|
+
api_key?: string | null;
|
|
18172
|
+
|
|
18173
|
+
api_url?: string | null;
|
|
18174
|
+
|
|
18175
|
+
application_id?: string | null;
|
|
18176
|
+
|
|
18177
|
+
base_url?: string | null;
|
|
18178
|
+
|
|
18179
|
+
basic_encoded?: string | null;
|
|
18180
|
+
|
|
18181
|
+
bearer_token?: string | null;
|
|
18182
|
+
|
|
18183
|
+
borneo_dashboard_url?: string | null;
|
|
18184
|
+
|
|
18185
|
+
COMPANYDOMAIN?: string | null;
|
|
18186
|
+
|
|
18187
|
+
credentials_json?: string | null;
|
|
18188
|
+
|
|
18189
|
+
dc?: string | null;
|
|
18190
|
+
|
|
18191
|
+
domain?: string | null;
|
|
18192
|
+
|
|
18193
|
+
extension?: string | null;
|
|
18194
|
+
|
|
18195
|
+
form_api_base_url?: string | null;
|
|
18196
|
+
|
|
18197
|
+
generic_api_key?: string | null;
|
|
18198
|
+
|
|
18199
|
+
installation_id?: string | null;
|
|
18200
|
+
|
|
18201
|
+
instanceEndpoint?: string | null;
|
|
18202
|
+
|
|
18203
|
+
instanceName?: string | null;
|
|
18204
|
+
|
|
18205
|
+
password?: string | null;
|
|
18206
|
+
|
|
18207
|
+
private_key?: string | null;
|
|
18208
|
+
|
|
18209
|
+
proxy_password?: string | null;
|
|
18210
|
+
|
|
18211
|
+
proxy_username?: string | null;
|
|
18212
|
+
|
|
18213
|
+
region?: string | null;
|
|
18214
|
+
|
|
18215
|
+
server_location?: string | null;
|
|
18216
|
+
|
|
18217
|
+
shop?: string | null;
|
|
18218
|
+
|
|
18219
|
+
site_name?: string | null;
|
|
18220
|
+
|
|
18221
|
+
subdomain?: string | null;
|
|
18222
|
+
|
|
18223
|
+
username?: string | null;
|
|
18224
|
+
|
|
18225
|
+
version?: string | null;
|
|
18226
|
+
|
|
18227
|
+
your_server?: string | null;
|
|
18228
|
+
|
|
18229
|
+
'your-domain'?: string | null;
|
|
18230
|
+
|
|
18231
|
+
[k: string]: unknown;
|
|
18232
|
+
}
|
|
18233
|
+
}
|
|
18234
|
+
}
|
|
18235
|
+
}
|
|
18236
|
+
|
|
18049
18237
|
export interface ConnectedAccountRefreshParams {
|
|
18050
18238
|
/**
|
|
18051
18239
|
* Query param
|
|
@@ -18077,10 +18265,12 @@ export declare namespace ConnectedAccounts {
|
|
|
18077
18265
|
type ConnectedAccountRetrieveResponse as ConnectedAccountRetrieveResponse,
|
|
18078
18266
|
type ConnectedAccountListResponse as ConnectedAccountListResponse,
|
|
18079
18267
|
type ConnectedAccountDeleteResponse as ConnectedAccountDeleteResponse,
|
|
18268
|
+
type ConnectedAccountPatchResponse as ConnectedAccountPatchResponse,
|
|
18080
18269
|
type ConnectedAccountRefreshResponse as ConnectedAccountRefreshResponse,
|
|
18081
18270
|
type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse,
|
|
18082
18271
|
type ConnectedAccountCreateParams as ConnectedAccountCreateParams,
|
|
18083
18272
|
type ConnectedAccountListParams as ConnectedAccountListParams,
|
|
18273
|
+
type ConnectedAccountPatchParams as ConnectedAccountPatchParams,
|
|
18084
18274
|
type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams,
|
|
18085
18275
|
type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams,
|
|
18086
18276
|
};
|
package/src/resources/index.ts
CHANGED
|
@@ -26,10 +26,12 @@ export {
|
|
|
26
26
|
type ConnectedAccountRetrieveResponse,
|
|
27
27
|
type ConnectedAccountListResponse,
|
|
28
28
|
type ConnectedAccountDeleteResponse,
|
|
29
|
+
type ConnectedAccountPatchResponse,
|
|
29
30
|
type ConnectedAccountRefreshResponse,
|
|
30
31
|
type ConnectedAccountUpdateStatusResponse,
|
|
31
32
|
type ConnectedAccountCreateParams,
|
|
32
33
|
type ConnectedAccountListParams,
|
|
34
|
+
type ConnectedAccountPatchParams,
|
|
33
35
|
type ConnectedAccountRefreshParams,
|
|
34
36
|
type ConnectedAccountUpdateStatusParams,
|
|
35
37
|
} from './connected-accounts';
|
package/src/resources/mcp/mcp.ts
CHANGED
|
@@ -66,7 +66,7 @@ export class Session extends APIResource {
|
|
|
66
66
|
* ```ts
|
|
67
67
|
* const response = await client.toolRouter.session.execute(
|
|
68
68
|
* 'trs_LX9uJKBinWWr',
|
|
69
|
-
* { tool_slug: '
|
|
69
|
+
* { tool_slug: 'GITHUB_CREATE_AN_ISSUE' },
|
|
70
70
|
* );
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
@@ -304,6 +304,11 @@ export namespace SessionCreateResponse {
|
|
|
304
304
|
*/
|
|
305
305
|
callback_url?: string;
|
|
306
306
|
|
|
307
|
+
/**
|
|
308
|
+
* Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
|
|
309
|
+
*/
|
|
310
|
+
enable_connection_removal?: boolean;
|
|
311
|
+
|
|
307
312
|
/**
|
|
308
313
|
* Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
|
|
309
314
|
* Default false. May not work reliably with GPT models.
|
|
@@ -562,6 +567,11 @@ export namespace SessionRetrieveResponse {
|
|
|
562
567
|
*/
|
|
563
568
|
callback_url?: string;
|
|
564
569
|
|
|
570
|
+
/**
|
|
571
|
+
* Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS. Default true.
|
|
572
|
+
*/
|
|
573
|
+
enable_connection_removal?: boolean;
|
|
574
|
+
|
|
565
575
|
/**
|
|
566
576
|
* Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
|
|
567
577
|
* Default false. May not work reliably with GPT models.
|
|
@@ -1038,7 +1048,8 @@ export namespace SessionSearchResponse {
|
|
|
1038
1048
|
input_schema?: { [key: string]: unknown };
|
|
1039
1049
|
|
|
1040
1050
|
/**
|
|
1041
|
-
* Output/response schema for the tool
|
|
1051
|
+
* Output/response schema for the tool. Only included when include_output_schemas
|
|
1052
|
+
* is true.
|
|
1042
1053
|
*/
|
|
1043
1054
|
output_schema?: { [key: string]: unknown };
|
|
1044
1055
|
|
|
@@ -1059,14 +1070,14 @@ export namespace SessionSearchResponse {
|
|
|
1059
1070
|
args: SchemaRef.Args;
|
|
1060
1071
|
|
|
1061
1072
|
/**
|
|
1062
|
-
*
|
|
1073
|
+
* Tool to call
|
|
1063
1074
|
*/
|
|
1064
|
-
|
|
1075
|
+
tool: 'COMPOSIO_GET_TOOL_SCHEMAS';
|
|
1065
1076
|
|
|
1066
1077
|
/**
|
|
1067
|
-
*
|
|
1078
|
+
* Instruction message for the LLM
|
|
1068
1079
|
*/
|
|
1069
|
-
|
|
1080
|
+
message?: string;
|
|
1070
1081
|
}
|
|
1071
1082
|
|
|
1072
1083
|
export namespace SchemaRef {
|
|
@@ -1103,6 +1114,18 @@ export namespace SessionSearchResponse {
|
|
|
1103
1114
|
*/
|
|
1104
1115
|
toolkit: string;
|
|
1105
1116
|
|
|
1117
|
+
/**
|
|
1118
|
+
* When "required", the agent must specify which account to use. Present only when
|
|
1119
|
+
* multiple accounts exist.
|
|
1120
|
+
*/
|
|
1121
|
+
account_selection?: 'required';
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* List of connected accounts for this toolkit. Present when multi-account is
|
|
1125
|
+
* enabled.
|
|
1126
|
+
*/
|
|
1127
|
+
accounts?: Array<ToolkitConnectionStatus.Account>;
|
|
1128
|
+
|
|
1106
1129
|
/**
|
|
1107
1130
|
* Connection details including auth config and connected account IDs. Only present
|
|
1108
1131
|
* when has_active_connection is true.
|
|
@@ -1114,6 +1137,40 @@ export namespace SessionSearchResponse {
|
|
|
1114
1137
|
*/
|
|
1115
1138
|
current_user_info?: { [key: string]: unknown };
|
|
1116
1139
|
}
|
|
1140
|
+
|
|
1141
|
+
export namespace ToolkitConnectionStatus {
|
|
1142
|
+
export interface Account {
|
|
1143
|
+
/**
|
|
1144
|
+
* Unique identifier for this account
|
|
1145
|
+
*/
|
|
1146
|
+
id: string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* ISO 8601 timestamp of when the account was connected
|
|
1150
|
+
*/
|
|
1151
|
+
created_at: string;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Whether this is the default account for the toolkit
|
|
1155
|
+
*/
|
|
1156
|
+
is_default: boolean;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Connection status (e.g., "active")
|
|
1160
|
+
*/
|
|
1161
|
+
status: string;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* User-assigned alias for this account
|
|
1165
|
+
*/
|
|
1166
|
+
alias?: string;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Information about the connected user (email, name, etc.)
|
|
1170
|
+
*/
|
|
1171
|
+
user_info?: { [key: string]: unknown };
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1117
1174
|
}
|
|
1118
1175
|
|
|
1119
1176
|
export interface SessionToolkitsResponse {
|
|
@@ -1282,6 +1339,12 @@ export namespace SessionToolsResponse {
|
|
|
1282
1339
|
*/
|
|
1283
1340
|
output_parameters: { [key: string]: unknown };
|
|
1284
1341
|
|
|
1342
|
+
/**
|
|
1343
|
+
* Structured scope requirements for the tool. Null means the tool is legacy and
|
|
1344
|
+
* only exposes flat scopes.
|
|
1345
|
+
*/
|
|
1346
|
+
scope_requirements: Item.ScopeRequirements | null;
|
|
1347
|
+
|
|
1285
1348
|
/**
|
|
1286
1349
|
* List of scopes associated with the tool
|
|
1287
1350
|
*/
|
|
@@ -1344,6 +1407,20 @@ export namespace SessionToolsResponse {
|
|
|
1344
1407
|
}
|
|
1345
1408
|
}
|
|
1346
1409
|
|
|
1410
|
+
/**
|
|
1411
|
+
* Structured scope requirements for the tool. Null means the tool is legacy and
|
|
1412
|
+
* only exposes flat scopes.
|
|
1413
|
+
*/
|
|
1414
|
+
export interface ScopeRequirements {
|
|
1415
|
+
all_of: Array<string | ScopeRequirements.AnyOf>;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
export namespace ScopeRequirements {
|
|
1419
|
+
export interface AnyOf {
|
|
1420
|
+
any_of: Array<string>;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1347
1424
|
export interface Toolkit {
|
|
1348
1425
|
/**
|
|
1349
1426
|
* URL to the toolkit logo image
|
|
@@ -1566,6 +1643,12 @@ export namespace SessionCreateParams {
|
|
|
1566
1643
|
*/
|
|
1567
1644
|
enable?: boolean | null;
|
|
1568
1645
|
|
|
1646
|
+
/**
|
|
1647
|
+
* Enable the "remove" action in COMPOSIO_MANAGE_CONNECTIONS to allow deleting
|
|
1648
|
+
* connected accounts. Default true.
|
|
1649
|
+
*/
|
|
1650
|
+
enable_connection_removal?: boolean | null;
|
|
1651
|
+
|
|
1569
1652
|
/**
|
|
1570
1653
|
* When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
|
|
1571
1654
|
* poll connection status after sharing auth URLs. Default is false (disabled). May
|
|
@@ -1673,6 +1756,14 @@ export interface SessionExecuteParams {
|
|
|
1673
1756
|
*/
|
|
1674
1757
|
tool_slug: string;
|
|
1675
1758
|
|
|
1759
|
+
/**
|
|
1760
|
+
* Account identifier to specify which connected account to use. Use the account ID
|
|
1761
|
+
* (e.g. "coup_hurricane_dal_analytical") or an alias. When omitted with a single
|
|
1762
|
+
* account, the default is used. When omitted with multiple accounts, an error
|
|
1763
|
+
* lists available accounts.
|
|
1764
|
+
*/
|
|
1765
|
+
account?: string;
|
|
1766
|
+
|
|
1676
1767
|
/**
|
|
1677
1768
|
* The arguments required by the tool
|
|
1678
1769
|
*/
|
|
@@ -2614,9 +2705,9 @@ export interface SessionToolkitsParams {
|
|
|
2614
2705
|
is_connected?: boolean | null;
|
|
2615
2706
|
|
|
2616
2707
|
/**
|
|
2617
|
-
* Number of items per page, max allowed is
|
|
2708
|
+
* Number of items per page, max allowed is 50
|
|
2618
2709
|
*/
|
|
2619
|
-
limit?: number
|
|
2710
|
+
limit?: number;
|
|
2620
2711
|
|
|
2621
2712
|
/**
|
|
2622
2713
|
* Search query to filter toolkits by name, slug, or description
|
|
@@ -45,11 +45,11 @@ export class ToolRouter extends APIResource {
|
|
|
45
45
|
* toolkits: [
|
|
46
46
|
* {
|
|
47
47
|
* toolkit: 'gmail',
|
|
48
|
-
* auth_config_id: '
|
|
48
|
+
* auth_config_id: 'ac_1a2b3c4d5e6f',
|
|
49
49
|
* },
|
|
50
50
|
* {
|
|
51
51
|
* toolkit: 'slack',
|
|
52
|
-
* auth_config_id: '
|
|
52
|
+
* auth_config_id: 'ac_7g8h9i0j1k2l',
|
|
53
53
|
* },
|
|
54
54
|
* { toolkit: 'github' },
|
|
55
55
|
* ],
|
package/src/resources/tools.ts
CHANGED
|
@@ -163,6 +163,12 @@ export interface ToolRetrieveResponse {
|
|
|
163
163
|
*/
|
|
164
164
|
output_parameters: { [key: string]: unknown };
|
|
165
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Structured scope requirements for the tool. Null means the tool is legacy and
|
|
168
|
+
* only exposes flat scopes.
|
|
169
|
+
*/
|
|
170
|
+
scope_requirements: ToolRetrieveResponse.ScopeRequirements | null;
|
|
171
|
+
|
|
166
172
|
/**
|
|
167
173
|
* List of scopes associated with the tool
|
|
168
174
|
*/
|
|
@@ -225,6 +231,20 @@ export namespace ToolRetrieveResponse {
|
|
|
225
231
|
}
|
|
226
232
|
}
|
|
227
233
|
|
|
234
|
+
/**
|
|
235
|
+
* Structured scope requirements for the tool. Null means the tool is legacy and
|
|
236
|
+
* only exposes flat scopes.
|
|
237
|
+
*/
|
|
238
|
+
export interface ScopeRequirements {
|
|
239
|
+
all_of: Array<string | ScopeRequirements.AnyOf>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export namespace ScopeRequirements {
|
|
243
|
+
export interface AnyOf {
|
|
244
|
+
any_of: Array<string>;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
228
248
|
export interface Toolkit {
|
|
229
249
|
/**
|
|
230
250
|
* URL to the toolkit logo image
|
|
@@ -294,6 +314,12 @@ export namespace ToolListResponse {
|
|
|
294
314
|
*/
|
|
295
315
|
output_parameters: { [key: string]: unknown };
|
|
296
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Structured scope requirements for the tool. Null means the tool is legacy and
|
|
319
|
+
* only exposes flat scopes.
|
|
320
|
+
*/
|
|
321
|
+
scope_requirements: Item.ScopeRequirements | null;
|
|
322
|
+
|
|
297
323
|
/**
|
|
298
324
|
* List of scopes associated with the tool
|
|
299
325
|
*/
|
|
@@ -356,6 +382,20 @@ export namespace ToolListResponse {
|
|
|
356
382
|
}
|
|
357
383
|
}
|
|
358
384
|
|
|
385
|
+
/**
|
|
386
|
+
* Structured scope requirements for the tool. Null means the tool is legacy and
|
|
387
|
+
* only exposes flat scopes.
|
|
388
|
+
*/
|
|
389
|
+
export interface ScopeRequirements {
|
|
390
|
+
all_of: Array<string | ScopeRequirements.AnyOf>;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export namespace ScopeRequirements {
|
|
394
|
+
export interface AnyOf {
|
|
395
|
+
any_of: Array<string>;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
359
399
|
export interface Toolkit {
|
|
360
400
|
/**
|
|
361
401
|
* URL to the toolkit logo image
|
|
@@ -101,7 +101,8 @@ export namespace TriggerInstanceListActiveResponse {
|
|
|
101
101
|
disabledAt: string | null;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* @deprecated DEPRECATED: This field exposes internal state and will be removed in
|
|
105
|
+
* a future version.
|
|
105
106
|
*/
|
|
106
107
|
state: { [key: string]: unknown };
|
|
107
108
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.63'; // 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.63";
|
|
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.63";
|
|
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.63'; // 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.63'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|