@composio/client 0.1.0-alpha.67 → 0.1.0-alpha.69
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 +24 -0
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.js +6 -6
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +6 -6
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/cli/cli.js +2 -2
- package/resources/cli/cli.js.map +1 -1
- package/resources/cli/cli.mjs +2 -2
- package/resources/cli/cli.mjs.map +1 -1
- package/resources/cli/realtime.js +2 -2
- package/resources/cli/realtime.js.map +1 -1
- package/resources/cli/realtime.mjs +2 -2
- package/resources/cli/realtime.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +164 -11
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +164 -11
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +16 -7
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +16 -7
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.js +2 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -2
- package/resources/files.mjs.map +1 -1
- package/resources/link.d.mts +78 -44
- package/resources/link.d.mts.map +1 -1
- package/resources/link.d.ts +78 -44
- package/resources/link.d.ts.map +1 -1
- package/resources/link.js +1 -1
- package/resources/link.js.map +1 -1
- package/resources/link.mjs +1 -1
- package/resources/link.mjs.map +1 -1
- package/resources/logs/tools.js +2 -2
- package/resources/logs/tools.js.map +1 -1
- package/resources/logs/tools.mjs +2 -2
- package/resources/logs/tools.mjs.map +1 -1
- package/resources/logs/triggers.js +2 -2
- package/resources/logs/triggers.js.map +1 -1
- package/resources/logs/triggers.mjs +2 -2
- package/resources/logs/triggers.mjs.map +1 -1
- package/resources/mcp/custom.js +1 -1
- package/resources/mcp/custom.js.map +1 -1
- package/resources/mcp/custom.mjs +1 -1
- package/resources/mcp/custom.mjs.map +1 -1
- package/resources/mcp/generate.js +1 -1
- package/resources/mcp/generate.js.map +1 -1
- package/resources/mcp/generate.mjs +1 -1
- package/resources/mcp/generate.mjs.map +1 -1
- package/resources/mcp/mcp.js +6 -6
- package/resources/mcp/mcp.js.map +1 -1
- package/resources/mcp/mcp.mjs +6 -6
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/migration.js +1 -1
- package/resources/migration.js.map +1 -1
- package/resources/migration.mjs +1 -1
- package/resources/migration.mjs.map +1 -1
- package/resources/project/config.js +2 -2
- package/resources/project/config.js.map +1 -1
- package/resources/project/config.mjs +2 -2
- package/resources/project/config.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.map +1 -1
- package/resources/tool-router/session/files.js +4 -7
- package/resources/tool-router/session/files.js.map +1 -1
- package/resources/tool-router/session/files.mjs +4 -7
- package/resources/tool-router/session/files.mjs.map +1 -1
- package/resources/tool-router/session/index.d.mts +1 -1
- package/resources/tool-router/session/index.d.mts.map +1 -1
- package/resources/tool-router/session/index.d.ts +1 -1
- package/resources/tool-router/session/index.d.ts.map +1 -1
- package/resources/tool-router/session/index.js.map +1 -1
- package/resources/tool-router/session/index.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +2184 -560
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +2184 -560
- package/resources/tool-router/session/session.d.ts.map +1 -1
- package/resources/tool-router/session/session.js +65 -25
- package/resources/tool-router/session/session.js.map +1 -1
- package/resources/tool-router/session/session.mjs +65 -25
- 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.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +2 -2
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js +1 -1
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs +1 -1
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/toolkits.js +3 -3
- package/resources/toolkits.js.map +1 -1
- package/resources/toolkits.mjs +3 -3
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.js +6 -6
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +6 -6
- package/resources/tools.mjs.map +1 -1
- package/resources/trigger-instances/manage.js +2 -2
- package/resources/trigger-instances/manage.js.map +1 -1
- package/resources/trigger-instances/manage.mjs +2 -2
- package/resources/trigger-instances/manage.mjs.map +1 -1
- package/resources/trigger-instances/trigger-instances.js +2 -2
- package/resources/trigger-instances/trigger-instances.js.map +1 -1
- package/resources/trigger-instances/trigger-instances.mjs +2 -2
- package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.js +3 -3
- package/resources/triggers-types.js.map +1 -1
- package/resources/triggers-types.mjs +3 -3
- package/resources/triggers-types.mjs.map +1 -1
- package/src/internal/types.ts +6 -8
- package/src/resources/auth-configs.ts +6 -6
- package/src/resources/cli/cli.ts +2 -2
- package/src/resources/cli/realtime.ts +2 -2
- package/src/resources/connected-accounts.ts +285 -18
- package/src/resources/files.ts +2 -2
- package/src/resources/link.ts +122 -61
- package/src/resources/logs/tools.ts +2 -2
- package/src/resources/logs/triggers.ts +2 -2
- package/src/resources/mcp/custom.ts +1 -1
- package/src/resources/mcp/generate.ts +1 -1
- package/src/resources/mcp/mcp.ts +6 -6
- package/src/resources/migration.ts +1 -1
- package/src/resources/project/config.ts +2 -2
- package/src/resources/tool-router/index.ts +6 -0
- package/src/resources/tool-router/session/files.ts +7 -7
- package/src/resources/tool-router/session/index.ts +6 -0
- package/src/resources/tool-router/session/session.ts +2605 -712
- package/src/resources/tool-router/tool-router.ts +13 -1
- package/src/resources/toolkits.ts +3 -3
- package/src/resources/tools.ts +6 -6
- package/src/resources/trigger-instances/manage.ts +2 -2
- package/src/resources/trigger-instances/trigger-instances.ts +2 -2
- package/src/resources/triggers-types.ts +3 -3
- 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
|
@@ -16,6 +16,15 @@ export class ConnectedAccounts extends APIResource {
|
|
|
16
16
|
* the `user_id` field to associate the connection with a specific user in your
|
|
17
17
|
* system.
|
|
18
18
|
*
|
|
19
|
+
* **Deprecated for Composio-managed OAuth:** For Composio-managed auth configs on
|
|
20
|
+
* OAuth1, OAuth2, or DCR_OAUTH schemes, this endpoint is being retired and will
|
|
21
|
+
* start returning `400 BadRequest` on **2026-05-08** for new organizations and
|
|
22
|
+
* **2026-07-03** for all remaining organizations. Migrate those calls to
|
|
23
|
+
* `POST /api/v3/connected_accounts/link`. Custom auth configs and non-OAuth
|
|
24
|
+
* schemes (API key, bearer, basic) continue to be supported here. Responses on the
|
|
25
|
+
* retiring path carry a `Deprecation` header (RFC 9745) and a `Sunset` header
|
|
26
|
+
* (RFC 8594) for client-side detection.
|
|
27
|
+
*
|
|
19
28
|
* @example
|
|
20
29
|
* ```ts
|
|
21
30
|
* const connectedAccount =
|
|
@@ -29,7 +38,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
29
38
|
body: ConnectedAccountCreateParams,
|
|
30
39
|
options?: RequestOptions,
|
|
31
40
|
): APIPromise<ConnectedAccountCreateResponse> {
|
|
32
|
-
return this._client.post('/api/v3/connected_accounts', { body, ...options });
|
|
41
|
+
return this._client.post('/api/v3.1/connected_accounts', { body, ...options });
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
/**
|
|
@@ -45,7 +54,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
45
54
|
* ```
|
|
46
55
|
*/
|
|
47
56
|
retrieve(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountRetrieveResponse> {
|
|
48
|
-
return this._client.get(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
57
|
+
return this._client.get(path`/api/v3.1/connected_accounts/${nanoid}`, options);
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
/**
|
|
@@ -64,7 +73,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
64
73
|
query: ConnectedAccountListParams | null | undefined = {},
|
|
65
74
|
options?: RequestOptions,
|
|
66
75
|
): APIPromise<ConnectedAccountListResponse> {
|
|
67
|
-
return this._client.get('/api/v3/connected_accounts', { query, ...options });
|
|
76
|
+
return this._client.get('/api/v3.1/connected_accounts', { query, ...options });
|
|
68
77
|
}
|
|
69
78
|
|
|
70
79
|
/**
|
|
@@ -79,7 +88,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
79
88
|
* ```
|
|
80
89
|
*/
|
|
81
90
|
delete(nanoid: string, options?: RequestOptions): APIPromise<ConnectedAccountDeleteResponse> {
|
|
82
|
-
return this._client.delete(path`/api/v3/connected_accounts/${nanoid}`, options);
|
|
91
|
+
return this._client.delete(path`/api/v3.1/connected_accounts/${nanoid}`, options);
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
/**
|
|
@@ -107,7 +116,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
107
116
|
body: ConnectedAccountPatchParams | null | undefined = {},
|
|
108
117
|
options?: RequestOptions,
|
|
109
118
|
): APIPromise<ConnectedAccountPatchResponse> {
|
|
110
|
-
return this._client.patch(path`/api/v3/connected_accounts/${nanoid}`, { body, ...options });
|
|
119
|
+
return this._client.patch(path`/api/v3.1/connected_accounts/${nanoid}`, { body, ...options });
|
|
111
120
|
}
|
|
112
121
|
|
|
113
122
|
/**
|
|
@@ -128,7 +137,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
128
137
|
options?: RequestOptions,
|
|
129
138
|
): APIPromise<ConnectedAccountRefreshResponse> {
|
|
130
139
|
const { query_redirect_url, ...body } = params ?? {};
|
|
131
|
-
return this._client.post(path`/api/v3/connected_accounts/${nanoid}/refresh`, {
|
|
140
|
+
return this._client.post(path`/api/v3.1/connected_accounts/${nanoid}/refresh`, {
|
|
132
141
|
query: { redirect_url: query_redirect_url },
|
|
133
142
|
body,
|
|
134
143
|
...options,
|
|
@@ -154,7 +163,7 @@ export class ConnectedAccounts extends APIResource {
|
|
|
154
163
|
body: ConnectedAccountUpdateStatusParams,
|
|
155
164
|
options?: RequestOptions,
|
|
156
165
|
): APIPromise<ConnectedAccountUpdateStatusResponse> {
|
|
157
|
-
return this._client.patch(path`/api/v3/connected_accounts/${nanoID}/status`, { body, ...options });
|
|
166
|
+
return this._client.patch(path`/api/v3.1/connected_accounts/${nanoID}/status`, { body, ...options });
|
|
158
167
|
}
|
|
159
168
|
}
|
|
160
169
|
|
|
@@ -202,7 +211,7 @@ export interface ConnectedAccountCreateResponse {
|
|
|
202
211
|
/**
|
|
203
212
|
* @deprecated DEPRECATED: This field will be removed in a future version
|
|
204
213
|
*/
|
|
205
|
-
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE';
|
|
214
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
206
215
|
}
|
|
207
216
|
|
|
208
217
|
export namespace ConnectedAccountCreateResponse {
|
|
@@ -569,7 +578,8 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
569
578
|
| UnionMember1.UnionMember2
|
|
570
579
|
| UnionMember1.UnionMember3
|
|
571
580
|
| UnionMember1.UnionMember4
|
|
572
|
-
| UnionMember1.UnionMember5
|
|
581
|
+
| UnionMember1.UnionMember5
|
|
582
|
+
| UnionMember1.UnionMember6;
|
|
573
583
|
}
|
|
574
584
|
|
|
575
585
|
export namespace UnionMember1 {
|
|
@@ -1008,6 +1018,68 @@ export namespace ConnectedAccountCreateResponse {
|
|
|
1008
1018
|
|
|
1009
1019
|
[k: string]: unknown;
|
|
1010
1020
|
}
|
|
1021
|
+
|
|
1022
|
+
export interface UnionMember6 {
|
|
1023
|
+
status: 'REVOKED';
|
|
1024
|
+
|
|
1025
|
+
account_id?: string;
|
|
1026
|
+
|
|
1027
|
+
account_url?: string;
|
|
1028
|
+
|
|
1029
|
+
api_url?: string;
|
|
1030
|
+
|
|
1031
|
+
base_url?: string;
|
|
1032
|
+
|
|
1033
|
+
borneo_dashboard_url?: string;
|
|
1034
|
+
|
|
1035
|
+
COMPANYDOMAIN?: string;
|
|
1036
|
+
|
|
1037
|
+
dc?: string;
|
|
1038
|
+
|
|
1039
|
+
domain?: string;
|
|
1040
|
+
|
|
1041
|
+
extension?: string;
|
|
1042
|
+
|
|
1043
|
+
form_api_base_url?: string;
|
|
1044
|
+
|
|
1045
|
+
instanceEndpoint?: string;
|
|
1046
|
+
|
|
1047
|
+
instanceName?: string;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Whether to return the redirect url without shortening
|
|
1051
|
+
*/
|
|
1052
|
+
long_redirect_url?: boolean;
|
|
1053
|
+
|
|
1054
|
+
proxy_password?: string;
|
|
1055
|
+
|
|
1056
|
+
proxy_username?: string;
|
|
1057
|
+
|
|
1058
|
+
region?: string;
|
|
1059
|
+
|
|
1060
|
+
revoked_at?: string;
|
|
1061
|
+
|
|
1062
|
+
server_location?: string;
|
|
1063
|
+
|
|
1064
|
+
shop?: string;
|
|
1065
|
+
|
|
1066
|
+
site_name?: string;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* The oauth2 state prefix for the connection
|
|
1070
|
+
*/
|
|
1071
|
+
state_prefix?: string;
|
|
1072
|
+
|
|
1073
|
+
subdomain?: string;
|
|
1074
|
+
|
|
1075
|
+
version?: string;
|
|
1076
|
+
|
|
1077
|
+
your_server?: string;
|
|
1078
|
+
|
|
1079
|
+
'your-domain'?: string;
|
|
1080
|
+
|
|
1081
|
+
[k: string]: unknown;
|
|
1082
|
+
}
|
|
1011
1083
|
}
|
|
1012
1084
|
|
|
1013
1085
|
export interface UnionMember2 {
|
|
@@ -4619,13 +4691,15 @@ export interface ConnectedAccountRetrieveResponse {
|
|
|
4619
4691
|
/**
|
|
4620
4692
|
* The status of the connection
|
|
4621
4693
|
*/
|
|
4622
|
-
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE';
|
|
4694
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
4623
4695
|
|
|
4624
4696
|
/**
|
|
4625
4697
|
* The reason the connection status changed. Possible reasons: Connection
|
|
4626
4698
|
* initiation did not complete within 10 minutes, Permanent auth error during token
|
|
4627
4699
|
* refresh, Max auth failures reached, OAuth callback failed during token exchange,
|
|
4628
|
-
* Connection status updated by user, Auth config is disabled
|
|
4700
|
+
* Connection status updated by user, Auth config is disabled, Revoked via
|
|
4701
|
+
* user-initiated revoke endpoint, Revoked via admin tool, Revoked as part of
|
|
4702
|
+
* connection delete
|
|
4629
4703
|
*/
|
|
4630
4704
|
status_reason: string | null;
|
|
4631
4705
|
|
|
@@ -5076,7 +5150,8 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
5076
5150
|
| UnionMember1.UnionMember2
|
|
5077
5151
|
| UnionMember1.UnionMember3
|
|
5078
5152
|
| UnionMember1.UnionMember4
|
|
5079
|
-
| UnionMember1.UnionMember5
|
|
5153
|
+
| UnionMember1.UnionMember5
|
|
5154
|
+
| UnionMember1.UnionMember6;
|
|
5080
5155
|
}
|
|
5081
5156
|
|
|
5082
5157
|
export namespace UnionMember1 {
|
|
@@ -5515,6 +5590,68 @@ export namespace ConnectedAccountRetrieveResponse {
|
|
|
5515
5590
|
|
|
5516
5591
|
[k: string]: unknown;
|
|
5517
5592
|
}
|
|
5593
|
+
|
|
5594
|
+
export interface UnionMember6 {
|
|
5595
|
+
status: 'REVOKED';
|
|
5596
|
+
|
|
5597
|
+
account_id?: string;
|
|
5598
|
+
|
|
5599
|
+
account_url?: string;
|
|
5600
|
+
|
|
5601
|
+
api_url?: string;
|
|
5602
|
+
|
|
5603
|
+
base_url?: string;
|
|
5604
|
+
|
|
5605
|
+
borneo_dashboard_url?: string;
|
|
5606
|
+
|
|
5607
|
+
COMPANYDOMAIN?: string;
|
|
5608
|
+
|
|
5609
|
+
dc?: string;
|
|
5610
|
+
|
|
5611
|
+
domain?: string;
|
|
5612
|
+
|
|
5613
|
+
extension?: string;
|
|
5614
|
+
|
|
5615
|
+
form_api_base_url?: string;
|
|
5616
|
+
|
|
5617
|
+
instanceEndpoint?: string;
|
|
5618
|
+
|
|
5619
|
+
instanceName?: string;
|
|
5620
|
+
|
|
5621
|
+
/**
|
|
5622
|
+
* Whether to return the redirect url without shortening
|
|
5623
|
+
*/
|
|
5624
|
+
long_redirect_url?: boolean;
|
|
5625
|
+
|
|
5626
|
+
proxy_password?: string;
|
|
5627
|
+
|
|
5628
|
+
proxy_username?: string;
|
|
5629
|
+
|
|
5630
|
+
region?: string;
|
|
5631
|
+
|
|
5632
|
+
revoked_at?: string;
|
|
5633
|
+
|
|
5634
|
+
server_location?: string;
|
|
5635
|
+
|
|
5636
|
+
shop?: string;
|
|
5637
|
+
|
|
5638
|
+
site_name?: string;
|
|
5639
|
+
|
|
5640
|
+
/**
|
|
5641
|
+
* The oauth2 state prefix for the connection
|
|
5642
|
+
*/
|
|
5643
|
+
state_prefix?: string;
|
|
5644
|
+
|
|
5645
|
+
subdomain?: string;
|
|
5646
|
+
|
|
5647
|
+
version?: string;
|
|
5648
|
+
|
|
5649
|
+
your_server?: string;
|
|
5650
|
+
|
|
5651
|
+
'your-domain'?: string;
|
|
5652
|
+
|
|
5653
|
+
[k: string]: unknown;
|
|
5654
|
+
}
|
|
5518
5655
|
}
|
|
5519
5656
|
|
|
5520
5657
|
export interface UnionMember2 {
|
|
@@ -9139,13 +9276,15 @@ export namespace ConnectedAccountListResponse {
|
|
|
9139
9276
|
/**
|
|
9140
9277
|
* The status of the connection
|
|
9141
9278
|
*/
|
|
9142
|
-
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE';
|
|
9279
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
9143
9280
|
|
|
9144
9281
|
/**
|
|
9145
9282
|
* The reason the connection status changed. Possible reasons: Connection
|
|
9146
9283
|
* initiation did not complete within 10 minutes, Permanent auth error during token
|
|
9147
9284
|
* refresh, Max auth failures reached, OAuth callback failed during token exchange,
|
|
9148
|
-
* Connection status updated by user, Auth config is disabled
|
|
9285
|
+
* Connection status updated by user, Auth config is disabled, Revoked via
|
|
9286
|
+
* user-initiated revoke endpoint, Revoked via admin tool, Revoked as part of
|
|
9287
|
+
* connection delete
|
|
9149
9288
|
*/
|
|
9150
9289
|
status_reason: string | null;
|
|
9151
9290
|
|
|
@@ -9596,7 +9735,8 @@ export namespace ConnectedAccountListResponse {
|
|
|
9596
9735
|
| UnionMember1.UnionMember2
|
|
9597
9736
|
| UnionMember1.UnionMember3
|
|
9598
9737
|
| UnionMember1.UnionMember4
|
|
9599
|
-
| UnionMember1.UnionMember5
|
|
9738
|
+
| UnionMember1.UnionMember5
|
|
9739
|
+
| UnionMember1.UnionMember6;
|
|
9600
9740
|
}
|
|
9601
9741
|
|
|
9602
9742
|
export namespace UnionMember1 {
|
|
@@ -10035,6 +10175,68 @@ export namespace ConnectedAccountListResponse {
|
|
|
10035
10175
|
|
|
10036
10176
|
[k: string]: unknown;
|
|
10037
10177
|
}
|
|
10178
|
+
|
|
10179
|
+
export interface UnionMember6 {
|
|
10180
|
+
status: 'REVOKED';
|
|
10181
|
+
|
|
10182
|
+
account_id?: string;
|
|
10183
|
+
|
|
10184
|
+
account_url?: string;
|
|
10185
|
+
|
|
10186
|
+
api_url?: string;
|
|
10187
|
+
|
|
10188
|
+
base_url?: string;
|
|
10189
|
+
|
|
10190
|
+
borneo_dashboard_url?: string;
|
|
10191
|
+
|
|
10192
|
+
COMPANYDOMAIN?: string;
|
|
10193
|
+
|
|
10194
|
+
dc?: string;
|
|
10195
|
+
|
|
10196
|
+
domain?: string;
|
|
10197
|
+
|
|
10198
|
+
extension?: string;
|
|
10199
|
+
|
|
10200
|
+
form_api_base_url?: string;
|
|
10201
|
+
|
|
10202
|
+
instanceEndpoint?: string;
|
|
10203
|
+
|
|
10204
|
+
instanceName?: string;
|
|
10205
|
+
|
|
10206
|
+
/**
|
|
10207
|
+
* Whether to return the redirect url without shortening
|
|
10208
|
+
*/
|
|
10209
|
+
long_redirect_url?: boolean;
|
|
10210
|
+
|
|
10211
|
+
proxy_password?: string;
|
|
10212
|
+
|
|
10213
|
+
proxy_username?: string;
|
|
10214
|
+
|
|
10215
|
+
region?: string;
|
|
10216
|
+
|
|
10217
|
+
revoked_at?: string;
|
|
10218
|
+
|
|
10219
|
+
server_location?: string;
|
|
10220
|
+
|
|
10221
|
+
shop?: string;
|
|
10222
|
+
|
|
10223
|
+
site_name?: string;
|
|
10224
|
+
|
|
10225
|
+
/**
|
|
10226
|
+
* The oauth2 state prefix for the connection
|
|
10227
|
+
*/
|
|
10228
|
+
state_prefix?: string;
|
|
10229
|
+
|
|
10230
|
+
subdomain?: string;
|
|
10231
|
+
|
|
10232
|
+
version?: string;
|
|
10233
|
+
|
|
10234
|
+
your_server?: string;
|
|
10235
|
+
|
|
10236
|
+
'your-domain'?: string;
|
|
10237
|
+
|
|
10238
|
+
[k: string]: unknown;
|
|
10239
|
+
}
|
|
10038
10240
|
}
|
|
10039
10241
|
|
|
10040
10242
|
export interface UnionMember2 {
|
|
@@ -13643,7 +13845,7 @@ export interface ConnectedAccountRefreshResponse {
|
|
|
13643
13845
|
/**
|
|
13644
13846
|
* The current status of the connected account (e.g., active, pending, failed)
|
|
13645
13847
|
*/
|
|
13646
|
-
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE';
|
|
13848
|
+
status: 'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED';
|
|
13647
13849
|
}
|
|
13648
13850
|
|
|
13649
13851
|
/**
|
|
@@ -14094,7 +14296,8 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14094
14296
|
| UnionMember1.UnionMember2
|
|
14095
14297
|
| UnionMember1.UnionMember3
|
|
14096
14298
|
| UnionMember1.UnionMember4
|
|
14097
|
-
| UnionMember1.UnionMember5
|
|
14299
|
+
| UnionMember1.UnionMember5
|
|
14300
|
+
| UnionMember1.UnionMember6;
|
|
14098
14301
|
}
|
|
14099
14302
|
|
|
14100
14303
|
export namespace UnionMember1 {
|
|
@@ -14533,6 +14736,68 @@ export namespace ConnectedAccountCreateParams {
|
|
|
14533
14736
|
|
|
14534
14737
|
[k: string]: unknown;
|
|
14535
14738
|
}
|
|
14739
|
+
|
|
14740
|
+
export interface UnionMember6 {
|
|
14741
|
+
status: 'REVOKED';
|
|
14742
|
+
|
|
14743
|
+
account_id?: string;
|
|
14744
|
+
|
|
14745
|
+
account_url?: string;
|
|
14746
|
+
|
|
14747
|
+
api_url?: string;
|
|
14748
|
+
|
|
14749
|
+
base_url?: string;
|
|
14750
|
+
|
|
14751
|
+
borneo_dashboard_url?: string;
|
|
14752
|
+
|
|
14753
|
+
COMPANYDOMAIN?: string;
|
|
14754
|
+
|
|
14755
|
+
dc?: string;
|
|
14756
|
+
|
|
14757
|
+
domain?: string;
|
|
14758
|
+
|
|
14759
|
+
extension?: string;
|
|
14760
|
+
|
|
14761
|
+
form_api_base_url?: string;
|
|
14762
|
+
|
|
14763
|
+
instanceEndpoint?: string;
|
|
14764
|
+
|
|
14765
|
+
instanceName?: string;
|
|
14766
|
+
|
|
14767
|
+
/**
|
|
14768
|
+
* Whether to return the redirect url without shortening
|
|
14769
|
+
*/
|
|
14770
|
+
long_redirect_url?: boolean;
|
|
14771
|
+
|
|
14772
|
+
proxy_password?: string;
|
|
14773
|
+
|
|
14774
|
+
proxy_username?: string;
|
|
14775
|
+
|
|
14776
|
+
region?: string;
|
|
14777
|
+
|
|
14778
|
+
revoked_at?: string;
|
|
14779
|
+
|
|
14780
|
+
server_location?: string;
|
|
14781
|
+
|
|
14782
|
+
shop?: string;
|
|
14783
|
+
|
|
14784
|
+
site_name?: string;
|
|
14785
|
+
|
|
14786
|
+
/**
|
|
14787
|
+
* The oauth2 state prefix for the connection
|
|
14788
|
+
*/
|
|
14789
|
+
state_prefix?: string;
|
|
14790
|
+
|
|
14791
|
+
subdomain?: string;
|
|
14792
|
+
|
|
14793
|
+
version?: string;
|
|
14794
|
+
|
|
14795
|
+
your_server?: string;
|
|
14796
|
+
|
|
14797
|
+
'your-domain'?: string;
|
|
14798
|
+
|
|
14799
|
+
[k: string]: unknown;
|
|
14800
|
+
}
|
|
14536
14801
|
}
|
|
14537
14802
|
|
|
14538
14803
|
export interface UnionMember2 {
|
|
@@ -18107,7 +18372,9 @@ export interface ConnectedAccountListParams {
|
|
|
18107
18372
|
/**
|
|
18108
18373
|
* The status of the connected account
|
|
18109
18374
|
*/
|
|
18110
|
-
statuses?: Array<
|
|
18375
|
+
statuses?: Array<
|
|
18376
|
+
'INITIALIZING' | 'INITIATED' | 'ACTIVE' | 'FAILED' | 'EXPIRED' | 'INACTIVE' | 'REVOKED'
|
|
18377
|
+
> | null;
|
|
18111
18378
|
|
|
18112
18379
|
/**
|
|
18113
18380
|
* The toolkit slugs of the connected accounts
|
package/src/resources/files.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class Files extends APIResource {
|
|
|
21
21
|
query: FileListParams | null | undefined = {},
|
|
22
22
|
options?: RequestOptions,
|
|
23
23
|
): APIPromise<FileListResponse> {
|
|
24
|
-
return this._client.get('/api/v3/files/list', { query, ...options });
|
|
24
|
+
return this._client.get('/api/v3.1/files/list', { query, ...options });
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -43,7 +43,7 @@ export class Files extends APIResource {
|
|
|
43
43
|
body: FileCreatePresignedURLParams,
|
|
44
44
|
options?: RequestOptions,
|
|
45
45
|
): APIPromise<FileCreatePresignedURLResponse> {
|
|
46
|
-
return this._client.post('/api/v3/files/upload/request', { body, ...options });
|
|
46
|
+
return this._client.post('/api/v3.1/files/upload/request', { body, ...options });
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|