@composio/client 0.1.0-alpha.52 → 0.1.0-alpha.54
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 +27 -0
- package/LICENSE +1 -1
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +4 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth-configs.d.mts +4 -1
- package/resources/auth-configs.d.mts.map +1 -1
- package/resources/auth-configs.d.ts +4 -1
- package/resources/auth-configs.d.ts.map +1 -1
- package/resources/auth-configs.js +4 -1
- package/resources/auth-configs.js.map +1 -1
- package/resources/auth-configs.mjs +4 -1
- package/resources/auth-configs.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/project/config.d.mts +68 -0
- package/resources/project/config.d.mts.map +1 -0
- package/resources/project/config.d.ts +68 -0
- package/resources/project/config.d.ts.map +1 -0
- package/resources/project/config.js +33 -0
- package/resources/project/config.js.map +1 -0
- package/resources/project/config.mjs +29 -0
- package/resources/project/config.mjs.map +1 -0
- package/resources/project/index.d.mts +3 -0
- package/resources/project/index.d.mts.map +1 -0
- package/resources/project/index.d.ts +3 -0
- package/resources/project/index.d.ts.map +1 -0
- package/resources/project/index.js +9 -0
- package/resources/project/index.js.map +1 -0
- package/resources/project/index.mjs +4 -0
- package/resources/project/index.mjs.map +1 -0
- package/resources/project/project.d.mts +10 -0
- package/resources/project/project.d.mts.map +1 -0
- package/resources/project/project.d.ts +10 -0
- package/resources/project/project.d.ts.map +1 -0
- package/resources/project/project.js +17 -0
- package/resources/project/project.js.map +1 -0
- package/resources/project/project.mjs +12 -0
- package/resources/project/project.mjs.map +1 -0
- package/resources/project.d.mts +2 -0
- package/resources/project.d.mts.map +1 -0
- package/resources/project.d.ts +2 -0
- package/resources/project.d.ts.map +1 -0
- package/resources/project.js +6 -0
- package/resources/project.js.map +1 -0
- package/resources/project.mjs +3 -0
- package/resources/project.mjs.map +1 -0
- package/resources/tool-router/index.d.mts +2 -2
- package/resources/tool-router/index.d.mts.map +1 -1
- package/resources/tool-router/index.d.ts +2 -2
- 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 +138 -4
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +138 -4
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/session.js +15 -0
- package/resources/tool-router/session.js.map +1 -1
- package/resources/tool-router/session.mjs +15 -0
- package/resources/tool-router/session.mjs.map +1 -1
- package/resources/tool-router/tool-router.d.mts +2 -83
- package/resources/tool-router/tool-router.d.mts.map +1 -1
- package/resources/tool-router/tool-router.d.ts +2 -83
- package/resources/tool-router/tool-router.d.ts.map +1 -1
- package/resources/tool-router/tool-router.js +0 -29
- package/resources/tool-router/tool-router.js.map +1 -1
- package/resources/tool-router/tool-router.mjs +0 -29
- package/resources/tool-router/tool-router.mjs.map +1 -1
- package/resources/tools.d.mts +53 -0
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +53 -0
- package/resources/tools.d.ts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.mts +8 -2
- package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
- package/resources/trigger-instances/trigger-instances.d.ts +8 -2
- 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 +7 -10
- package/src/resources/auth-configs.ts +4 -1
- package/src/resources/index.ts +2 -5
- package/src/resources/project/config.ts +104 -0
- package/src/resources/project/index.ts +9 -0
- package/src/resources/project/project.ts +20 -0
- package/src/resources/project.ts +3 -0
- package/src/resources/tool-router/index.ts +3 -5
- package/src/resources/tool-router/session.ts +171 -17
- package/src/resources/tool-router/tool-router.ts +4 -100
- package/src/resources/tools.ts +63 -0
- package/src/resources/trigger-instances/trigger-instances.ts +9 -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
|
@@ -124,6 +124,26 @@ export class Session extends APIResource {
|
|
|
124
124
|
): APIPromise<SessionToolkitsResponse> {
|
|
125
125
|
return this._client.get(path`/api/v3/tool_router/session/${sessionID}/toolkits`, { query, ...options });
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Returns the meta tools available in a tool router session with their complete
|
|
130
|
+
* schemas. This includes request and response schemas specific to the session
|
|
131
|
+
* context.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* const response = await client.toolRouter.session.tools(
|
|
136
|
+
* 'session_id',
|
|
137
|
+
* );
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
tools(
|
|
141
|
+
sessionID: string,
|
|
142
|
+
query?: SessionToolsParams | null | undefined,
|
|
143
|
+
options?: RequestOptions,
|
|
144
|
+
): APIPromise<SessionToolsResponse> {
|
|
145
|
+
return this._client.get(path`/api/v3/tool_router/session/${sessionID}/tools`, options);
|
|
146
|
+
}
|
|
127
147
|
}
|
|
128
148
|
|
|
129
149
|
export interface SessionCreateResponse {
|
|
@@ -142,14 +162,7 @@ export interface SessionCreateResponse {
|
|
|
142
162
|
/**
|
|
143
163
|
* List of available tools in this session
|
|
144
164
|
*/
|
|
145
|
-
tool_router_tools: Array<
|
|
146
|
-
| 'COMPOSIO_SEARCH_TOOLS'
|
|
147
|
-
| 'COMPOSIO_MULTI_EXECUTE_TOOL'
|
|
148
|
-
| 'COMPOSIO_MANAGE_CONNECTIONS'
|
|
149
|
-
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
150
|
-
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
151
|
-
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
152
|
-
>;
|
|
165
|
+
tool_router_tools: Array<string>;
|
|
153
166
|
}
|
|
154
167
|
|
|
155
168
|
export namespace SessionCreateResponse {
|
|
@@ -210,6 +223,12 @@ export namespace SessionCreateResponse {
|
|
|
210
223
|
*/
|
|
211
224
|
callback_url?: string;
|
|
212
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
|
|
228
|
+
* Default false. May not work reliably with GPT models.
|
|
229
|
+
*/
|
|
230
|
+
enable_wait_for_connections?: boolean;
|
|
231
|
+
|
|
213
232
|
/**
|
|
214
233
|
* Whether to enable the connection manager for automatic connection handling
|
|
215
234
|
*/
|
|
@@ -313,14 +332,7 @@ export interface SessionRetrieveResponse {
|
|
|
313
332
|
/**
|
|
314
333
|
* List of available tools in this session
|
|
315
334
|
*/
|
|
316
|
-
tool_router_tools: Array<
|
|
317
|
-
| 'COMPOSIO_SEARCH_TOOLS'
|
|
318
|
-
| 'COMPOSIO_MULTI_EXECUTE_TOOL'
|
|
319
|
-
| 'COMPOSIO_MANAGE_CONNECTIONS'
|
|
320
|
-
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
321
|
-
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
322
|
-
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
323
|
-
>;
|
|
335
|
+
tool_router_tools: Array<string>;
|
|
324
336
|
}
|
|
325
337
|
|
|
326
338
|
export namespace SessionRetrieveResponse {
|
|
@@ -381,6 +393,12 @@ export namespace SessionRetrieveResponse {
|
|
|
381
393
|
*/
|
|
382
394
|
callback_url?: string;
|
|
383
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Enable the COMPOSIO_WAIT_FOR_CONNECTIONS tool for polling connection status.
|
|
398
|
+
* Default false. May not work reliably with GPT models.
|
|
399
|
+
*/
|
|
400
|
+
enable_wait_for_connections?: boolean;
|
|
401
|
+
|
|
384
402
|
/**
|
|
385
403
|
* Whether to enable the connection manager for automatic connection handling
|
|
386
404
|
*/
|
|
@@ -639,6 +657,128 @@ export namespace SessionToolkitsResponse {
|
|
|
639
657
|
}
|
|
640
658
|
}
|
|
641
659
|
|
|
660
|
+
export interface SessionToolsResponse {
|
|
661
|
+
/**
|
|
662
|
+
* List of tools with their complete schemas
|
|
663
|
+
*/
|
|
664
|
+
items: Array<SessionToolsResponse.Item>;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
export namespace SessionToolsResponse {
|
|
668
|
+
export interface Item {
|
|
669
|
+
/**
|
|
670
|
+
* List of all available versions for this tool
|
|
671
|
+
*/
|
|
672
|
+
available_versions: Array<string>;
|
|
673
|
+
|
|
674
|
+
deprecated: Item.Deprecated;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Detailed explanation of the tool's functionality and purpose
|
|
678
|
+
*/
|
|
679
|
+
description: string;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Schema definition of required input parameters for the tool
|
|
683
|
+
*/
|
|
684
|
+
input_parameters: { [key: string]: unknown };
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
688
|
+
*/
|
|
689
|
+
is_deprecated: boolean;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Human-readable display name of the tool
|
|
693
|
+
*/
|
|
694
|
+
name: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Indicates if the tool can be used without authentication
|
|
698
|
+
*/
|
|
699
|
+
no_auth: boolean;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Schema definition of return values from the tool
|
|
703
|
+
*/
|
|
704
|
+
output_parameters: { [key: string]: unknown };
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* List of scopes associated with the tool
|
|
708
|
+
*/
|
|
709
|
+
scopes: Array<string>;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Unique identifier for the tool
|
|
713
|
+
*/
|
|
714
|
+
slug: string;
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* List of tags associated with the tool for categorization and filtering
|
|
718
|
+
*/
|
|
719
|
+
tags: Array<string>;
|
|
720
|
+
|
|
721
|
+
toolkit: Item.Toolkit;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Current version of the tool
|
|
725
|
+
*/
|
|
726
|
+
version: string;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export namespace Item {
|
|
730
|
+
export interface Deprecated {
|
|
731
|
+
/**
|
|
732
|
+
* List of all available versions for this tool
|
|
733
|
+
*/
|
|
734
|
+
available_versions: Array<string>;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* The display name of the tool
|
|
738
|
+
*/
|
|
739
|
+
displayName: string;
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Indicates if this tool is deprecated and may be removed in the future
|
|
743
|
+
*/
|
|
744
|
+
is_deprecated: boolean;
|
|
745
|
+
|
|
746
|
+
toolkit: Deprecated.Toolkit;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Current version identifier of the tool
|
|
750
|
+
*/
|
|
751
|
+
version: string;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export namespace Deprecated {
|
|
755
|
+
export interface Toolkit {
|
|
756
|
+
/**
|
|
757
|
+
* URL to the toolkit logo image
|
|
758
|
+
*/
|
|
759
|
+
logo: string;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export interface Toolkit {
|
|
764
|
+
/**
|
|
765
|
+
* URL to the toolkit logo image
|
|
766
|
+
*/
|
|
767
|
+
logo: string;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Human-readable name of the parent toolkit
|
|
771
|
+
*/
|
|
772
|
+
name: string;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Unique identifier of the parent toolkit
|
|
776
|
+
*/
|
|
777
|
+
slug: string;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
|
|
642
782
|
export interface SessionCreateParams {
|
|
643
783
|
/**
|
|
644
784
|
* The identifier of the user who is initiating the session, ideally a unique
|
|
@@ -712,6 +852,13 @@ export namespace SessionCreateParams {
|
|
|
712
852
|
* connections manually.
|
|
713
853
|
*/
|
|
714
854
|
enable?: boolean | null;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* When true, the COMPOSIO_WAIT_FOR_CONNECTIONS tool is available for agents to
|
|
858
|
+
* poll connection status after sharing auth URLs. Default is false (disabled). May
|
|
859
|
+
* not work reliably with GPT models.
|
|
860
|
+
*/
|
|
861
|
+
enable_wait_for_connections?: boolean | null;
|
|
715
862
|
}
|
|
716
863
|
|
|
717
864
|
export interface UnionMember1 {
|
|
@@ -821,9 +968,12 @@ export interface SessionExecuteMetaParams {
|
|
|
821
968
|
| 'COMPOSIO_SEARCH_TOOLS'
|
|
822
969
|
| 'COMPOSIO_MULTI_EXECUTE_TOOL'
|
|
823
970
|
| 'COMPOSIO_MANAGE_CONNECTIONS'
|
|
971
|
+
| 'COMPOSIO_WAIT_FOR_CONNECTIONS'
|
|
824
972
|
| 'COMPOSIO_REMOTE_WORKBENCH'
|
|
825
973
|
| 'COMPOSIO_REMOTE_BASH_TOOL'
|
|
826
|
-
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
974
|
+
| 'COMPOSIO_GET_TOOL_SCHEMAS'
|
|
975
|
+
| 'COMPOSIO_UPSERT_RECIPE'
|
|
976
|
+
| 'COMPOSIO_GET_RECIPE';
|
|
827
977
|
|
|
828
978
|
/**
|
|
829
979
|
* The arguments required by the meta tool
|
|
@@ -875,6 +1025,8 @@ export interface SessionToolkitsParams {
|
|
|
875
1025
|
toolkits?: Array<string> | null;
|
|
876
1026
|
}
|
|
877
1027
|
|
|
1028
|
+
export interface SessionToolsParams {}
|
|
1029
|
+
|
|
878
1030
|
export declare namespace Session {
|
|
879
1031
|
export {
|
|
880
1032
|
type SessionCreateResponse as SessionCreateResponse,
|
|
@@ -883,10 +1035,12 @@ export declare namespace Session {
|
|
|
883
1035
|
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
884
1036
|
type SessionLinkResponse as SessionLinkResponse,
|
|
885
1037
|
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
1038
|
+
type SessionToolsResponse as SessionToolsResponse,
|
|
886
1039
|
type SessionCreateParams as SessionCreateParams,
|
|
887
1040
|
type SessionExecuteParams as SessionExecuteParams,
|
|
888
1041
|
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
889
1042
|
type SessionLinkParams as SessionLinkParams,
|
|
890
1043
|
type SessionToolkitsParams as SessionToolkitsParams,
|
|
1044
|
+
type SessionToolsParams as SessionToolsParams,
|
|
891
1045
|
};
|
|
892
1046
|
}
|
|
@@ -15,115 +15,17 @@ import {
|
|
|
15
15
|
SessionRetrieveResponse,
|
|
16
16
|
SessionToolkitsParams,
|
|
17
17
|
SessionToolkitsResponse,
|
|
18
|
+
SessionToolsParams,
|
|
19
|
+
SessionToolsResponse,
|
|
18
20
|
} from './session';
|
|
19
|
-
import { APIPromise } from '../../core/api-promise';
|
|
20
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
21
21
|
|
|
22
22
|
export class ToolRouter extends APIResource {
|
|
23
23
|
session: SessionAPI.Session = new SessionAPI.Session(this._client);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Creates a new session for the tool router lab feature (Legacy). This endpoint
|
|
27
|
-
* initializes a new session with specified toolkits and their authentication
|
|
28
|
-
* configurations. The session provides an isolated environment for testing and
|
|
29
|
-
* managing tool routing logic with scoped MCP server access.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const response = await client.toolRouter.createSession({
|
|
34
|
-
* user_id: 'user_123456789',
|
|
35
|
-
* config: {
|
|
36
|
-
* toolkits: [
|
|
37
|
-
* {
|
|
38
|
-
* toolkit: 'gmail',
|
|
39
|
-
* auth_config_id: 'auth_config_123',
|
|
40
|
-
* },
|
|
41
|
-
* {
|
|
42
|
-
* toolkit: 'slack',
|
|
43
|
-
* auth_config_id: 'auth_config_456',
|
|
44
|
-
* },
|
|
45
|
-
* { toolkit: 'github' },
|
|
46
|
-
* ],
|
|
47
|
-
* },
|
|
48
|
-
* });
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
createSession(
|
|
52
|
-
body: ToolRouterCreateSessionParams,
|
|
53
|
-
options?: RequestOptions,
|
|
54
|
-
): APIPromise<ToolRouterCreateSessionResponse> {
|
|
55
|
-
return this._client.post('/api/v3/labs/tool_router/session', { body, ...options });
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface ToolRouterCreateSessionResponse {
|
|
60
|
-
/**
|
|
61
|
-
* MCP server endpoint URL for this specific chat session
|
|
62
|
-
*/
|
|
63
|
-
chat_session_mcp_url: string;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Generated session identifier
|
|
67
|
-
*/
|
|
68
|
-
session_id: string;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* MCP server endpoint URL for this specific tool router instance
|
|
72
|
-
*/
|
|
73
|
-
tool_router_instance_mcp_url: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface ToolRouterCreateSessionParams {
|
|
77
|
-
/**
|
|
78
|
-
* Unique user identifier for the session owner
|
|
79
|
-
*/
|
|
80
|
-
user_id: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Session configuration including enabled toolkits and their auth configs
|
|
84
|
-
*/
|
|
85
|
-
config?: ToolRouterCreateSessionParams.Config;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export namespace ToolRouterCreateSessionParams {
|
|
89
|
-
/**
|
|
90
|
-
* Session configuration including enabled toolkits and their auth configs
|
|
91
|
-
*/
|
|
92
|
-
export interface Config {
|
|
93
|
-
/**
|
|
94
|
-
* Whether to manually manage connections
|
|
95
|
-
*/
|
|
96
|
-
manually_manage_connections?: boolean | null;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Array of toolkit configurations with optional auth configs
|
|
100
|
-
*/
|
|
101
|
-
toolkits?: Array<Config.Toolkit>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export namespace Config {
|
|
105
|
-
export interface Toolkit {
|
|
106
|
-
/**
|
|
107
|
-
* Toolkit identifier (e.g., gmail, slack, github)
|
|
108
|
-
*/
|
|
109
|
-
toolkit: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Specific auth configuration ID for this toolkit
|
|
113
|
-
*/
|
|
114
|
-
auth_config_id?: string;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
24
|
}
|
|
118
25
|
|
|
119
26
|
ToolRouter.Session = Session;
|
|
120
27
|
|
|
121
28
|
export declare namespace ToolRouter {
|
|
122
|
-
export {
|
|
123
|
-
type ToolRouterCreateSessionResponse as ToolRouterCreateSessionResponse,
|
|
124
|
-
type ToolRouterCreateSessionParams as ToolRouterCreateSessionParams,
|
|
125
|
-
};
|
|
126
|
-
|
|
127
29
|
export {
|
|
128
30
|
Session as Session,
|
|
129
31
|
type SessionCreateResponse as SessionCreateResponse,
|
|
@@ -132,10 +34,12 @@ export declare namespace ToolRouter {
|
|
|
132
34
|
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
133
35
|
type SessionLinkResponse as SessionLinkResponse,
|
|
134
36
|
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
37
|
+
type SessionToolsResponse as SessionToolsResponse,
|
|
135
38
|
type SessionCreateParams as SessionCreateParams,
|
|
136
39
|
type SessionExecuteParams as SessionExecuteParams,
|
|
137
40
|
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
138
41
|
type SessionLinkParams as SessionLinkParams,
|
|
139
42
|
type SessionToolkitsParams as SessionToolkitsParams,
|
|
43
|
+
type SessionToolsParams as SessionToolsParams,
|
|
140
44
|
};
|
|
141
45
|
}
|
package/src/resources/tools.ts
CHANGED
|
@@ -399,6 +399,11 @@ export interface ToolProxyResponse {
|
|
|
399
399
|
*/
|
|
400
400
|
status: number;
|
|
401
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Binary body response data. Present when the response is a binary file.
|
|
404
|
+
*/
|
|
405
|
+
binary_data?: ToolProxyResponse.BinaryData;
|
|
406
|
+
|
|
402
407
|
/**
|
|
403
408
|
* The response data returned from the proxied API
|
|
404
409
|
*/
|
|
@@ -410,6 +415,33 @@ export interface ToolProxyResponse {
|
|
|
410
415
|
headers?: { [key: string]: string };
|
|
411
416
|
}
|
|
412
417
|
|
|
418
|
+
export namespace ToolProxyResponse {
|
|
419
|
+
/**
|
|
420
|
+
* Binary body response data. Present when the response is a binary file.
|
|
421
|
+
*/
|
|
422
|
+
export interface BinaryData {
|
|
423
|
+
/**
|
|
424
|
+
* Content-Type of the binary data
|
|
425
|
+
*/
|
|
426
|
+
content_type: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* File size in bytes
|
|
430
|
+
*/
|
|
431
|
+
size: number;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* URL to download binary content
|
|
435
|
+
*/
|
|
436
|
+
url: string;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* ISO 8601 timestamp when the URL expires
|
|
440
|
+
*/
|
|
441
|
+
expires_at?: string;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
413
445
|
/**
|
|
414
446
|
* JSON string containing all tool enum values from latest version of each toolkit
|
|
415
447
|
*/
|
|
@@ -1323,6 +1355,13 @@ export interface ToolProxyParams {
|
|
|
1323
1355
|
*/
|
|
1324
1356
|
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
|
|
1325
1357
|
|
|
1358
|
+
/**
|
|
1359
|
+
* Binary body to send. For binary upload via URL: use {url: "https://...",
|
|
1360
|
+
* content_type?: "..."}. For binary upload via base64: use {base64: "...",
|
|
1361
|
+
* content_type?: "..."}.
|
|
1362
|
+
*/
|
|
1363
|
+
binary_body?: ToolProxyParams.UnionMember0 | ToolProxyParams.UnionMember1;
|
|
1364
|
+
|
|
1326
1365
|
/**
|
|
1327
1366
|
* The request body (for POST, PUT, and PATCH requests)
|
|
1328
1367
|
*/
|
|
@@ -1356,6 +1395,30 @@ export interface ToolProxyParams {
|
|
|
1356
1395
|
}
|
|
1357
1396
|
|
|
1358
1397
|
export namespace ToolProxyParams {
|
|
1398
|
+
export interface UnionMember0 {
|
|
1399
|
+
/**
|
|
1400
|
+
* URL to fetch binary content from
|
|
1401
|
+
*/
|
|
1402
|
+
url: string;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Content-Type header to use for the request
|
|
1406
|
+
*/
|
|
1407
|
+
content_type?: string;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
export interface UnionMember1 {
|
|
1411
|
+
/**
|
|
1412
|
+
* Base64-encoded binary data
|
|
1413
|
+
*/
|
|
1414
|
+
base64: string;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Content-Type header to use for the request
|
|
1418
|
+
*/
|
|
1419
|
+
content_type?: string;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1359
1422
|
export interface UnionMember0 {
|
|
1360
1423
|
authScheme: 'OAUTH2';
|
|
1361
1424
|
|
|
@@ -81,7 +81,8 @@ export namespace TriggerInstanceListActiveResponse {
|
|
|
81
81
|
disabled_at: string | null;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* @deprecated DEPRECATED: This parameter will be removed in a future version.
|
|
85
|
+
* Please use disabled_at instead.
|
|
85
86
|
*/
|
|
86
87
|
disabledAt: string | null;
|
|
87
88
|
|
|
@@ -245,7 +246,8 @@ export interface TriggerInstanceListActiveParams {
|
|
|
245
246
|
trigger_ids?: Array<string> | null;
|
|
246
247
|
|
|
247
248
|
/**
|
|
248
|
-
* Array of trigger names to filter triggers by
|
|
249
|
+
* Array of trigger names to filter triggers by. Case-insensitive (internally
|
|
250
|
+
* normalized to uppercase).
|
|
249
251
|
*/
|
|
250
252
|
trigger_names?: Array<string> | null;
|
|
251
253
|
|
|
@@ -260,6 +262,11 @@ export interface TriggerInstanceListActiveParams {
|
|
|
260
262
|
* trigger_names instead.
|
|
261
263
|
*/
|
|
262
264
|
triggerNames?: Array<string> | null;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Array of user IDs to filter triggers by
|
|
268
|
+
*/
|
|
269
|
+
user_ids?: Array<string> | null;
|
|
263
270
|
}
|
|
264
271
|
|
|
265
272
|
export interface TriggerInstanceUpsertParams {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.54'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.1.0-alpha.54";
|
|
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.54";
|
|
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.54'; // 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.54'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|