@composio/client 0.1.0-alpha.54 → 0.1.0-alpha.56
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 +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 +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +30 -9
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +30 -9
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +1 -4
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +1 -4
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +2 -2
- package/resources/connected-accounts.d.ts +2 -2
- package/resources/files.d.mts +42 -111
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +42 -111
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +5 -5
- package/resources/files.mjs +5 -5
- 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 +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/project/config.d.mts +3 -0
- package/resources/project/config.d.mts.map +1 -1
- package/resources/project/config.d.ts +3 -0
- package/resources/project/config.d.ts.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.d.mts +47 -0
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +47 -0
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/tool-router.d.mts +81 -0
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +81 -0
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js +29 -0
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs +29 -0
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts +12 -0
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts +12 -0
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/tools.d.mts +8 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +8 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +0 -4
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +0 -4
- 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/resources/triggers-types.d.mts +8 -0
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts +8 -0
- package/resources/triggers-types.d.ts.map +1 -1
- package/src/client.ts +10 -2
- package/src/resources/auth-configs.ts +37 -10
- package/src/resources/connected-accounts.ts +2 -2
- package/src/resources/files.ts +43 -130
- package/src/resources/index.ts +5 -1
- package/src/resources/project/config.ts +6 -0
- package/src/resources/tool-router/index.ts +5 -1
- package/src/resources/tool-router/session.ts +53 -0
- package/src/resources/tool-router/tool-router.ts +100 -0
- package/src/resources/toolkits.ts +15 -0
- package/src/resources/tools.ts +10 -0
- package/src/resources/trigger-instances/trigger-instances.ts +0 -5
- package/src/resources/triggers-types.ts +10 -0
- 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
|
@@ -47,6 +47,10 @@ export interface TriggersTypeRetrieveResponse {
|
|
|
47
47
|
* Unique identifier for the trigger type
|
|
48
48
|
*/
|
|
49
49
|
slug: string;
|
|
50
|
+
/**
|
|
51
|
+
* Lifecycle status of the trigger
|
|
52
|
+
*/
|
|
53
|
+
status: string;
|
|
50
54
|
/**
|
|
51
55
|
* Information about the toolkit that provides this trigger
|
|
52
56
|
*/
|
|
@@ -116,6 +120,10 @@ export declare namespace TriggersTypeListResponse {
|
|
|
116
120
|
* Unique identifier for the trigger type
|
|
117
121
|
*/
|
|
118
122
|
slug: string;
|
|
123
|
+
/**
|
|
124
|
+
* Lifecycle status of the trigger
|
|
125
|
+
*/
|
|
126
|
+
status: string;
|
|
119
127
|
/**
|
|
120
128
|
* Information about the toolkit that provides this trigger
|
|
121
129
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers-types.d.ts","sourceRoot":"","sources":["../src/resources/triggers-types.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAGrF;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;I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H,gBAAgB,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACvD;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -113,7 +113,11 @@ import {
|
|
|
113
113
|
McpUpdateResponse,
|
|
114
114
|
} from './resources/mcp/mcp';
|
|
115
115
|
import { Project } from './resources/project/project';
|
|
116
|
-
import {
|
|
116
|
+
import {
|
|
117
|
+
ToolRouter,
|
|
118
|
+
ToolRouterCreateSessionParams,
|
|
119
|
+
ToolRouterCreateSessionResponse,
|
|
120
|
+
} from './resources/tool-router/tool-router';
|
|
117
121
|
import {
|
|
118
122
|
TriggerInstanceListActiveParams,
|
|
119
123
|
TriggerInstanceListActiveResponse,
|
|
@@ -957,5 +961,9 @@ export declare namespace Composio {
|
|
|
957
961
|
|
|
958
962
|
export { Project as Project };
|
|
959
963
|
|
|
960
|
-
export {
|
|
964
|
+
export {
|
|
965
|
+
ToolRouter as ToolRouter,
|
|
966
|
+
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
967
|
+
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
968
|
+
};
|
|
961
969
|
}
|
|
@@ -43,10 +43,7 @@ export class AuthConfigs extends APIResource {
|
|
|
43
43
|
* ```ts
|
|
44
44
|
* const authConfig = await client.authConfigs.update(
|
|
45
45
|
* 'nanoid',
|
|
46
|
-
* {
|
|
47
|
-
* credentials: {},
|
|
48
|
-
* type: 'custom',
|
|
49
|
-
* },
|
|
46
|
+
* { type: 'custom' },
|
|
50
47
|
* );
|
|
51
48
|
* ```
|
|
52
49
|
*/
|
|
@@ -230,12 +227,17 @@ export interface AuthConfigRetrieveResponse {
|
|
|
230
227
|
*/
|
|
231
228
|
is_composio_managed?: boolean;
|
|
232
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Whether this auth config is enabled for tool router
|
|
232
|
+
*/
|
|
233
|
+
is_enabled_for_tool_router?: boolean;
|
|
234
|
+
|
|
233
235
|
/**
|
|
234
236
|
* ISO 8601 date-time when the auth config was last updated
|
|
235
237
|
*/
|
|
236
238
|
last_updated_at?: string;
|
|
237
239
|
|
|
238
|
-
proxy_config?: AuthConfigRetrieveResponse.ProxyConfig;
|
|
240
|
+
proxy_config?: AuthConfigRetrieveResponse.ProxyConfig | null;
|
|
239
241
|
|
|
240
242
|
/**
|
|
241
243
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -420,12 +422,17 @@ export namespace AuthConfigListResponse {
|
|
|
420
422
|
*/
|
|
421
423
|
is_composio_managed?: boolean;
|
|
422
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Whether this auth config is enabled for tool router
|
|
427
|
+
*/
|
|
428
|
+
is_enabled_for_tool_router?: boolean;
|
|
429
|
+
|
|
423
430
|
/**
|
|
424
431
|
* ISO 8601 date-time when the auth config was last updated
|
|
425
432
|
*/
|
|
426
433
|
last_updated_at?: string;
|
|
427
434
|
|
|
428
|
-
proxy_config?: Item.ProxyConfig;
|
|
435
|
+
proxy_config?: Item.ProxyConfig | null;
|
|
429
436
|
|
|
430
437
|
/**
|
|
431
438
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -532,6 +539,11 @@ export namespace AuthConfigCreateParams {
|
|
|
532
539
|
|
|
533
540
|
credentials?: UnionMember0.Credentials;
|
|
534
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Whether this auth config is enabled for tool router
|
|
544
|
+
*/
|
|
545
|
+
is_enabled_for_tool_router?: boolean;
|
|
546
|
+
|
|
535
547
|
/**
|
|
536
548
|
* The name of the integration
|
|
537
549
|
*/
|
|
@@ -588,12 +600,17 @@ export namespace AuthConfigCreateParams {
|
|
|
588
600
|
|
|
589
601
|
credentials?: UnionMember1.Credentials;
|
|
590
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Whether this auth config is enabled for tool router
|
|
605
|
+
*/
|
|
606
|
+
is_enabled_for_tool_router?: boolean;
|
|
607
|
+
|
|
591
608
|
/**
|
|
592
609
|
* The name of the integration
|
|
593
610
|
*/
|
|
594
611
|
name?: string;
|
|
595
612
|
|
|
596
|
-
proxy_config?: UnionMember1.ProxyConfig;
|
|
613
|
+
proxy_config?: UnionMember1.ProxyConfig | null;
|
|
597
614
|
|
|
598
615
|
/**
|
|
599
616
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -643,11 +660,16 @@ export type AuthConfigUpdateParams = AuthConfigUpdateParams.Variant0 | AuthConfi
|
|
|
643
660
|
|
|
644
661
|
export declare namespace AuthConfigUpdateParams {
|
|
645
662
|
export interface Variant0 {
|
|
646
|
-
credentials: Variant0.Credentials;
|
|
647
|
-
|
|
648
663
|
type: 'custom';
|
|
649
664
|
|
|
650
|
-
|
|
665
|
+
credentials?: Variant0.Credentials;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Whether this auth config is enabled for tool router
|
|
669
|
+
*/
|
|
670
|
+
is_enabled_for_tool_router?: boolean;
|
|
671
|
+
|
|
672
|
+
proxy_config?: Variant0.ProxyConfig | null;
|
|
651
673
|
|
|
652
674
|
/**
|
|
653
675
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
@@ -702,6 +724,11 @@ export declare namespace AuthConfigUpdateParams {
|
|
|
702
724
|
export interface Variant1 {
|
|
703
725
|
type: 'default';
|
|
704
726
|
|
|
727
|
+
/**
|
|
728
|
+
* Whether this auth config is enabled for tool router
|
|
729
|
+
*/
|
|
730
|
+
is_enabled_for_tool_router?: boolean;
|
|
731
|
+
|
|
705
732
|
/**
|
|
706
733
|
* @deprecated Use tool_access_config instead. This field will be deprecated in the
|
|
707
734
|
* future.
|
|
@@ -16634,12 +16634,12 @@ export interface ConnectedAccountListParams {
|
|
|
16634
16634
|
|
|
16635
16635
|
export interface ConnectedAccountRefreshParams {
|
|
16636
16636
|
/**
|
|
16637
|
-
* Query param
|
|
16637
|
+
* Query param
|
|
16638
16638
|
*/
|
|
16639
16639
|
query_redirect_url?: string;
|
|
16640
16640
|
|
|
16641
16641
|
/**
|
|
16642
|
-
* Body param
|
|
16642
|
+
* Body param
|
|
16643
16643
|
*/
|
|
16644
16644
|
body_redirect_url?: string;
|
|
16645
16645
|
|
package/src/resources/files.ts
CHANGED
|
@@ -28,11 +28,11 @@ export class Files extends APIResource {
|
|
|
28
28
|
* @example
|
|
29
29
|
* ```ts
|
|
30
30
|
* const response = await client.files.createPresignedURL({
|
|
31
|
-
* filename: '
|
|
32
|
-
* md5: '
|
|
33
|
-
* mimetype: '
|
|
34
|
-
* tool_slug: '
|
|
35
|
-
* toolkit_slug: '
|
|
31
|
+
* filename: 'quarterly_report.pdf',
|
|
32
|
+
* md5: 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6',
|
|
33
|
+
* mimetype: 'application/pdf',
|
|
34
|
+
* tool_slug: 'GMAIL_SEND_EMAIL',
|
|
35
|
+
* toolkit_slug: 'gmail',
|
|
36
36
|
* });
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
@@ -87,134 +87,46 @@ export namespace FileListResponse {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
export namespace FileCreatePresignedURLResponse {
|
|
96
|
-
export interface UnionMember0 {
|
|
97
|
-
/**
|
|
98
|
-
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
99
|
-
*/
|
|
100
|
-
id: string;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* URL of the existing request file. Example:
|
|
104
|
-
* "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
105
|
-
*/
|
|
106
|
-
existing_url: string;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* [DEPRECATED] Use existing_url instead. URL of the existing request file.
|
|
110
|
-
* Example: "https://storage.example.com/projects/123/files/photo-1234.jpg"
|
|
111
|
-
*/
|
|
112
|
-
existingUrl: string;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
116
|
-
*/
|
|
117
|
-
key: string;
|
|
118
|
-
|
|
119
|
-
metadata: UnionMember0.Metadata;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Indicates the file already exists and does not need to be uploaded again
|
|
123
|
-
*/
|
|
124
|
-
type: 'existing';
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export namespace UnionMember0 {
|
|
128
|
-
export interface Metadata {
|
|
129
|
-
/**
|
|
130
|
-
* Storage backend used for the file. If this is azure, use `x-ms-blob-type` header
|
|
131
|
-
* to set the blob type to `BlockBlob` while uploading the file
|
|
132
|
-
*/
|
|
133
|
-
storage_backend: 's3' | 'azure_blob_storage';
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface UnionMember1 {
|
|
138
|
-
/**
|
|
139
|
-
* ID of the request file. Example: "f1e2d3c4b5a6"
|
|
140
|
-
*/
|
|
141
|
-
id: string;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
145
|
-
*/
|
|
146
|
-
key: string;
|
|
147
|
-
|
|
148
|
-
metadata: UnionMember1.Metadata;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Presigned URL for upload. Example:
|
|
152
|
-
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
153
|
-
*/
|
|
154
|
-
new_presigned_url: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* [DEPRECATED] Use new_presigned_url instead. Presigned URL for upload. Example:
|
|
158
|
-
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
159
|
-
*/
|
|
160
|
-
newPresignedUrl: string;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Indicates this is a new file that needs to be uploaded
|
|
164
|
-
*/
|
|
165
|
-
type: 'new';
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export namespace UnionMember1 {
|
|
169
|
-
export interface Metadata {
|
|
170
|
-
/**
|
|
171
|
-
* Storage backend used for the file. If this is azure, use `x-ms-blob-type` header
|
|
172
|
-
* to set the blob type to `BlockBlob` while uploading the file
|
|
173
|
-
*/
|
|
174
|
-
storage_backend: 's3' | 'azure_blob_storage';
|
|
175
|
-
}
|
|
176
|
-
}
|
|
90
|
+
export interface FileCreatePresignedURLResponse {
|
|
91
|
+
/**
|
|
92
|
+
* ID of the request file. Example: "req_file_9mZn4qR8sXwT"
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
177
95
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Object storage upload location. Example:
|
|
98
|
+
* "projects/prj_xyz789/requests/slack/SLACK_UPLOAD_FILE/document_9mZn4q.docx"
|
|
99
|
+
*/
|
|
100
|
+
key: string;
|
|
183
101
|
|
|
184
|
-
|
|
185
|
-
* S3 upload location. Example: "projects/123/files/photo-1234.jpg"
|
|
186
|
-
*/
|
|
187
|
-
key: string;
|
|
102
|
+
metadata: FileCreatePresignedURLResponse.Metadata;
|
|
188
103
|
|
|
189
|
-
|
|
104
|
+
/**
|
|
105
|
+
* Presigned URL for upload. Example:
|
|
106
|
+
* "https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600..."
|
|
107
|
+
*/
|
|
108
|
+
new_presigned_url: string;
|
|
190
109
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated [DEPRECATED] Use new_presigned_url instead. Presigned URL for
|
|
112
|
+
* upload. Example:
|
|
113
|
+
* "https://storage.composio.dev/projects/prj_xyz789/requests/slack/document_9mZn4q.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600..."
|
|
114
|
+
*/
|
|
115
|
+
newPresignedUrl: string;
|
|
195
116
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
117
|
+
/**
|
|
118
|
+
* @deprecated [DEPRECATED] Indicates this is a new file that needs to be uploaded
|
|
119
|
+
*/
|
|
120
|
+
type: 'new';
|
|
121
|
+
}
|
|
201
122
|
|
|
123
|
+
export namespace FileCreatePresignedURLResponse {
|
|
124
|
+
export interface Metadata {
|
|
202
125
|
/**
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
* "https://storage.example.com/projects/123/files/photo-1234.jpg?X-Amz-Algorithm=..."
|
|
126
|
+
* Storage backend used for the file. If this is azure, use `x-ms-blob-type` header
|
|
127
|
+
* to set the blob type to `BlockBlob` while uploading the file
|
|
206
128
|
*/
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export namespace UnionMember2 {
|
|
211
|
-
export interface Metadata {
|
|
212
|
-
/**
|
|
213
|
-
* Storage backend used for the file. If this is azure, use `x-ms-blob-type` header
|
|
214
|
-
* to set the blob type to `BlockBlob` while uploading the file
|
|
215
|
-
*/
|
|
216
|
-
storage_backend: 's3' | 'azure_blob_storage';
|
|
217
|
-
}
|
|
129
|
+
storage_backend: 's3' | 'azure_blob_storage';
|
|
218
130
|
}
|
|
219
131
|
}
|
|
220
132
|
|
|
@@ -245,28 +157,29 @@ export interface FileListParams {
|
|
|
245
157
|
|
|
246
158
|
export interface FileCreatePresignedURLParams {
|
|
247
159
|
/**
|
|
248
|
-
* Name of the original file. Example: "
|
|
160
|
+
* Name of the original file. Example: "quarterly_report.pdf"
|
|
249
161
|
*/
|
|
250
162
|
filename: string;
|
|
251
163
|
|
|
252
164
|
/**
|
|
253
165
|
* MD5 hash of the file for deduplication and integrity verification. Example:
|
|
254
|
-
* "
|
|
166
|
+
* "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
|
|
255
167
|
*/
|
|
256
168
|
md5: string;
|
|
257
169
|
|
|
258
170
|
/**
|
|
259
|
-
* Mime type of the original file. Example: "image/
|
|
171
|
+
* Mime type of the original file. Example: "application/pdf", "image/png"
|
|
260
172
|
*/
|
|
261
173
|
mimetype: string;
|
|
262
174
|
|
|
263
175
|
/**
|
|
264
|
-
* Slug of the action where this file belongs to. Example: "
|
|
176
|
+
* Slug of the action where this file belongs to. Example: "GMAIL_SEND_EMAIL",
|
|
177
|
+
* "SLACK_UPLOAD_FILE"
|
|
265
178
|
*/
|
|
266
179
|
tool_slug: string;
|
|
267
180
|
|
|
268
181
|
/**
|
|
269
|
-
* Slug of the app where this file belongs to. Example: "
|
|
182
|
+
* Slug of the app where this file belongs to. Example: "gmail", "slack", "github"
|
|
270
183
|
*/
|
|
271
184
|
toolkit_slug: string;
|
|
272
185
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -59,7 +59,11 @@ export {
|
|
|
59
59
|
type MigrationRetrieveNanoidParams,
|
|
60
60
|
} from './migration';
|
|
61
61
|
export { Project } from './project/project';
|
|
62
|
-
export {
|
|
62
|
+
export {
|
|
63
|
+
ToolRouter,
|
|
64
|
+
type ToolRouterCreateSessionResponse,
|
|
65
|
+
type ToolRouterCreateSessionParams,
|
|
66
|
+
} from './tool-router/tool-router';
|
|
63
67
|
export {
|
|
64
68
|
Toolkits,
|
|
65
69
|
type ToolkitRetrieveResponse,
|
|
@@ -53,6 +53,8 @@ export interface ConfigRetrieveResponse {
|
|
|
53
53
|
logo_url?: string;
|
|
54
54
|
|
|
55
55
|
require_mcp_api_key?: boolean;
|
|
56
|
+
|
|
57
|
+
signed_url_file_expiry_in_seconds?: number;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
export interface ConfigUpdateResponse {
|
|
@@ -73,6 +75,8 @@ export interface ConfigUpdateResponse {
|
|
|
73
75
|
logo_url?: string;
|
|
74
76
|
|
|
75
77
|
require_mcp_api_key?: boolean;
|
|
78
|
+
|
|
79
|
+
signed_url_file_expiry_in_seconds?: number;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
export interface ConfigUpdateParams {
|
|
@@ -93,6 +97,8 @@ export interface ConfigUpdateParams {
|
|
|
93
97
|
mask_secret_keys_in_connected_account?: boolean;
|
|
94
98
|
|
|
95
99
|
require_mcp_api_key?: boolean;
|
|
100
|
+
|
|
101
|
+
signed_url_file_expiry_in_seconds?: number;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
export declare namespace Config {
|
|
@@ -16,4 +16,8 @@ export {
|
|
|
16
16
|
type SessionToolkitsParams,
|
|
17
17
|
type SessionToolsParams,
|
|
18
18
|
} from './session';
|
|
19
|
-
export {
|
|
19
|
+
export {
|
|
20
|
+
ToolRouter,
|
|
21
|
+
type ToolRouterCreateSessionResponse,
|
|
22
|
+
type ToolRouterCreateSessionParams,
|
|
23
|
+
} from './tool-router';
|
|
@@ -163,6 +163,12 @@ export interface SessionCreateResponse {
|
|
|
163
163
|
* List of available tools in this session
|
|
164
164
|
*/
|
|
165
165
|
tool_router_tools: Array<string>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Experimental features including the generated system prompt. Only returned on
|
|
169
|
+
* session creation, not on GET.
|
|
170
|
+
*/
|
|
171
|
+
experimental?: SessionCreateResponse.Experimental;
|
|
166
172
|
}
|
|
167
173
|
|
|
168
174
|
export namespace SessionCreateResponse {
|
|
@@ -314,6 +320,18 @@ export namespace SessionCreateResponse {
|
|
|
314
320
|
*/
|
|
315
321
|
url: string;
|
|
316
322
|
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Experimental features including the generated system prompt. Only returned on
|
|
326
|
+
* session creation, not on GET.
|
|
327
|
+
*/
|
|
328
|
+
export interface Experimental {
|
|
329
|
+
/**
|
|
330
|
+
* The assistive system prompt to inject into your agent for optimal tool router
|
|
331
|
+
* usage
|
|
332
|
+
*/
|
|
333
|
+
assistive_prompt: string;
|
|
334
|
+
}
|
|
317
335
|
}
|
|
318
336
|
|
|
319
337
|
export interface SessionRetrieveResponse {
|
|
@@ -713,6 +731,11 @@ export namespace SessionToolsResponse {
|
|
|
713
731
|
*/
|
|
714
732
|
slug: string;
|
|
715
733
|
|
|
734
|
+
/**
|
|
735
|
+
* Lifecycle status of the tool
|
|
736
|
+
*/
|
|
737
|
+
status: string;
|
|
738
|
+
|
|
716
739
|
/**
|
|
717
740
|
* List of tags associated with the tool for categorization and filtering
|
|
718
741
|
*/
|
|
@@ -799,6 +822,12 @@ export interface SessionCreateParams {
|
|
|
799
822
|
*/
|
|
800
823
|
connected_accounts?: { [key: string]: string };
|
|
801
824
|
|
|
825
|
+
/**
|
|
826
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
827
|
+
* versions.
|
|
828
|
+
*/
|
|
829
|
+
experimental?: SessionCreateParams.Experimental;
|
|
830
|
+
|
|
802
831
|
/**
|
|
803
832
|
* Configuration for connection management settings
|
|
804
833
|
*/
|
|
@@ -835,6 +864,30 @@ export interface SessionCreateParams {
|
|
|
835
864
|
}
|
|
836
865
|
|
|
837
866
|
export namespace SessionCreateParams {
|
|
867
|
+
/**
|
|
868
|
+
* Experimental features - not stable, may be modified or removed in future
|
|
869
|
+
* versions.
|
|
870
|
+
*/
|
|
871
|
+
export interface Experimental {
|
|
872
|
+
/**
|
|
873
|
+
* Customize assistive prompt generation (e.g., timezone).
|
|
874
|
+
*/
|
|
875
|
+
assistive_prompt_config?: Experimental.AssistivePromptConfig;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export namespace Experimental {
|
|
879
|
+
/**
|
|
880
|
+
* Customize assistive prompt generation (e.g., timezone).
|
|
881
|
+
*/
|
|
882
|
+
export interface AssistivePromptConfig {
|
|
883
|
+
/**
|
|
884
|
+
* IANA timezone identifier (e.g., 'America/New_York', 'Europe/London'). Used to
|
|
885
|
+
* customize the system prompt with timezone-aware instructions.
|
|
886
|
+
*/
|
|
887
|
+
user_timezone?: string;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
|
|
838
891
|
/**
|
|
839
892
|
* Configuration for connection management settings
|
|
840
893
|
*/
|
|
@@ -18,14 +18,114 @@ import {
|
|
|
18
18
|
SessionToolsParams,
|
|
19
19
|
SessionToolsResponse,
|
|
20
20
|
} from './session';
|
|
21
|
+
import { APIPromise } from '../../core/api-promise';
|
|
22
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
21
23
|
|
|
22
24
|
export class ToolRouter extends APIResource {
|
|
23
25
|
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
29
|
+
* initializes a new session with specified toolkits and their authentication
|
|
30
|
+
* configurations. The session provides an isolated environment for testing and
|
|
31
|
+
* managing tool routing logic with scoped MCP server access.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.toolRouter.createSession({
|
|
36
|
+
* user_id: 'user_123456789',
|
|
37
|
+
* config: {
|
|
38
|
+
* toolkits: [
|
|
39
|
+
* {
|
|
40
|
+
* toolkit: 'gmail',
|
|
41
|
+
* auth_config_id: 'auth_config_123',
|
|
42
|
+
* },
|
|
43
|
+
* {
|
|
44
|
+
* toolkit: 'slack',
|
|
45
|
+
* auth_config_id: 'auth_config_456',
|
|
46
|
+
* },
|
|
47
|
+
* { toolkit: 'github' },
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
createSession(
|
|
54
|
+
body: ToolRouterCreateSessionParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<ToolRouterCreateSessionResponse> {
|
|
57
|
+
return this._client.post('/api/v3/labs/tool_router/session', { body, ...options });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ToolRouterCreateSessionResponse {
|
|
62
|
+
/**
|
|
63
|
+
* MCP server endpoint URL for this specific chat session
|
|
64
|
+
*/
|
|
65
|
+
chat_session_mcp_url: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Generated session identifier
|
|
69
|
+
*/
|
|
70
|
+
session_id: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* MCP server endpoint URL for this specific tool router instance
|
|
74
|
+
*/
|
|
75
|
+
tool_router_instance_mcp_url: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ToolRouterCreateSessionParams {
|
|
79
|
+
/**
|
|
80
|
+
* Unique user identifier for the session owner
|
|
81
|
+
*/
|
|
82
|
+
user_id: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Session configuration including enabled toolkits and their auth configs
|
|
86
|
+
*/
|
|
87
|
+
config?: ToolRouterCreateSessionParams.Config;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace ToolRouterCreateSessionParams {
|
|
91
|
+
/**
|
|
92
|
+
* Session configuration including enabled toolkits and their auth configs
|
|
93
|
+
*/
|
|
94
|
+
export interface Config {
|
|
95
|
+
/**
|
|
96
|
+
* Whether to manually manage connections
|
|
97
|
+
*/
|
|
98
|
+
manually_manage_connections?: boolean | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Array of toolkit configurations with optional auth configs
|
|
102
|
+
*/
|
|
103
|
+
toolkits?: Array<Config.Toolkit>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace Config {
|
|
107
|
+
export interface Toolkit {
|
|
108
|
+
/**
|
|
109
|
+
* Toolkit identifier (e.g., gmail, slack, github)
|
|
110
|
+
*/
|
|
111
|
+
toolkit: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Specific auth configuration ID for this toolkit
|
|
115
|
+
*/
|
|
116
|
+
auth_config_id?: string;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
24
119
|
}
|
|
25
120
|
|
|
26
121
|
ToolRouter.Session = Session;
|
|
27
122
|
|
|
28
123
|
export declare namespace ToolRouter {
|
|
124
|
+
export {
|
|
125
|
+
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
126
|
+
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
127
|
+
};
|
|
128
|
+
|
|
29
129
|
export {
|
|
30
130
|
Session as Session,
|
|
31
131
|
type SessionCreateResponse as SessionCreateResponse,
|