@composio/client 0.1.0-alpha.74 → 0.1.0-alpha.76
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 +21 -0
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +34 -60
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +34 -60
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/connected-accounts.d.mts +20 -105
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +20 -105
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +4 -6
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +4 -6
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts +4 -5
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +4 -5
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +4 -5
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +4 -5
- package/resources/files.mjs.map +1 -1
- package/resources/link.d.mts +4 -4
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +4 -4
- package/resources/link.d.ts.map +1 -1
- package/resources/logs/triggers.d.mts +3 -5
- package/resources/logs/triggers.d.mts.map +1 -1
- package/resources/logs/triggers.d.ts +3 -5
- package/resources/logs/triggers.d.ts.map +1 -1
- package/resources/logs/triggers.js +3 -5
- package/resources/logs/triggers.js.map +1 -1
- package/resources/logs/triggers.mjs +3 -5
- package/resources/logs/triggers.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +2 -2
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +2 -2
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/toolkits.d.mts +54 -4
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +54 -4
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +4 -4
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +4 -4
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +10 -14
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +10 -14
- package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +3 -2
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +3 -2
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/src/resources/auth-configs.ts +34 -66
- package/src/resources/connected-accounts.ts +36 -134
- package/src/resources/files.ts +4 -5
- package/src/resources/link.ts +8 -8
- package/src/resources/logs/triggers.ts +3 -5
- package/src/resources/tool-router/session/session.ts +4 -4
- package/src/resources/toolkits.ts +63 -8
- package/src/resources/tools.ts +8 -8
- package/src/resources/trigger-instances/trigger-instances.ts +10 -16
- 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
|
@@ -129,16 +129,14 @@ export class ConnectedAccounts extends APIResource {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
+
* DEPRECATED: Manual refresh of a connected account is deprecated. Composio
|
|
133
|
+
* automatically refreshes credentials in the background as they approach expiry,
|
|
134
|
+
* so this endpoint is no longer required and may be removed in a future release.
|
|
132
135
|
* Initiates a new authentication flow for a connected account when credentials
|
|
133
136
|
* have expired or become invalid. This may generate a new authentication URL for
|
|
134
137
|
* OAuth flows or refresh tokens for other auth schemes.
|
|
135
138
|
*
|
|
136
|
-
* @
|
|
137
|
-
* ```ts
|
|
138
|
-
* const response = await client.connectedAccounts.refresh(
|
|
139
|
-
* 'ca_1a2b3c4d5e6f',
|
|
140
|
-
* );
|
|
141
|
-
* ```
|
|
139
|
+
* @deprecated
|
|
142
140
|
*/
|
|
143
141
|
refresh(
|
|
144
142
|
nanoid: string,
|
|
@@ -216,12 +214,6 @@ export interface ConnectedAccountCreateResponse {
|
|
|
216
214
|
*/
|
|
217
215
|
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
218
216
|
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated DEPRECATED: This field will be removed in a future version. Please
|
|
221
|
-
* use id and auth_config.id instead.
|
|
222
|
-
*/
|
|
223
|
-
deprecated?: ConnectedAccountCreateResponse.Deprecated;
|
|
224
|
-
|
|
225
217
|
/**
|
|
226
218
|
* Experimental features - not stable, may be modified or removed in future
|
|
227
219
|
* versions.
|
|
@@ -4405,10 +4397,6 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4405
4397
|
export interface UnionMember2 {
|
|
4406
4398
|
access_token: string;
|
|
4407
4399
|
|
|
4408
|
-
client_id: string;
|
|
4409
|
-
|
|
4410
|
-
client_secret: string;
|
|
4411
|
-
|
|
4412
4400
|
status: 'ACTIVE';
|
|
4413
4401
|
|
|
4414
4402
|
account_id?: string;
|
|
@@ -4421,6 +4409,10 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4421
4409
|
|
|
4422
4410
|
borneo_dashboard_url?: string;
|
|
4423
4411
|
|
|
4412
|
+
client_id?: string;
|
|
4413
|
+
|
|
4414
|
+
client_secret?: string;
|
|
4415
|
+
|
|
4424
4416
|
COMPANYDOMAIN?: string;
|
|
4425
4417
|
|
|
4426
4418
|
dc?: string;
|
|
@@ -4469,10 +4461,6 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4469
4461
|
export interface UnionMember3 {
|
|
4470
4462
|
access_token: string;
|
|
4471
4463
|
|
|
4472
|
-
client_id: string;
|
|
4473
|
-
|
|
4474
|
-
client_secret: string;
|
|
4475
|
-
|
|
4476
4464
|
status: 'INACTIVE';
|
|
4477
4465
|
|
|
4478
4466
|
account_id?: string;
|
|
@@ -4485,6 +4473,10 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4485
4473
|
|
|
4486
4474
|
borneo_dashboard_url?: string;
|
|
4487
4475
|
|
|
4476
|
+
client_id?: string;
|
|
4477
|
+
|
|
4478
|
+
client_secret?: string;
|
|
4479
|
+
|
|
4488
4480
|
COMPANYDOMAIN?: string;
|
|
4489
4481
|
|
|
4490
4482
|
dc?: string;
|
|
@@ -4637,22 +4629,6 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4637
4629
|
}
|
|
4638
4630
|
}
|
|
4639
4631
|
|
|
4640
|
-
/**
|
|
4641
|
-
* @deprecated DEPRECATED: This field will be removed in a future version. Please
|
|
4642
|
-
* use id and auth_config.id instead.
|
|
4643
|
-
*/
|
|
4644
|
-
export interface Deprecated {
|
|
4645
|
-
/**
|
|
4646
|
-
* The uuid of the auth config
|
|
4647
|
-
*/
|
|
4648
|
-
authConfigUuid: string;
|
|
4649
|
-
|
|
4650
|
-
/**
|
|
4651
|
-
* The uuid of the connected account
|
|
4652
|
-
*/
|
|
4653
|
-
uuid: string;
|
|
4654
|
-
}
|
|
4655
|
-
|
|
4656
4632
|
/**
|
|
4657
4633
|
* Experimental features - not stable, may be modified or removed in future
|
|
4658
4634
|
* versions.
|
|
@@ -4776,11 +4752,6 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4776
4752
|
*/
|
|
4777
4753
|
word_id: string | null;
|
|
4778
4754
|
|
|
4779
|
-
/**
|
|
4780
|
-
* @deprecated
|
|
4781
|
-
*/
|
|
4782
|
-
deprecated?: ConnectedAccountRetrieveResponse.Deprecated;
|
|
4783
|
-
|
|
4784
4755
|
/**
|
|
4785
4756
|
* Experimental features - not stable, may be modified or removed in future
|
|
4786
4757
|
* versions.
|
|
@@ -4841,23 +4812,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
4841
4812
|
* Whether the auth config is disabled
|
|
4842
4813
|
*/
|
|
4843
4814
|
is_disabled: boolean;
|
|
4844
|
-
|
|
4845
|
-
/**
|
|
4846
|
-
* @deprecated
|
|
4847
|
-
*/
|
|
4848
|
-
deprecated?: AuthConfig.Deprecated;
|
|
4849
|
-
}
|
|
4850
|
-
|
|
4851
|
-
export namespace AuthConfig {
|
|
4852
|
-
/**
|
|
4853
|
-
* @deprecated
|
|
4854
|
-
*/
|
|
4855
|
-
export interface Deprecated {
|
|
4856
|
-
/**
|
|
4857
|
-
* The uuid of the auth config
|
|
4858
|
-
*/
|
|
4859
|
-
uuid: string;
|
|
4860
|
-
}
|
|
4861
4815
|
}
|
|
4862
4816
|
|
|
4863
4817
|
export interface UnionMember0 {
|
|
@@ -9035,10 +8989,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9035
8989
|
export interface UnionMember2 {
|
|
9036
8990
|
access_token: string;
|
|
9037
8991
|
|
|
9038
|
-
client_id: string;
|
|
9039
|
-
|
|
9040
|
-
client_secret: string;
|
|
9041
|
-
|
|
9042
8992
|
status: 'ACTIVE';
|
|
9043
8993
|
|
|
9044
8994
|
account_id?: string;
|
|
@@ -9051,6 +9001,10 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9051
9001
|
|
|
9052
9002
|
borneo_dashboard_url?: string;
|
|
9053
9003
|
|
|
9004
|
+
client_id?: string;
|
|
9005
|
+
|
|
9006
|
+
client_secret?: string;
|
|
9007
|
+
|
|
9054
9008
|
COMPANYDOMAIN?: string;
|
|
9055
9009
|
|
|
9056
9010
|
dc?: string;
|
|
@@ -9099,10 +9053,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9099
9053
|
export interface UnionMember3 {
|
|
9100
9054
|
access_token: string;
|
|
9101
9055
|
|
|
9102
|
-
client_id: string;
|
|
9103
|
-
|
|
9104
|
-
client_secret: string;
|
|
9105
|
-
|
|
9106
9056
|
status: 'INACTIVE';
|
|
9107
9057
|
|
|
9108
9058
|
account_id?: string;
|
|
@@ -9115,6 +9065,10 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9115
9065
|
|
|
9116
9066
|
borneo_dashboard_url?: string;
|
|
9117
9067
|
|
|
9068
|
+
client_id?: string;
|
|
9069
|
+
|
|
9070
|
+
client_secret?: string;
|
|
9071
|
+
|
|
9118
9072
|
COMPANYDOMAIN?: string;
|
|
9119
9073
|
|
|
9120
9074
|
dc?: string;
|
|
@@ -9274,21 +9228,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9274
9228
|
slug: string;
|
|
9275
9229
|
}
|
|
9276
9230
|
|
|
9277
|
-
/**
|
|
9278
|
-
* @deprecated
|
|
9279
|
-
*/
|
|
9280
|
-
export interface Deprecated {
|
|
9281
|
-
/**
|
|
9282
|
-
* The labels of the connection
|
|
9283
|
-
*/
|
|
9284
|
-
labels: Array<string>;
|
|
9285
|
-
|
|
9286
|
-
/**
|
|
9287
|
-
* The uuid of the connection
|
|
9288
|
-
*/
|
|
9289
|
-
uuid: string;
|
|
9290
|
-
}
|
|
9291
|
-
|
|
9292
9231
|
/**
|
|
9293
9232
|
* Experimental features - not stable, may be modified or removed in future
|
|
9294
9233
|
* versions.
|
|
@@ -9419,11 +9358,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
9419
9358
|
*/
|
|
9420
9359
|
word_id: string | null;
|
|
9421
9360
|
|
|
9422
|
-
/**
|
|
9423
|
-
* @deprecated
|
|
9424
|
-
*/
|
|
9425
|
-
deprecated?: Item.Deprecated;
|
|
9426
|
-
|
|
9427
9361
|
/**
|
|
9428
9362
|
* Experimental features - not stable, may be modified or removed in future
|
|
9429
9363
|
* versions.
|
|
@@ -9471,23 +9405,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
9471
9405
|
* Whether the auth config is disabled
|
|
9472
9406
|
*/
|
|
9473
9407
|
is_disabled: boolean;
|
|
9474
|
-
|
|
9475
|
-
/**
|
|
9476
|
-
* @deprecated
|
|
9477
|
-
*/
|
|
9478
|
-
deprecated?: AuthConfig.Deprecated;
|
|
9479
|
-
}
|
|
9480
|
-
|
|
9481
|
-
export namespace AuthConfig {
|
|
9482
|
-
/**
|
|
9483
|
-
* @deprecated
|
|
9484
|
-
*/
|
|
9485
|
-
export interface Deprecated {
|
|
9486
|
-
/**
|
|
9487
|
-
* The uuid of the auth config
|
|
9488
|
-
*/
|
|
9489
|
-
uuid: string;
|
|
9490
|
-
}
|
|
9491
9408
|
}
|
|
9492
9409
|
|
|
9493
9410
|
export interface UnionMember0 {
|
|
@@ -13665,10 +13582,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
13665
13582
|
export interface UnionMember2 {
|
|
13666
13583
|
access_token: string;
|
|
13667
13584
|
|
|
13668
|
-
client_id: string;
|
|
13669
|
-
|
|
13670
|
-
client_secret: string;
|
|
13671
|
-
|
|
13672
13585
|
status: 'ACTIVE';
|
|
13673
13586
|
|
|
13674
13587
|
account_id?: string;
|
|
@@ -13681,6 +13594,10 @@ export namespace ConnectedAccountListResponse {
|
|
|
13681
13594
|
|
|
13682
13595
|
borneo_dashboard_url?: string;
|
|
13683
13596
|
|
|
13597
|
+
client_id?: string;
|
|
13598
|
+
|
|
13599
|
+
client_secret?: string;
|
|
13600
|
+
|
|
13684
13601
|
COMPANYDOMAIN?: string;
|
|
13685
13602
|
|
|
13686
13603
|
dc?: string;
|
|
@@ -13729,10 +13646,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
13729
13646
|
export interface UnionMember3 {
|
|
13730
13647
|
access_token: string;
|
|
13731
13648
|
|
|
13732
|
-
client_id: string;
|
|
13733
|
-
|
|
13734
|
-
client_secret: string;
|
|
13735
|
-
|
|
13736
13649
|
status: 'INACTIVE';
|
|
13737
13650
|
|
|
13738
13651
|
account_id?: string;
|
|
@@ -13745,6 +13658,10 @@ export namespace ConnectedAccountListResponse {
|
|
|
13745
13658
|
|
|
13746
13659
|
borneo_dashboard_url?: string;
|
|
13747
13660
|
|
|
13661
|
+
client_id?: string;
|
|
13662
|
+
|
|
13663
|
+
client_secret?: string;
|
|
13664
|
+
|
|
13748
13665
|
COMPANYDOMAIN?: string;
|
|
13749
13666
|
|
|
13750
13667
|
dc?: string;
|
|
@@ -13904,21 +13821,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
13904
13821
|
slug: string;
|
|
13905
13822
|
}
|
|
13906
13823
|
|
|
13907
|
-
/**
|
|
13908
|
-
* @deprecated
|
|
13909
|
-
*/
|
|
13910
|
-
export interface Deprecated {
|
|
13911
|
-
/**
|
|
13912
|
-
* The labels of the connection
|
|
13913
|
-
*/
|
|
13914
|
-
labels: Array<string>;
|
|
13915
|
-
|
|
13916
|
-
/**
|
|
13917
|
-
* The uuid of the connection
|
|
13918
|
-
*/
|
|
13919
|
-
uuid: string;
|
|
13920
|
-
}
|
|
13921
|
-
|
|
13922
13824
|
/**
|
|
13923
13825
|
* Experimental features - not stable, may be modified or removed in future
|
|
13924
13826
|
* versions.
|
|
@@ -18327,10 +18229,6 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18327
18229
|
export interface UnionMember2 {
|
|
18328
18230
|
access_token: string;
|
|
18329
18231
|
|
|
18330
|
-
client_id: string;
|
|
18331
|
-
|
|
18332
|
-
client_secret: string;
|
|
18333
|
-
|
|
18334
18232
|
status: 'ACTIVE';
|
|
18335
18233
|
|
|
18336
18234
|
account_id?: string;
|
|
@@ -18343,6 +18241,10 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18343
18241
|
|
|
18344
18242
|
borneo_dashboard_url?: string;
|
|
18345
18243
|
|
|
18244
|
+
client_id?: string;
|
|
18245
|
+
|
|
18246
|
+
client_secret?: string;
|
|
18247
|
+
|
|
18346
18248
|
COMPANYDOMAIN?: string;
|
|
18347
18249
|
|
|
18348
18250
|
dc?: string;
|
|
@@ -18391,10 +18293,6 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18391
18293
|
export interface UnionMember3 {
|
|
18392
18294
|
access_token: string;
|
|
18393
18295
|
|
|
18394
|
-
client_id: string;
|
|
18395
|
-
|
|
18396
|
-
client_secret: string;
|
|
18397
|
-
|
|
18398
18296
|
status: 'INACTIVE';
|
|
18399
18297
|
|
|
18400
18298
|
account_id?: string;
|
|
@@ -18407,6 +18305,10 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18407
18305
|
|
|
18408
18306
|
borneo_dashboard_url?: string;
|
|
18409
18307
|
|
|
18308
|
+
client_id?: string;
|
|
18309
|
+
|
|
18310
|
+
client_secret?: string;
|
|
18311
|
+
|
|
18410
18312
|
COMPANYDOMAIN?: string;
|
|
18411
18313
|
|
|
18412
18314
|
dc?: string;
|
package/src/resources/files.ts
CHANGED
|
@@ -9,13 +9,12 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
*/
|
|
10
10
|
export class Files extends APIResource {
|
|
11
11
|
/**
|
|
12
|
+
* DEPRECATED: This endpoint is deprecated and will be removed in a future release.
|
|
12
13
|
* Retrieves a list of files associated with the authenticated project. Results can
|
|
13
|
-
* be filtered by toolkit and tool slugs.
|
|
14
|
+
* be filtered by toolkit and tool slugs. Responses carry a `Deprecation` header
|
|
15
|
+
* (RFC 9745) for client-side detection.
|
|
14
16
|
*
|
|
15
|
-
* @
|
|
16
|
-
* ```ts
|
|
17
|
-
* const files = await client.files.list();
|
|
18
|
-
* ```
|
|
17
|
+
* @deprecated
|
|
19
18
|
*/
|
|
20
19
|
list(
|
|
21
20
|
query: FileListParams | null | undefined = {},
|
package/src/resources/link.ts
CHANGED
|
@@ -4039,10 +4039,6 @@ export namespace LinkCreateParams {
|
|
|
4039
4039
|
export interface UnionMember71 {
|
|
4040
4040
|
access_token: string;
|
|
4041
4041
|
|
|
4042
|
-
client_id: string;
|
|
4043
|
-
|
|
4044
|
-
client_secret: string;
|
|
4045
|
-
|
|
4046
4042
|
account_id?: string;
|
|
4047
4043
|
|
|
4048
4044
|
account_url?: string;
|
|
@@ -4053,6 +4049,10 @@ export namespace LinkCreateParams {
|
|
|
4053
4049
|
|
|
4054
4050
|
borneo_dashboard_url?: string;
|
|
4055
4051
|
|
|
4052
|
+
client_id?: string;
|
|
4053
|
+
|
|
4054
|
+
client_secret?: string;
|
|
4055
|
+
|
|
4056
4056
|
COMPANYDOMAIN?: string;
|
|
4057
4057
|
|
|
4058
4058
|
dc?: string;
|
|
@@ -4101,10 +4101,6 @@ export namespace LinkCreateParams {
|
|
|
4101
4101
|
export interface UnionMember72 {
|
|
4102
4102
|
access_token: string;
|
|
4103
4103
|
|
|
4104
|
-
client_id: string;
|
|
4105
|
-
|
|
4106
|
-
client_secret: string;
|
|
4107
|
-
|
|
4108
4104
|
account_id?: string;
|
|
4109
4105
|
|
|
4110
4106
|
account_url?: string;
|
|
@@ -4115,6 +4111,10 @@ export namespace LinkCreateParams {
|
|
|
4115
4111
|
|
|
4116
4112
|
borneo_dashboard_url?: string;
|
|
4117
4113
|
|
|
4114
|
+
client_id?: string;
|
|
4115
|
+
|
|
4116
|
+
client_secret?: string;
|
|
4117
|
+
|
|
4118
4118
|
COMPANYDOMAIN?: string;
|
|
4119
4119
|
|
|
4120
4120
|
dc?: string;
|
|
@@ -10,12 +10,10 @@ import { path } from '../../internal/utils/path';
|
|
|
10
10
|
*/
|
|
11
11
|
export class Triggers extends APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* DEPRECATED: This endpoint has declining traffic and will be removed in a future
|
|
14
|
+
* version.
|
|
14
15
|
*
|
|
15
|
-
* @
|
|
16
|
-
* ```ts
|
|
17
|
-
* const trigger = await client.logs.triggers.retrieve('id');
|
|
18
|
-
* ```
|
|
16
|
+
* @deprecated
|
|
19
17
|
*/
|
|
20
18
|
retrieve(id: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse> {
|
|
21
19
|
return this._client.get(path`/api/v3.1/internal/trigger/log/${id}`, options);
|
|
@@ -4770,10 +4770,6 @@ export namespace SessionProxyExecuteParams {
|
|
|
4770
4770
|
export interface Val {
|
|
4771
4771
|
access_token: string;
|
|
4772
4772
|
|
|
4773
|
-
client_id: string;
|
|
4774
|
-
|
|
4775
|
-
client_secret: string;
|
|
4776
|
-
|
|
4777
4773
|
account_id?: string;
|
|
4778
4774
|
|
|
4779
4775
|
account_url?: string;
|
|
@@ -4784,6 +4780,10 @@ export namespace SessionProxyExecuteParams {
|
|
|
4784
4780
|
|
|
4785
4781
|
borneo_dashboard_url?: string;
|
|
4786
4782
|
|
|
4783
|
+
client_id?: string;
|
|
4784
|
+
|
|
4785
|
+
client_secret?: string;
|
|
4786
|
+
|
|
4787
4787
|
COMPANYDOMAIN?: string;
|
|
4788
4788
|
|
|
4789
4789
|
dc?: string;
|
|
@@ -51,6 +51,11 @@ export class Toolkits extends APIResource {
|
|
|
51
51
|
* Detailed information about a single toolkit
|
|
52
52
|
*/
|
|
53
53
|
export interface ToolkitRetrieveResponse {
|
|
54
|
+
/**
|
|
55
|
+
* Managed-auth-only metadata, including the supported OAuth scope ceiling.
|
|
56
|
+
*/
|
|
57
|
+
composio_managed_auth: Array<ToolkitRetrieveResponse.ComposioManagedAuth>;
|
|
58
|
+
|
|
54
59
|
deprecated: ToolkitRetrieveResponse.Deprecated;
|
|
55
60
|
|
|
56
61
|
/**
|
|
@@ -81,6 +86,12 @@ export interface ToolkitRetrieveResponse {
|
|
|
81
86
|
*/
|
|
82
87
|
slug: string;
|
|
83
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Toolkit provenance: "native" for Composio-managed toolkits, "custom" for a
|
|
91
|
+
* project-registered custom (MCP) toolkit
|
|
92
|
+
*/
|
|
93
|
+
type: 'native' | 'custom';
|
|
94
|
+
|
|
84
95
|
/**
|
|
85
96
|
* Complete authentication configuration details for each supported auth method
|
|
86
97
|
*/
|
|
@@ -114,6 +125,47 @@ export interface ToolkitRetrieveResponse {
|
|
|
114
125
|
}
|
|
115
126
|
|
|
116
127
|
export namespace ToolkitRetrieveResponse {
|
|
128
|
+
export interface ComposioManagedAuth {
|
|
129
|
+
/**
|
|
130
|
+
* Authentication mode for the Composio-managed auth config
|
|
131
|
+
*/
|
|
132
|
+
mode: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* OAuth scopes available in the Composio-managed auth config for this auth mode.
|
|
136
|
+
*/
|
|
137
|
+
scopes: ComposioManagedAuth.Scopes;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* OAuth user scopes available in the Composio-managed auth config for this auth
|
|
141
|
+
* mode. Only present for Slack toolkits.
|
|
142
|
+
*/
|
|
143
|
+
user_scopes?: ComposioManagedAuth.UserScopes;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace ComposioManagedAuth {
|
|
147
|
+
/**
|
|
148
|
+
* OAuth scopes available in the Composio-managed auth config for this auth mode.
|
|
149
|
+
*/
|
|
150
|
+
export interface Scopes {
|
|
151
|
+
/**
|
|
152
|
+
* Available OAuth scopes
|
|
153
|
+
*/
|
|
154
|
+
available: Array<string>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* OAuth user scopes available in the Composio-managed auth config for this auth
|
|
159
|
+
* mode. Only present for Slack toolkits.
|
|
160
|
+
*/
|
|
161
|
+
export interface UserScopes {
|
|
162
|
+
/**
|
|
163
|
+
* Available OAuth user scopes
|
|
164
|
+
*/
|
|
165
|
+
available: Array<string>;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
117
169
|
export interface Deprecated {
|
|
118
170
|
rawProxyInfoByAuthSchemes: Array<{ [key: string]: unknown }>;
|
|
119
171
|
|
|
@@ -268,8 +320,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
268
320
|
|
|
269
321
|
type: string;
|
|
270
322
|
|
|
271
|
-
advanced?: boolean;
|
|
272
|
-
|
|
273
323
|
default?: string | null;
|
|
274
324
|
|
|
275
325
|
is_secret?: boolean;
|
|
@@ -288,8 +338,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
288
338
|
|
|
289
339
|
type: string;
|
|
290
340
|
|
|
291
|
-
advanced?: boolean;
|
|
292
|
-
|
|
293
341
|
default?: string | null;
|
|
294
342
|
|
|
295
343
|
is_secret?: boolean;
|
|
@@ -320,8 +368,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
320
368
|
|
|
321
369
|
type: string;
|
|
322
370
|
|
|
323
|
-
advanced?: boolean;
|
|
324
|
-
|
|
325
371
|
default?: string | null;
|
|
326
372
|
|
|
327
373
|
is_secret?: boolean;
|
|
@@ -340,8 +386,6 @@ export namespace ToolkitRetrieveResponse {
|
|
|
340
386
|
|
|
341
387
|
type: string;
|
|
342
388
|
|
|
343
|
-
advanced?: boolean;
|
|
344
|
-
|
|
345
389
|
default?: string | null;
|
|
346
390
|
|
|
347
391
|
is_secret?: boolean;
|
|
@@ -417,6 +461,12 @@ export namespace ToolkitListResponse {
|
|
|
417
461
|
*/
|
|
418
462
|
slug: string;
|
|
419
463
|
|
|
464
|
+
/**
|
|
465
|
+
* Toolkit provenance: "native" for Composio-managed toolkits, "custom" for a
|
|
466
|
+
* project-registered custom (MCP) toolkit
|
|
467
|
+
*/
|
|
468
|
+
type: 'native' | 'custom';
|
|
469
|
+
|
|
420
470
|
/**
|
|
421
471
|
* URL to a guide page with authentication setup instructions for this toolkit
|
|
422
472
|
*/
|
|
@@ -586,6 +636,11 @@ export interface ToolkitListParams {
|
|
|
586
636
|
* Sort order for returned toolkits
|
|
587
637
|
*/
|
|
588
638
|
sort_by?: 'usage' | 'alphabetically';
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Filter toolkits by provenance (alias over managed_by)
|
|
642
|
+
*/
|
|
643
|
+
type?: 'native' | 'custom' | 'all';
|
|
589
644
|
}
|
|
590
645
|
|
|
591
646
|
export declare namespace Toolkits {
|
package/src/resources/tools.ts
CHANGED
|
@@ -1413,10 +1413,6 @@ export namespace ToolExecuteParams {
|
|
|
1413
1413
|
export interface Val {
|
|
1414
1414
|
access_token: string;
|
|
1415
1415
|
|
|
1416
|
-
client_id: string;
|
|
1417
|
-
|
|
1418
|
-
client_secret: string;
|
|
1419
|
-
|
|
1420
1416
|
account_id?: string;
|
|
1421
1417
|
|
|
1422
1418
|
account_url?: string;
|
|
@@ -1427,6 +1423,10 @@ export namespace ToolExecuteParams {
|
|
|
1427
1423
|
|
|
1428
1424
|
borneo_dashboard_url?: string;
|
|
1429
1425
|
|
|
1426
|
+
client_id?: string;
|
|
1427
|
+
|
|
1428
|
+
client_secret?: string;
|
|
1429
|
+
|
|
1430
1430
|
COMPANYDOMAIN?: string;
|
|
1431
1431
|
|
|
1432
1432
|
dc?: string;
|
|
@@ -2284,10 +2284,6 @@ export namespace ToolProxyParams {
|
|
|
2284
2284
|
export interface Val {
|
|
2285
2285
|
access_token: string;
|
|
2286
2286
|
|
|
2287
|
-
client_id: string;
|
|
2288
|
-
|
|
2289
|
-
client_secret: string;
|
|
2290
|
-
|
|
2291
2287
|
account_id?: string;
|
|
2292
2288
|
|
|
2293
2289
|
account_url?: string;
|
|
@@ -2298,6 +2294,10 @@ export namespace ToolProxyParams {
|
|
|
2298
2294
|
|
|
2299
2295
|
borneo_dashboard_url?: string;
|
|
2300
2296
|
|
|
2297
|
+
client_id?: string;
|
|
2298
|
+
|
|
2299
|
+
client_secret?: string;
|
|
2300
|
+
|
|
2301
2301
|
COMPANYDOMAIN?: string;
|
|
2302
2302
|
|
|
2303
2303
|
dc?: string;
|
|
@@ -35,8 +35,9 @@ export class TriggerInstances extends APIResource {
|
|
|
35
35
|
* Creates a new trigger instance or updates an existing one with the same
|
|
36
36
|
* configuration. Triggers listen for events from external services (webhooks or
|
|
37
37
|
* polling) and can invoke your workflows. If a matching trigger already exists and
|
|
38
|
-
* is disabled, it will be re-enabled.
|
|
39
|
-
*
|
|
38
|
+
* is disabled, it will be re-enabled. Provide either a connected_account_id to pin
|
|
39
|
+
* a specific user connection, or a user_id to auto-resolve the first active
|
|
40
|
+
* connection for that user and the trigger's toolkit.
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
43
|
* ```ts
|
|
@@ -183,17 +184,6 @@ export interface TriggerInstanceUpsertResponse {
|
|
|
183
184
|
* ID of the updated trigger
|
|
184
185
|
*/
|
|
185
186
|
trigger_id: string;
|
|
186
|
-
|
|
187
|
-
deprecated?: TriggerInstanceUpsertResponse.Deprecated;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export namespace TriggerInstanceUpsertResponse {
|
|
191
|
-
export interface Deprecated {
|
|
192
|
-
/**
|
|
193
|
-
* ID of the updated trigger
|
|
194
|
-
*/
|
|
195
|
-
uuid: string;
|
|
196
|
-
}
|
|
197
187
|
}
|
|
198
188
|
|
|
199
189
|
export interface TriggerInstanceListActiveParams {
|
|
@@ -286,7 +276,8 @@ export interface TriggerInstanceListActiveParams {
|
|
|
286
276
|
|
|
287
277
|
export interface TriggerInstanceUpsertParams {
|
|
288
278
|
/**
|
|
289
|
-
* Connected account nanoid
|
|
279
|
+
* Connected account nanoid. Optional when user_id is provided — the first active
|
|
280
|
+
* connection for that user and the trigger's toolkit is auto-resolved.
|
|
290
281
|
*/
|
|
291
282
|
connected_account_id?: string;
|
|
292
283
|
|
|
@@ -314,8 +305,11 @@ export interface TriggerInstanceUpsertParams {
|
|
|
314
305
|
triggerConfig?: { [key: string]: unknown };
|
|
315
306
|
|
|
316
307
|
/**
|
|
317
|
-
* The user id (entity id) that owns the
|
|
318
|
-
*
|
|
308
|
+
* The user id (entity id) that owns the connection. When connected_account_id is
|
|
309
|
+
* omitted, the first active connection for this user and the trigger's toolkit is
|
|
310
|
+
* auto-resolved (same as tool execution). When connected_account_id is also
|
|
311
|
+
* provided and the project has 2FA enabled, user_id is validated against the owner
|
|
312
|
+
* of that connection.
|
|
319
313
|
*/
|
|
320
314
|
user_id?: string;
|
|
321
315
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.76'; // 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.76";
|
|
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.76";
|
|
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.76'; // 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.76'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|