@composio/client 0.1.0-alpha.72 → 0.1.0-alpha.74
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 +41 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- 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/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/auth-configs.d.mts +27 -6
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +27 -6
- 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/cli/cli.d.mts.map +1 -1
- package/resources/cli/cli.d.ts.map +1 -1
- package/resources/cli/cli.mjs.map +1 -1
- package/resources/cli/index.d.mts.map +1 -1
- package/resources/cli/index.d.ts.map +1 -1
- package/resources/cli/index.mjs.map +1 -1
- package/resources/cli/realtime.d.mts.map +1 -1
- package/resources/cli/realtime.d.ts.map +1 -1
- package/resources/cli/realtime.mjs.map +1 -1
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.mjs.map +1 -1
- package/resources/connected-accounts.d.mts +41 -31
- package/resources/connected-accounts.d.mts.map +1 -1
- package/resources/connected-accounts.d.ts +41 -31
- package/resources/connected-accounts.d.ts.map +1 -1
- package/resources/connected-accounts.js +8 -3
- package/resources/connected-accounts.js.map +1 -1
- package/resources/connected-accounts.mjs +8 -3
- package/resources/connected-accounts.mjs.map +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- 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.map +1 -1
- package/resources/link.d.ts.map +1 -1
- package/resources/link.mjs.map +1 -1
- package/resources/logs/index.d.mts.map +1 -1
- package/resources/logs/index.d.ts.map +1 -1
- package/resources/logs/index.mjs.map +1 -1
- package/resources/logs/logs.d.mts.map +1 -1
- package/resources/logs/logs.d.ts.map +1 -1
- package/resources/logs/logs.mjs.map +1 -1
- package/resources/logs/tools.d.mts.map +1 -1
- package/resources/logs/tools.d.ts.map +1 -1
- package/resources/logs/tools.mjs.map +1 -1
- package/resources/logs/triggers.d.mts.map +1 -1
- package/resources/logs/triggers.d.ts.map +1 -1
- package/resources/logs/triggers.mjs.map +1 -1
- package/resources/logs.d.mts.map +1 -1
- package/resources/logs.d.ts.map +1 -1
- package/resources/logs.mjs.map +1 -1
- package/resources/mcp/custom.d.mts.map +1 -1
- package/resources/mcp/custom.d.ts.map +1 -1
- package/resources/mcp/custom.mjs.map +1 -1
- package/resources/mcp/generate.d.mts.map +1 -1
- package/resources/mcp/generate.d.ts.map +1 -1
- package/resources/mcp/generate.mjs.map +1 -1
- package/resources/mcp/index.d.mts.map +1 -1
- package/resources/mcp/index.d.ts.map +1 -1
- package/resources/mcp/index.mjs.map +1 -1
- package/resources/mcp/mcp.d.mts.map +1 -1
- package/resources/mcp/mcp.d.ts.map +1 -1
- package/resources/mcp/mcp.mjs.map +1 -1
- package/resources/mcp.d.mts.map +1 -1
- package/resources/mcp.d.ts.map +1 -1
- package/resources/mcp.mjs.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/project.d.mts.map +1 -1
- package/resources/project.d.ts.map +1 -1
- package/resources/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/files.d.mts.map +1 -1
- package/resources/tool-router/session/files.d.ts.map +1 -1
- package/resources/tool-router/session/files.mjs.map +1 -1
- package/resources/tool-router/session/index.d.mts.map +1 -1
- package/resources/tool-router/session/index.d.ts.map +1 -1
- package/resources/tool-router/session/index.mjs.map +1 -1
- package/resources/tool-router/session/session.d.mts +12 -1
- package/resources/tool-router/session/session.d.mts.map +1 -1
- package/resources/tool-router/session/session.d.ts +12 -1
- 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/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/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/tool-router.d.mts.map +1 -1
- package/resources/tool-router.d.ts.map +1 -1
- package/resources/tool-router.mjs.map +1 -1
- package/resources/toolkits.d.mts.map +1 -1
- package/resources/toolkits.d.ts.map +1 -1
- package/resources/toolkits.mjs.map +1 -1
- package/resources/tools.d.mts +2 -1
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +2 -1
- 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/index.d.mts.map +1 -1
- package/resources/trigger-instances/index.d.ts.map +1 -1
- package/resources/trigger-instances/index.mjs.map +1 -1
- package/resources/trigger-instances/manage.d.mts.map +1 -1
- package/resources/trigger-instances/manage.d.ts.map +1 -1
- package/resources/trigger-instances/manage.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/resources/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances.d.ts.map +1 -1
- package/resources/trigger-instances.mjs.map +1 -1
- package/resources/triggers-types.d.mts.map +1 -1
- package/resources/triggers-types.d.ts.map +1 -1
- package/resources/triggers-types.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +17 -27
- package/src/resources/auth-configs.ts +37 -6
- package/src/resources/connected-accounts.ts +56 -51
- package/src/resources/index.ts +4 -10
- 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 +14 -3
- package/src/resources/tool-router/tool-router.ts +0 -103
- package/src/resources/tools.ts +2 -1
- package/src/resources/trigger-instances/trigger-instances.ts +8 -2
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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';
|
|
@@ -2418,6 +2418,13 @@ export namespace SessionSearchResponse {
|
|
|
2418
2418
|
*/
|
|
2419
2419
|
account_selection?: 'required';
|
|
2420
2420
|
|
|
2421
|
+
/**
|
|
2422
|
+
* Sharing model for the connected account when has_active_connection is true.
|
|
2423
|
+
* PRIVATE is owner-only; SHARED is reachable only when explicitly pinned to the
|
|
2424
|
+
* session.
|
|
2425
|
+
*/
|
|
2426
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
2427
|
+
|
|
2421
2428
|
/**
|
|
2422
2429
|
* List of connected accounts for this toolkit. Present when multi-account is
|
|
2423
2430
|
* enabled.
|
|
@@ -2458,6 +2465,12 @@ export namespace SessionSearchResponse {
|
|
|
2458
2465
|
*/
|
|
2459
2466
|
status: string;
|
|
2460
2467
|
|
|
2468
|
+
/**
|
|
2469
|
+
* Sharing model for this connected account. PRIVATE is owner-only; SHARED is
|
|
2470
|
+
* reachable from a tool-router session only when explicitly pinned.
|
|
2471
|
+
*/
|
|
2472
|
+
account_type?: 'PRIVATE' | 'SHARED';
|
|
2473
|
+
|
|
2461
2474
|
/**
|
|
2462
2475
|
* User-assigned alias for this account
|
|
2463
2476
|
*/
|
|
@@ -3499,9 +3512,7 @@ export interface SessionExecuteMetaParams {
|
|
|
3499
3512
|
| 'COMPOSIO_WAIT_FOR_CONNECTIONS'
|
|
3500
3513
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
3501
3514
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
3502
|
-
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
3503
|
-
| 'COMPOSIO_UPSERT_RECIPE'
|
|
3504
|
-
| 'COMPOSIO_GET_RECIPE';
|
|
3515
|
+
| 'COMPOSIO_GET_TOOL_SCHEMAS';
|
|
3505
3516
|
|
|
3506
3517
|
/**
|
|
3507
3518
|
* The arguments required by the meta tool
|
|
@@ -28,117 +28,14 @@ import {
|
|
|
28
28
|
SessionToolsParams,
|
|
29
29
|
SessionToolsResponse,
|
|
30
30
|
} from './session/session';
|
|
31
|
-
import { APIPromise } from '../../core/api-promise';
|
|
32
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
33
31
|
|
|
34
|
-
/**
|
|
35
|
-
* (Labs) Tool router endpoints
|
|
36
|
-
*/
|
|
37
32
|
export class ToolRouter extends APIResource {
|
|
38
33
|
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
42
|
-
* initializes a new session with specified toolkits and their authentication
|
|
43
|
-
* configurations. The session provides an isolated environment for testing and
|
|
44
|
-
* managing tool routing logic with scoped MCP server access.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const response = await client.toolRouter.createSession({
|
|
49
|
-
* user_id: 'user_123456789',
|
|
50
|
-
* config: {
|
|
51
|
-
* toolkits: [
|
|
52
|
-
* {
|
|
53
|
-
* toolkit: 'gmail',
|
|
54
|
-
* auth_config_id: 'ac_1a2b3c4d5e6f',
|
|
55
|
-
* },
|
|
56
|
-
* {
|
|
57
|
-
* toolkit: 'slack',
|
|
58
|
-
* auth_config_id: 'ac_7g8h9i0j1k2l',
|
|
59
|
-
* },
|
|
60
|
-
* { toolkit: 'github' },
|
|
61
|
-
* ],
|
|
62
|
-
* },
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
createSession(
|
|
67
|
-
body: ToolRouterCreateSessionParams,
|
|
68
|
-
options?: RequestOptions,
|
|
69
|
-
): APIPromise<ToolRouterCreateSessionResponse> {
|
|
70
|
-
return this._client.post('/api/v3.1/labs/tool_router/session', { body, ...options });
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface ToolRouterCreateSessionResponse {
|
|
75
|
-
/**
|
|
76
|
-
* MCP server endpoint URL for this specific chat session
|
|
77
|
-
*/
|
|
78
|
-
chat_session_mcp_url: string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Generated session identifier (prefixed with "trs\_")
|
|
82
|
-
*/
|
|
83
|
-
session_id: string;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* MCP server endpoint URL for this specific tool router instance
|
|
87
|
-
*/
|
|
88
|
-
tool_router_instance_mcp_url: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface ToolRouterCreateSessionParams {
|
|
92
|
-
/**
|
|
93
|
-
* Unique user identifier for the session owner
|
|
94
|
-
*/
|
|
95
|
-
user_id: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Session configuration including enabled toolkits and their auth configs
|
|
99
|
-
*/
|
|
100
|
-
config?: ToolRouterCreateSessionParams.Config;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export namespace ToolRouterCreateSessionParams {
|
|
104
|
-
/**
|
|
105
|
-
* Session configuration including enabled toolkits and their auth configs
|
|
106
|
-
*/
|
|
107
|
-
export interface Config {
|
|
108
|
-
/**
|
|
109
|
-
* Whether to manually manage connections
|
|
110
|
-
*/
|
|
111
|
-
manually_manage_connections?: boolean | null;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Array of toolkit configurations with optional auth configs
|
|
115
|
-
*/
|
|
116
|
-
toolkits?: Array<Config.Toolkit>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export namespace Config {
|
|
120
|
-
export interface Toolkit {
|
|
121
|
-
/**
|
|
122
|
-
* Toolkit identifier (e.g., gmail, slack, github)
|
|
123
|
-
*/
|
|
124
|
-
toolkit: string;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Specific auth configuration ID for this toolkit
|
|
128
|
-
*/
|
|
129
|
-
auth_config_id?: string;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
34
|
}
|
|
133
35
|
|
|
134
36
|
ToolRouter.Session = Session;
|
|
135
37
|
|
|
136
38
|
export declare namespace ToolRouter {
|
|
137
|
-
export {
|
|
138
|
-
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
139
|
-
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
140
|
-
};
|
|
141
|
-
|
|
142
39
|
export {
|
|
143
40
|
Session as Session,
|
|
144
41
|
type SessionCreateResponse as SessionCreateResponse,
|
package/src/resources/tools.ts
CHANGED
|
@@ -96,7 +96,8 @@ export class Tools extends APIResource {
|
|
|
96
96
|
/**
|
|
97
97
|
* Proxy an HTTP request to a third-party API using connected account credentials.
|
|
98
98
|
* This endpoint allows making authenticated API calls to external services while
|
|
99
|
-
* abstracting away authentication details.
|
|
99
|
+
* abstracting away authentication details. v3.1 requires a proxy_execute scoped
|
|
100
|
+
* project API key; default project API keys are rejected.
|
|
100
101
|
*
|
|
101
102
|
* @example
|
|
102
103
|
* ```ts
|
|
@@ -179,12 +179,12 @@ export namespace TriggerInstanceListActiveResponse {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
export interface TriggerInstanceUpsertResponse {
|
|
182
|
-
deprecated: TriggerInstanceUpsertResponse.Deprecated;
|
|
183
|
-
|
|
184
182
|
/**
|
|
185
183
|
* ID of the updated trigger
|
|
186
184
|
*/
|
|
187
185
|
trigger_id: string;
|
|
186
|
+
|
|
187
|
+
deprecated?: TriggerInstanceUpsertResponse.Deprecated;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
export namespace TriggerInstanceUpsertResponse {
|
|
@@ -313,6 +313,12 @@ export interface TriggerInstanceUpsertParams {
|
|
|
313
313
|
*/
|
|
314
314
|
triggerConfig?: { [key: string]: unknown };
|
|
315
315
|
|
|
316
|
+
/**
|
|
317
|
+
* The user id (entity id) that owns the connected account. When the project has
|
|
318
|
+
* 2FA enabled, this is validated against the owner of connected_account_id.
|
|
319
|
+
*/
|
|
320
|
+
user_id?: string;
|
|
321
|
+
|
|
316
322
|
/**
|
|
317
323
|
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
318
324
|
* Please use toolkit_versions instead.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.74'; // x-release-please-version
|
package/uploads.d.mts
CHANGED
package/uploads.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
package/uploads.d.ts
CHANGED
package/uploads.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,kCAA+B"}
|
package/uploads.mjs
CHANGED
package/uploads.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,mCAA+B"}
|
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.74";
|
|
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.74";
|
|
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.74'; // 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.74'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|