@composio/client 0.1.0-alpha.73 → 0.1.0-alpha.75
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 +31 -0
- package/client.d.mts +8 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -14
- package/client.d.ts.map +1 -1
- package/client.js +9 -7
- package/client.js.map +1 -1
- package/client.mjs +11 -9
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +61 -12
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +61 -12
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +9 -3
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +9 -3
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +60 -62
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +60 -62
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +11 -12
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +11 -12
- 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/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -2
- package/resources/index.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/migration.d.mts +0 -31
- package/resources/migration.d.mts.map +1 -1
- package/resources/migration.d.ts +0 -31
- package/resources/migration.d.ts.map +1 -1
- package/resources/migration.js +0 -11
- package/resources/migration.js.map +1 -1
- package/resources/migration.mjs +0 -11
- package/resources/migration.mjs.map +1 -1
- package/resources/project/config.d.mts +0 -67
- package/resources/project/config.d.mts.map +1 -1
- package/resources/project/config.d.ts +0 -67
- package/resources/project/config.d.ts.map +1 -1
- package/resources/project/config.js +0 -24
- package/resources/project/config.js.map +1 -1
- package/resources/project/config.mjs +0 -24
- package/resources/project/config.mjs.map +1 -1
- package/resources/project/index.d.mts +1 -1
- package/resources/project/index.d.mts.map +1 -1
- package/resources/project/index.d.ts +1 -1
- package/resources/project/index.d.ts.map +1 -1
- package/resources/project/index.js.map +1 -1
- package/resources/project/index.mjs +1 -1
- package/resources/project/index.mjs.map +1 -1
- package/resources/project/project.d.mts +2 -2
- package/resources/project/project.d.mts.map +1 -1
- package/resources/project/project.d.ts +2 -2
- package/resources/project/project.d.ts.map +1 -1
- package/resources/project/project.js.map +1 -1
- package/resources/project/project.mjs.map +1 -1
- package/resources/tool-router/index.d.mts +1 -1
- package/resources/tool-router/index.d.mts.map +1 -1
- package/resources/tool-router/index.d.ts +1 -1
- package/resources/tool-router/index.d.ts.map +1 -1
- package/resources/tool-router/index.js.map +1 -1
- package/resources/tool-router/index.mjs +1 -1
- package/resources/tool-router/index.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +3 -3
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +3 -3
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +0 -84
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +0 -84
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js +0 -32
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs +0 -32
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts +40 -4
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +40 -4
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +6 -5
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +6 -5
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +2 -1
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +2 -1
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +6 -1
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +6 -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 +17 -27
- package/src/resources/auth-configs.ts +71 -12
- package/src/resources/connected-accounts.ts +91 -99
- package/src/resources/files.ts +4 -5
- package/src/resources/index.ts +4 -10
- package/src/resources/link.ts +8 -8
- package/src/resources/migration.ts +1 -45
- package/src/resources/project/config.ts +1 -106
- package/src/resources/project/index.ts +1 -6
- package/src/resources/project/project.ts +2 -7
- package/src/resources/tool-router/index.ts +1 -5
- package/src/resources/tool-router/session/session.ts +5 -7
- package/src/resources/tool-router/tool-router.ts +0 -103
- package/src/resources/toolkits.ts +46 -8
- package/src/resources/tools.ts +10 -9
- package/src/resources/trigger-instances/trigger-instances.ts +8 -2
- 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
|
@@ -79,7 +79,8 @@ export class ConnectedAccounts extends APIResource {
|
|
|
79
79
|
/**
|
|
80
80
|
* Soft-deletes a connected account by marking it as deleted in the database. This
|
|
81
81
|
* prevents the account from being used for API calls but preserves the record for
|
|
82
|
-
* audit purposes.
|
|
82
|
+
* audit purposes. Pass `?revoke_on_delete=true` to also revoke the account's
|
|
83
|
+
* upstream credentials via a background job.
|
|
83
84
|
*
|
|
84
85
|
* @example
|
|
85
86
|
* ```ts
|
|
@@ -87,20 +88,22 @@ export class ConnectedAccounts extends APIResource {
|
|
|
87
88
|
* await client.connectedAccounts.delete('ca_1a2b3c4d5e6f');
|
|
88
89
|
* ```
|
|
89
90
|
*/
|
|
90
|
-
delete(
|
|
91
|
-
|
|
91
|
+
delete(
|
|
92
|
+
nanoid: string,
|
|
93
|
+
params: ConnectedAccountDeleteParams | null | undefined = {},
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): APIPromise<ConnectedAccountDeleteResponse> {
|
|
96
|
+
const { revoke_on_delete } = params ?? {};
|
|
97
|
+
return this._client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, {
|
|
98
|
+
query: { revoke_on_delete },
|
|
99
|
+
...options,
|
|
100
|
+
});
|
|
92
101
|
}
|
|
93
102
|
|
|
94
103
|
/**
|
|
95
|
-
* Update a connected account. Supports updating alias
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* credential field to null to remove it. Alias must be unique within the same
|
|
99
|
-
* project, entity, and toolkit scope. Toggling `experimental.account_type` between
|
|
100
|
-
* PRIVATE and SHARED reuses the stored credentials — no re-auth is required.
|
|
101
|
-
* Demoting SHARED → PRIVATE atomically clears the stored ACL; supplying
|
|
102
|
-
* `acl_config_for_shared` in the same call is rejected as
|
|
103
|
-
* `acl_config_for_shared is only valid on SHARED connections`.
|
|
104
|
+
* Update a connected account. Supports updating the alias and/or credentials. Only
|
|
105
|
+
* specified fields will be updated. Set a credential field to null to remove it.
|
|
106
|
+
* Alias must be unique within the same project, entity, and toolkit scope.
|
|
104
107
|
*
|
|
105
108
|
* @example
|
|
106
109
|
* ```ts
|
|
@@ -198,12 +201,6 @@ export interface ConnectedAccountCreateResponse {
|
|
|
198
201
|
| ConnectedAccountCreateResponse.UnionMember12
|
|
199
202
|
| ConnectedAccountCreateResponse.UnionMember13;
|
|
200
203
|
|
|
201
|
-
/**
|
|
202
|
-
* @deprecated DEPRECATED: This field will be removed in a future version. Please
|
|
203
|
-
* use id and auth_config.id instead.
|
|
204
|
-
*/
|
|
205
|
-
deprecated: ConnectedAccountCreateResponse.Deprecated;
|
|
206
|
-
|
|
207
204
|
/**
|
|
208
205
|
* @deprecated DEPRECATED: This field will be removed in a future version
|
|
209
206
|
*/
|
|
@@ -219,6 +216,12 @@ export interface ConnectedAccountCreateResponse {
|
|
|
219
216
|
*/
|
|
220
217
|
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
221
218
|
|
|
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
|
+
|
|
222
225
|
/**
|
|
223
226
|
* Experimental features - not stable, may be modified or removed in future
|
|
224
227
|
* versions.
|
|
@@ -4402,10 +4405,6 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4402
4405
|
export interface UnionMember2 {
|
|
4403
4406
|
access_token: string;
|
|
4404
4407
|
|
|
4405
|
-
client_id: string;
|
|
4406
|
-
|
|
4407
|
-
client_secret: string;
|
|
4408
|
-
|
|
4409
4408
|
status: 'ACTIVE';
|
|
4410
4409
|
|
|
4411
4410
|
account_id?: string;
|
|
@@ -4418,6 +4417,10 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4418
4417
|
|
|
4419
4418
|
borneo_dashboard_url?: string;
|
|
4420
4419
|
|
|
4420
|
+
client_id?: string;
|
|
4421
|
+
|
|
4422
|
+
client_secret?: string;
|
|
4423
|
+
|
|
4421
4424
|
COMPANYDOMAIN?: string;
|
|
4422
4425
|
|
|
4423
4426
|
dc?: string;
|
|
@@ -4466,10 +4469,6 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4466
4469
|
export interface UnionMember3 {
|
|
4467
4470
|
access_token: string;
|
|
4468
4471
|
|
|
4469
|
-
client_id: string;
|
|
4470
|
-
|
|
4471
|
-
client_secret: string;
|
|
4472
|
-
|
|
4473
4472
|
status: 'INACTIVE';
|
|
4474
4473
|
|
|
4475
4474
|
account_id?: string;
|
|
@@ -4482,6 +4481,10 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
4482
4481
|
|
|
4483
4482
|
borneo_dashboard_url?: string;
|
|
4484
4483
|
|
|
4484
|
+
client_id?: string;
|
|
4485
|
+
|
|
4486
|
+
client_secret?: string;
|
|
4487
|
+
|
|
4485
4488
|
COMPANYDOMAIN?: string;
|
|
4486
4489
|
|
|
4487
4490
|
dc?: string;
|
|
@@ -4784,6 +4787,19 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4784
4787
|
*/
|
|
4785
4788
|
experimental?: ConnectedAccountRetrieveResponse.Experimental;
|
|
4786
4789
|
|
|
4790
|
+
/**
|
|
4791
|
+
* OAuth scopes requested when this connection was most recently initiated (create
|
|
4792
|
+
* or refresh). Absent for connections created before scope snapshots were captured
|
|
4793
|
+
* and for non-OAuth auth schemes.
|
|
4794
|
+
*/
|
|
4795
|
+
requested_scopes?: Array<string>;
|
|
4796
|
+
|
|
4797
|
+
/**
|
|
4798
|
+
* OAuth user-token scopes requested at the most recent initiation. Only meaningful
|
|
4799
|
+
* for Slackbot auth configs (user-token scopes); absent otherwise.
|
|
4800
|
+
*/
|
|
4801
|
+
requested_user_scopes?: Array<string>;
|
|
4802
|
+
|
|
4787
4803
|
/**
|
|
4788
4804
|
* The endpoint to make test request for verification
|
|
4789
4805
|
*/
|
|
@@ -9019,10 +9035,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9019
9035
|
export interface UnionMember2 {
|
|
9020
9036
|
access_token: string;
|
|
9021
9037
|
|
|
9022
|
-
client_id: string;
|
|
9023
|
-
|
|
9024
|
-
client_secret: string;
|
|
9025
|
-
|
|
9026
9038
|
status: 'ACTIVE';
|
|
9027
9039
|
|
|
9028
9040
|
account_id?: string;
|
|
@@ -9035,6 +9047,10 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9035
9047
|
|
|
9036
9048
|
borneo_dashboard_url?: string;
|
|
9037
9049
|
|
|
9050
|
+
client_id?: string;
|
|
9051
|
+
|
|
9052
|
+
client_secret?: string;
|
|
9053
|
+
|
|
9038
9054
|
COMPANYDOMAIN?: string;
|
|
9039
9055
|
|
|
9040
9056
|
dc?: string;
|
|
@@ -9083,10 +9099,6 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9083
9099
|
export interface UnionMember3 {
|
|
9084
9100
|
access_token: string;
|
|
9085
9101
|
|
|
9086
|
-
client_id: string;
|
|
9087
|
-
|
|
9088
|
-
client_secret: string;
|
|
9089
|
-
|
|
9090
9102
|
status: 'INACTIVE';
|
|
9091
9103
|
|
|
9092
9104
|
account_id?: string;
|
|
@@ -9099,6 +9111,10 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
9099
9111
|
|
|
9100
9112
|
borneo_dashboard_url?: string;
|
|
9101
9113
|
|
|
9114
|
+
client_id?: string;
|
|
9115
|
+
|
|
9116
|
+
client_secret?: string;
|
|
9117
|
+
|
|
9102
9118
|
COMPANYDOMAIN?: string;
|
|
9103
9119
|
|
|
9104
9120
|
dc?: string;
|
|
@@ -13649,10 +13665,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
13649
13665
|
export interface UnionMember2 {
|
|
13650
13666
|
access_token: string;
|
|
13651
13667
|
|
|
13652
|
-
client_id: string;
|
|
13653
|
-
|
|
13654
|
-
client_secret: string;
|
|
13655
|
-
|
|
13656
13668
|
status: 'ACTIVE';
|
|
13657
13669
|
|
|
13658
13670
|
account_id?: string;
|
|
@@ -13665,6 +13677,10 @@ export namespace ConnectedAccountListResponse {
|
|
|
13665
13677
|
|
|
13666
13678
|
borneo_dashboard_url?: string;
|
|
13667
13679
|
|
|
13680
|
+
client_id?: string;
|
|
13681
|
+
|
|
13682
|
+
client_secret?: string;
|
|
13683
|
+
|
|
13668
13684
|
COMPANYDOMAIN?: string;
|
|
13669
13685
|
|
|
13670
13686
|
dc?: string;
|
|
@@ -13713,10 +13729,6 @@ export namespace ConnectedAccountListResponse {
|
|
|
13713
13729
|
export interface UnionMember3 {
|
|
13714
13730
|
access_token: string;
|
|
13715
13731
|
|
|
13716
|
-
client_id: string;
|
|
13717
|
-
|
|
13718
|
-
client_secret: string;
|
|
13719
|
-
|
|
13720
13732
|
status: 'INACTIVE';
|
|
13721
13733
|
|
|
13722
13734
|
account_id?: string;
|
|
@@ -13729,6 +13741,10 @@ export namespace ConnectedAccountListResponse {
|
|
|
13729
13741
|
|
|
13730
13742
|
borneo_dashboard_url?: string;
|
|
13731
13743
|
|
|
13744
|
+
client_id?: string;
|
|
13745
|
+
|
|
13746
|
+
client_secret?: string;
|
|
13747
|
+
|
|
13732
13748
|
COMPANYDOMAIN?: string;
|
|
13733
13749
|
|
|
13734
13750
|
dc?: string;
|
|
@@ -13948,6 +13964,14 @@ export interface ConnectedAccountDeleteResponse {
|
|
|
13948
13964
|
* Indicates whether the connected account was successfully deleted
|
|
13949
13965
|
*/
|
|
13950
13966
|
success: boolean;
|
|
13967
|
+
|
|
13968
|
+
/**
|
|
13969
|
+
* Identifier of the background revoke job started for this delete. Present only
|
|
13970
|
+
* when `revoke_on_delete=true`. Track the job and its per-connection results from
|
|
13971
|
+
* the Composio dashboard — a programmatic endpoint to poll this job is not yet
|
|
13972
|
+
* generally available.
|
|
13973
|
+
*/
|
|
13974
|
+
revoke_job_id?: string;
|
|
13951
13975
|
}
|
|
13952
13976
|
|
|
13953
13977
|
export interface ConnectedAccountPatchResponse {
|
|
@@ -18303,10 +18327,6 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18303
18327
|
export interface UnionMember2 {
|
|
18304
18328
|
access_token: string;
|
|
18305
18329
|
|
|
18306
|
-
client_id: string;
|
|
18307
|
-
|
|
18308
|
-
client_secret: string;
|
|
18309
|
-
|
|
18310
18330
|
status: 'ACTIVE';
|
|
18311
18331
|
|
|
18312
18332
|
account_id?: string;
|
|
@@ -18319,6 +18339,10 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18319
18339
|
|
|
18320
18340
|
borneo_dashboard_url?: string;
|
|
18321
18341
|
|
|
18342
|
+
client_id?: string;
|
|
18343
|
+
|
|
18344
|
+
client_secret?: string;
|
|
18345
|
+
|
|
18322
18346
|
COMPANYDOMAIN?: string;
|
|
18323
18347
|
|
|
18324
18348
|
dc?: string;
|
|
@@ -18367,10 +18391,6 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18367
18391
|
export interface UnionMember3 {
|
|
18368
18392
|
access_token: string;
|
|
18369
18393
|
|
|
18370
|
-
client_id: string;
|
|
18371
|
-
|
|
18372
|
-
client_secret: string;
|
|
18373
|
-
|
|
18374
18394
|
status: 'INACTIVE';
|
|
18375
18395
|
|
|
18376
18396
|
account_id?: string;
|
|
@@ -18383,6 +18403,10 @@ export namespace ConnectedAccountCreateParams {
|
|
|
18383
18403
|
|
|
18384
18404
|
borneo_dashboard_url?: string;
|
|
18385
18405
|
|
|
18406
|
+
client_id?: string;
|
|
18407
|
+
|
|
18408
|
+
client_secret?: string;
|
|
18409
|
+
|
|
18386
18410
|
COMPANYDOMAIN?: string;
|
|
18387
18411
|
|
|
18388
18412
|
dc?: string;
|
|
@@ -18593,6 +18617,16 @@ export interface ConnectedAccountListParams {
|
|
|
18593
18617
|
user_ids?: Array<string> | null;
|
|
18594
18618
|
}
|
|
18595
18619
|
|
|
18620
|
+
export interface ConnectedAccountDeleteParams {
|
|
18621
|
+
/**
|
|
18622
|
+
* When `true`, the delete also starts a background job that revokes the upstream
|
|
18623
|
+
* credentials of every connected account in scope, and the response carries a
|
|
18624
|
+
* `revoke_job_id`. Defaults to `false`. Revocation is irreversible — recovering a
|
|
18625
|
+
* deleted entity does not restore working credentials.
|
|
18626
|
+
*/
|
|
18627
|
+
revoke_on_delete?: boolean | null;
|
|
18628
|
+
}
|
|
18629
|
+
|
|
18596
18630
|
export interface ConnectedAccountPatchParams {
|
|
18597
18631
|
/**
|
|
18598
18632
|
* A human-readable alias for this connected account. Pass an empty string to clear
|
|
@@ -18643,71 +18677,35 @@ export namespace ConnectedAccountPatchParams {
|
|
|
18643
18677
|
export interface Val {
|
|
18644
18678
|
token?: string | null;
|
|
18645
18679
|
|
|
18646
|
-
account_id?: string | null;
|
|
18647
|
-
|
|
18648
|
-
account_url?: string | null;
|
|
18649
|
-
|
|
18650
18680
|
api_key?: string | null;
|
|
18651
18681
|
|
|
18652
|
-
|
|
18682
|
+
api_key_prefix?: string | null;
|
|
18653
18683
|
|
|
18654
18684
|
application_id?: string | null;
|
|
18655
18685
|
|
|
18656
|
-
base_url?: string | null;
|
|
18657
|
-
|
|
18658
18686
|
basic_encoded?: string | null;
|
|
18659
18687
|
|
|
18660
18688
|
bearer_token?: string | null;
|
|
18661
18689
|
|
|
18662
|
-
borneo_dashboard_url?: string | null;
|
|
18663
|
-
|
|
18664
|
-
COMPANYDOMAIN?: string | null;
|
|
18665
|
-
|
|
18666
18690
|
credentials_json?: string | null;
|
|
18667
18691
|
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
domain?: string | null;
|
|
18692
|
+
generic_api_key?: string | null;
|
|
18671
18693
|
|
|
18672
|
-
|
|
18694
|
+
generic_id?: string | null;
|
|
18673
18695
|
|
|
18674
|
-
|
|
18696
|
+
generic_secret?: string | null;
|
|
18675
18697
|
|
|
18676
|
-
|
|
18698
|
+
generic_token?: string | null;
|
|
18677
18699
|
|
|
18678
18700
|
installation_id?: string | null;
|
|
18679
18701
|
|
|
18680
|
-
instanceEndpoint?: string | null;
|
|
18681
|
-
|
|
18682
|
-
instanceName?: string | null;
|
|
18683
|
-
|
|
18684
18702
|
password?: string | null;
|
|
18685
18703
|
|
|
18686
18704
|
private_key?: string | null;
|
|
18687
18705
|
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
proxy_username?: string | null;
|
|
18691
|
-
|
|
18692
|
-
region?: string | null;
|
|
18693
|
-
|
|
18694
|
-
server_location?: string | null;
|
|
18695
|
-
|
|
18696
|
-
shop?: string | null;
|
|
18697
|
-
|
|
18698
|
-
site_name?: string | null;
|
|
18699
|
-
|
|
18700
|
-
subdomain?: string | null;
|
|
18706
|
+
user_agent?: string | null;
|
|
18701
18707
|
|
|
18702
18708
|
username?: string | null;
|
|
18703
|
-
|
|
18704
|
-
version?: string | null;
|
|
18705
|
-
|
|
18706
|
-
your_server?: string | null;
|
|
18707
|
-
|
|
18708
|
-
'your-domain'?: string | null;
|
|
18709
|
-
|
|
18710
|
-
[k: string]: unknown;
|
|
18711
18709
|
}
|
|
18712
18710
|
}
|
|
18713
18711
|
}
|
|
@@ -18717,13 +18715,6 @@ export namespace ConnectedAccountPatchParams {
|
|
|
18717
18715
|
* versions.
|
|
18718
18716
|
*/
|
|
18719
18717
|
export interface Experimental {
|
|
18720
|
-
/**
|
|
18721
|
-
* Mutate the sharing model. PRIVATE → SHARED promotes the existing connection
|
|
18722
|
-
* without re-auth; SHARED → PRIVATE revokes all non-creator access and clears the
|
|
18723
|
-
* stored ACL atomically. Omit to leave unchanged.
|
|
18724
|
-
*/
|
|
18725
|
-
account_type?: 'PRIVATE' | 'SHARED';
|
|
18726
|
-
|
|
18727
18718
|
/**
|
|
18728
18719
|
* Access control for SHARED connections. Resolution rule (only fires when caller
|
|
18729
18720
|
* != creator): user in not_allowed_user_ids → DENY; allow_all_users=true → ALLOW;
|
|
@@ -18796,6 +18787,7 @@ export declare namespace ConnectedAccounts {
|
|
|
18796
18787
|
type ConnectedAccountUpdateStatusResponse as ConnectedAccountUpdateStatusResponse,
|
|
18797
18788
|
type ConnectedAccountCreateParams as ConnectedAccountCreateParams,
|
|
18798
18789
|
type ConnectedAccountListParams as ConnectedAccountListParams,
|
|
18790
|
+
type ConnectedAccountDeleteParams as ConnectedAccountDeleteParams,
|
|
18799
18791
|
type ConnectedAccountPatchParams as ConnectedAccountPatchParams,
|
|
18800
18792
|
type ConnectedAccountRefreshParams as ConnectedAccountRefreshParams,
|
|
18801
18793
|
type ConnectedAccountUpdateStatusParams as ConnectedAccountUpdateStatusParams,
|
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/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export {
|
|
|
11
11
|
type AuthConfigCreateParams,
|
|
12
12
|
type AuthConfigUpdateParams,
|
|
13
13
|
type AuthConfigListParams,
|
|
14
|
+
type AuthConfigDeleteParams,
|
|
14
15
|
type AuthConfigUpdateStatusParams,
|
|
15
16
|
} from './auth-configs';
|
|
16
17
|
export {
|
|
@@ -31,6 +32,7 @@ export {
|
|
|
31
32
|
type ConnectedAccountUpdateStatusResponse,
|
|
32
33
|
type ConnectedAccountCreateParams,
|
|
33
34
|
type ConnectedAccountListParams,
|
|
35
|
+
type ConnectedAccountDeleteParams,
|
|
34
36
|
type ConnectedAccountPatchParams,
|
|
35
37
|
type ConnectedAccountRefreshParams,
|
|
36
38
|
type ConnectedAccountUpdateStatusParams,
|
|
@@ -57,17 +59,9 @@ export {
|
|
|
57
59
|
type McpListParams,
|
|
58
60
|
type McpRetrieveAppParams,
|
|
59
61
|
} from './mcp/mcp';
|
|
60
|
-
export {
|
|
61
|
-
Migration,
|
|
62
|
-
type MigrationRetrieveNanoidResponse,
|
|
63
|
-
type MigrationRetrieveNanoidParams,
|
|
64
|
-
} from './migration';
|
|
62
|
+
export { Migration } from './migration';
|
|
65
63
|
export { Project } from './project/project';
|
|
66
|
-
export {
|
|
67
|
-
ToolRouter,
|
|
68
|
-
type ToolRouterCreateSessionResponse,
|
|
69
|
-
type ToolRouterCreateSessionParams,
|
|
70
|
-
} from './tool-router/tool-router';
|
|
64
|
+
export { ToolRouter } from './tool-router/tool-router';
|
|
71
65
|
export {
|
|
72
66
|
Toolkits,
|
|
73
67
|
type ToolkitRetrieveResponse,
|
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;
|
|
@@ -1,49 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
* Endpoints to help with migration from v1 to v3
|
|
9
|
-
*/
|
|
10
|
-
export class Migration extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Convert a legacy UUID to its corresponding NanoId for migration purposes. This
|
|
13
|
-
* endpoint facilitates the transition from UUID-based identifiers to the more
|
|
14
|
-
* compact NanoId format used in the v3 API.
|
|
15
|
-
*/
|
|
16
|
-
retrieveNanoid(
|
|
17
|
-
query: MigrationRetrieveNanoidParams,
|
|
18
|
-
options?: RequestOptions,
|
|
19
|
-
): APIPromise<MigrationRetrieveNanoidResponse> {
|
|
20
|
-
return this._client.get('/api/v3.1/migration/get-nanoid', { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface MigrationRetrieveNanoidResponse {
|
|
25
|
-
/**
|
|
26
|
-
* The NanoId corresponding to the provided UUID. This is the new identifier that
|
|
27
|
-
* should be used in place of the legacy UUID.
|
|
28
|
-
*/
|
|
29
|
-
nanoid: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface MigrationRetrieveNanoidParams {
|
|
33
|
-
/**
|
|
34
|
-
* The type of resource that the UUID belongs to
|
|
35
|
-
*/
|
|
36
|
-
type: 'CONNECTED_ACCOUNT' | 'AUTH_CONFIG' | 'TRIGGER_INSTANCE';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* The legacy UUID that needs to be converted to a NanoId
|
|
40
|
-
*/
|
|
41
|
-
uuid: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare namespace Migration {
|
|
45
|
-
export {
|
|
46
|
-
type MigrationRetrieveNanoidResponse as MigrationRetrieveNanoidResponse,
|
|
47
|
-
type MigrationRetrieveNanoidParams as MigrationRetrieveNanoidParams,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
5
|
+
export class Migration extends APIResource {}
|
|
@@ -1,110 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
6
4
|
|
|
7
|
-
export class Config extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves the current project configuration including 2FA settings.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const config = await client.project.config.retrieve();
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
retrieve(options?: RequestOptions): APIPromise<ConfigRetrieveResponse> {
|
|
17
|
-
return this._client.get('/api/v3.1/org/project/config', options);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Updates the project configuration settings.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const config = await client.project.config.update({
|
|
26
|
-
* is_2FA_enabled: true,
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
update(
|
|
31
|
-
body: ConfigUpdateParams | null | undefined = {},
|
|
32
|
-
options?: RequestOptions,
|
|
33
|
-
): APIPromise<ConfigUpdateResponse> {
|
|
34
|
-
return this._client.patch('/api/v3.1/org/project/config', { body, ...options });
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ConfigRetrieveResponse {
|
|
39
|
-
is_2FA_enabled: boolean;
|
|
40
|
-
|
|
41
|
-
log_visibility_setting: 'show_all' | 'dont_store_data';
|
|
42
|
-
|
|
43
|
-
mask_secret_keys_in_connected_account: boolean;
|
|
44
|
-
|
|
45
|
-
display_name?: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Whether to enable composio link for managed authentication. This key will be
|
|
49
|
-
* deprecated in the future. Please don't use this key.
|
|
50
|
-
*/
|
|
51
|
-
is_composio_link_enabled_for_managed_auth?: boolean;
|
|
52
|
-
|
|
53
|
-
logo_url?: string;
|
|
54
|
-
|
|
55
|
-
require_mcp_api_key?: boolean;
|
|
56
|
-
|
|
57
|
-
signed_url_file_expiry_in_seconds?: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface ConfigUpdateResponse {
|
|
61
|
-
is_2FA_enabled: boolean;
|
|
62
|
-
|
|
63
|
-
log_visibility_setting: 'show_all' | 'dont_store_data';
|
|
64
|
-
|
|
65
|
-
mask_secret_keys_in_connected_account: boolean;
|
|
66
|
-
|
|
67
|
-
display_name?: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Whether to enable composio link for managed authentication. This key will be
|
|
71
|
-
* deprecated in the future. Please don't use this key.
|
|
72
|
-
*/
|
|
73
|
-
is_composio_link_enabled_for_managed_auth?: boolean;
|
|
74
|
-
|
|
75
|
-
logo_url?: string;
|
|
76
|
-
|
|
77
|
-
require_mcp_api_key?: boolean;
|
|
78
|
-
|
|
79
|
-
signed_url_file_expiry_in_seconds?: number;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface ConfigUpdateParams {
|
|
83
|
-
display_name?: string;
|
|
84
|
-
|
|
85
|
-
is_2FA_enabled?: boolean;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Whether to enable composio link for managed authentication. This key will be
|
|
89
|
-
* deprecated in the future. Please don't use this key.
|
|
90
|
-
*/
|
|
91
|
-
is_composio_link_enabled_for_managed_auth?: boolean;
|
|
92
|
-
|
|
93
|
-
log_visibility_setting?: 'show_all' | 'dont_store_data';
|
|
94
|
-
|
|
95
|
-
logo_url?: string;
|
|
96
|
-
|
|
97
|
-
mask_secret_keys_in_connected_account?: boolean;
|
|
98
|
-
|
|
99
|
-
require_mcp_api_key?: boolean;
|
|
100
|
-
|
|
101
|
-
signed_url_file_expiry_in_seconds?: number;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export declare namespace Config {
|
|
105
|
-
export {
|
|
106
|
-
type ConfigRetrieveResponse as ConfigRetrieveResponse,
|
|
107
|
-
type ConfigUpdateResponse as ConfigUpdateResponse,
|
|
108
|
-
type ConfigUpdateParams as ConfigUpdateParams,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
5
|
+
export class Config extends APIResource {}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Config,
|
|
5
|
-
type ConfigRetrieveResponse,
|
|
6
|
-
type ConfigUpdateResponse,
|
|
7
|
-
type ConfigUpdateParams,
|
|
8
|
-
} from './config';
|
|
3
|
+
export { Config } from './config';
|
|
9
4
|
export { Project } from './project';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ConfigAPI from './config';
|
|
5
|
-
import { Config
|
|
5
|
+
import { Config } from './config';
|
|
6
6
|
|
|
7
7
|
export class Project extends APIResource {
|
|
8
8
|
config: ConfigAPI.Config = new ConfigAPI.Config(this._client);
|
|
@@ -11,10 +11,5 @@ export class Project extends APIResource {
|
|
|
11
11
|
Project.Config = Config;
|
|
12
12
|
|
|
13
13
|
export declare namespace Project {
|
|
14
|
-
export {
|
|
15
|
-
Config as Config,
|
|
16
|
-
type ConfigRetrieveResponse as ConfigRetrieveResponse,
|
|
17
|
-
type ConfigUpdateResponse as ConfigUpdateResponse,
|
|
18
|
-
type ConfigUpdateParams as ConfigUpdateParams,
|
|
19
|
-
};
|
|
14
|
+
export { Config as Config };
|
|
20
15
|
}
|
|
@@ -26,8 +26,4 @@ export {
|
|
|
26
26
|
type SessionToolkitsParams,
|
|
27
27
|
type SessionToolsParams,
|
|
28
28
|
} from './session/index';
|
|
29
|
-
export {
|
|
30
|
-
ToolRouter,
|
|
31
|
-
type ToolRouterCreateSessionResponse,
|
|
32
|
-
type ToolRouterCreateSessionParams,
|
|
33
|
-
} from './tool-router';
|
|
29
|
+
export { ToolRouter } from './tool-router';
|