@composio/client 0.1.0-alpha.57 → 0.1.0-alpha.59
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 +18 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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 +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/logs/index.d.mts +4 -0
- package/resources/logs/index.d.mts.map +1 -0
- package/resources/logs/index.d.ts +4 -0
- package/resources/logs/index.d.ts.map +1 -0
- package/resources/logs/index.js +11 -0
- package/resources/logs/index.js.map +1 -0
- package/resources/logs/index.mjs +5 -0
- package/resources/logs/index.mjs.map +1 -0
- package/resources/logs/logs.d.mts +14 -0
- package/resources/logs/logs.d.mts.map +1 -0
- package/resources/logs/logs.d.ts +14 -0
- package/resources/logs/logs.d.ts.map +1 -0
- package/resources/logs/logs.js +21 -0
- package/resources/logs/logs.js.map +1 -0
- package/resources/logs/logs.mjs +16 -0
- package/resources/logs/logs.mjs.map +1 -0
- package/resources/logs/tools.d.mts +170 -0
- package/resources/logs/tools.d.mts.map +1 -0
- package/resources/logs/tools.d.ts +170 -0
- package/resources/logs/tools.d.ts.map +1 -0
- package/resources/logs/tools.js +32 -0
- package/resources/logs/tools.js.map +1 -0
- package/resources/logs/tools.mjs +28 -0
- package/resources/logs/tools.mjs.map +1 -0
- package/resources/logs/triggers.d.mts +109 -0
- package/resources/logs/triggers.d.mts.map +1 -0
- package/resources/logs/triggers.d.ts +109 -0
- package/resources/logs/triggers.d.ts.map +1 -0
- package/resources/logs/triggers.js +21 -0
- package/resources/logs/triggers.js.map +1 -0
- package/resources/logs/triggers.mjs +17 -0
- package/resources/logs/triggers.mjs.map +1 -0
- package/resources/logs.d.mts +2 -0
- package/resources/logs.d.mts.map +1 -0
- package/resources/logs.d.ts +2 -0
- package/resources/logs.d.ts.map +1 -0
- package/resources/logs.js +6 -0
- package/resources/logs.js.map +1 -0
- package/resources/logs.mjs +3 -0
- package/resources/logs.mjs.map +1 -0
- 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.d.mts +293 -1
- package/resources/tool-router/session.d.mts.map +1 -1
- package/resources/tool-router/session.d.ts +293 -1
- package/resources/tool-router/session.d.ts.map +1 -1
- package/resources/tool-router/session.js +20 -0
- package/resources/tool-router/session.js.map +1 -1
- package/resources/tool-router/session.mjs +20 -0
- package/resources/tool-router/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.map +1 -1
- package/resources/tool-router/tool-router.mjs.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/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/logs/index.ts +5 -0
- package/src/resources/logs/logs.ts +30 -0
- package/src/resources/logs/tools.ts +236 -0
- package/src/resources/logs/triggers.ts +157 -0
- package/src/resources/logs.ts +3 -0
- package/src/resources/tool-router/index.ts +2 -0
- package/src/resources/tool-router/session.ts +340 -0
- package/src/resources/tool-router/tool-router.ts +4 -0
- package/src/resources/tools.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
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Triggers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Search and retrieve trigger event logs with advanced filtering capabilities
|
|
10
|
+
* including search parameters
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const triggers = await client.logs.triggers.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(
|
|
18
|
+
body: TriggerListParams | null | undefined = {},
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): APIPromise<TriggerListResponse> {
|
|
21
|
+
return this._client.post('/api/v3/internal/trigger/logs', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface TriggerListResponse {
|
|
26
|
+
nextCursor: string | null;
|
|
27
|
+
|
|
28
|
+
data?: Array<TriggerListResponse.Data>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export namespace TriggerListResponse {
|
|
32
|
+
export interface Data {
|
|
33
|
+
id: string;
|
|
34
|
+
|
|
35
|
+
appName: string;
|
|
36
|
+
|
|
37
|
+
clientId: string;
|
|
38
|
+
|
|
39
|
+
connectionId: string;
|
|
40
|
+
|
|
41
|
+
createdAt: string;
|
|
42
|
+
|
|
43
|
+
entityId: string;
|
|
44
|
+
|
|
45
|
+
meta: Data.Meta;
|
|
46
|
+
|
|
47
|
+
status: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Log entity type (trigger or action)
|
|
51
|
+
*/
|
|
52
|
+
type: 'trigger' | 'action';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export namespace Data {
|
|
56
|
+
export interface Meta {
|
|
57
|
+
id: string;
|
|
58
|
+
|
|
59
|
+
clientId: string;
|
|
60
|
+
|
|
61
|
+
connectionId: string;
|
|
62
|
+
|
|
63
|
+
createdAt: string;
|
|
64
|
+
|
|
65
|
+
provider: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Log entity type (trigger or action)
|
|
69
|
+
*/
|
|
70
|
+
type: 'trigger' | 'action';
|
|
71
|
+
|
|
72
|
+
updatedAt: string;
|
|
73
|
+
|
|
74
|
+
triggerClientError?: string;
|
|
75
|
+
|
|
76
|
+
triggerClientPayload?: string;
|
|
77
|
+
|
|
78
|
+
triggerClientResponse?: string;
|
|
79
|
+
|
|
80
|
+
triggerId?: string;
|
|
81
|
+
|
|
82
|
+
triggerName?: string;
|
|
83
|
+
|
|
84
|
+
triggerNanoId?: string;
|
|
85
|
+
|
|
86
|
+
triggerProviderPayload?: string;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface TriggerListParams {
|
|
92
|
+
cursor?: string | null;
|
|
93
|
+
|
|
94
|
+
entityId?: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Start time for logs (epoch timestamp in milliseconds)
|
|
98
|
+
*/
|
|
99
|
+
from?: number | null;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Whether to include payload fields in the response. Set to false for faster list
|
|
103
|
+
* views.
|
|
104
|
+
*/
|
|
105
|
+
include_payload?: boolean;
|
|
106
|
+
|
|
107
|
+
integrationId?: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The limit of trigger logs to return
|
|
111
|
+
*/
|
|
112
|
+
limit?: number | null;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Search term to filter logs
|
|
116
|
+
*/
|
|
117
|
+
search?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Advanced search parameters for filtering logs
|
|
121
|
+
*/
|
|
122
|
+
search_params?: Array<TriggerListParams.SearchParam>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Filter logs by their status level
|
|
126
|
+
*/
|
|
127
|
+
status?: 'all' | 'success' | 'error';
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Return logs from the last N time units
|
|
131
|
+
*/
|
|
132
|
+
time?: '5m' | '30m' | '6h' | '1d' | '1w' | '1month' | '1y';
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* End time for logs (epoch timestamp in milliseconds)
|
|
136
|
+
*/
|
|
137
|
+
to?: number | null;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Filter logs by user ID
|
|
141
|
+
*/
|
|
142
|
+
userId?: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export namespace TriggerListParams {
|
|
146
|
+
export interface SearchParam {
|
|
147
|
+
field?: string;
|
|
148
|
+
|
|
149
|
+
operation?: string;
|
|
150
|
+
|
|
151
|
+
value?: string;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export declare namespace Triggers {
|
|
156
|
+
export { type TriggerListResponse as TriggerListResponse, type TriggerListParams as TriggerListParams };
|
|
157
|
+
}
|
|
@@ -7,12 +7,14 @@ export {
|
|
|
7
7
|
type SessionExecuteResponse,
|
|
8
8
|
type SessionExecuteMetaResponse,
|
|
9
9
|
type SessionLinkResponse,
|
|
10
|
+
type SessionSearchResponse,
|
|
10
11
|
type SessionToolkitsResponse,
|
|
11
12
|
type SessionToolsResponse,
|
|
12
13
|
type SessionCreateParams,
|
|
13
14
|
type SessionExecuteParams,
|
|
14
15
|
type SessionExecuteMetaParams,
|
|
15
16
|
type SessionLinkParams,
|
|
17
|
+
type SessionSearchParams,
|
|
16
18
|
type SessionToolkitsParams,
|
|
17
19
|
type SessionToolsParams,
|
|
18
20
|
} from './session';
|
|
@@ -105,6 +105,31 @@ export class Session extends APIResource {
|
|
|
105
105
|
return this._client.post(path`/api/v3/tool_router/session/${sessionID}/link`, { body, ...options });
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Search for tools matching a given use case query within a tool router session.
|
|
110
|
+
* Returns matching tool slugs, full tool schemas, toolkit connection statuses, and
|
|
111
|
+
* workflow guidance in a predictable format.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* const response = await client.toolRouter.session.search(
|
|
116
|
+
* 'trs_LX9uJKBinWWr',
|
|
117
|
+
* {
|
|
118
|
+
* queries: [
|
|
119
|
+
* { use_case: 'Send a slack message to a channel' },
|
|
120
|
+
* ],
|
|
121
|
+
* },
|
|
122
|
+
* );
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
search(
|
|
126
|
+
sessionID: string,
|
|
127
|
+
body: SessionSearchParams,
|
|
128
|
+
options?: RequestOptions,
|
|
129
|
+
): APIPromise<SessionSearchResponse> {
|
|
130
|
+
return this._client.post(path`/api/v3/tool_router/session/${sessionID}/search`, { body, ...options });
|
|
131
|
+
}
|
|
132
|
+
|
|
108
133
|
/**
|
|
109
134
|
* Retrieves a cursor-paginated list of toolkits available in the tool router
|
|
110
135
|
* session. Includes toolkit metadata, composio-managed auth schemes, and connected
|
|
@@ -555,6 +580,285 @@ export interface SessionLinkResponse {
|
|
|
555
580
|
redirect_url: string;
|
|
556
581
|
}
|
|
557
582
|
|
|
583
|
+
export interface SessionSearchResponse {
|
|
584
|
+
/**
|
|
585
|
+
* Error message if any searches failed, null if all succeeded. Format: "X out of Y
|
|
586
|
+
* searches failed, reasons: <details>"
|
|
587
|
+
*/
|
|
588
|
+
error: string | null;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Combined workflow guidance covering connections, planner, and memory usage. Each
|
|
592
|
+
* element is a step instruction.
|
|
593
|
+
*/
|
|
594
|
+
next_steps_guidance: Array<string>;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Per-query search results with tools, reasoning, and memory. One entry per query
|
|
598
|
+
* in request order.
|
|
599
|
+
*/
|
|
600
|
+
results: Array<SessionSearchResponse.Result>;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Session info for correlating meta tool calls
|
|
604
|
+
*/
|
|
605
|
+
session: SessionSearchResponse.Session;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Whether all searches completed successfully. False if any query failed.
|
|
609
|
+
*/
|
|
610
|
+
success: boolean;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Time information for the query
|
|
614
|
+
*/
|
|
615
|
+
time_info: SessionSearchResponse.TimeInfo;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Deduplicated tool definitions keyed by tool_slug for O(1) lookup. Each tool
|
|
619
|
+
* appears once even if used in multiple queries.
|
|
620
|
+
*/
|
|
621
|
+
tool_schemas: { [key: string]: SessionSearchResponse.ToolSchemas };
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Connection status for all toolkits mentioned across all queries, with
|
|
625
|
+
* descriptions merged in.
|
|
626
|
+
*/
|
|
627
|
+
toolkit_connection_statuses: Array<SessionSearchResponse.ToolkitConnectionStatus>;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export namespace SessionSearchResponse {
|
|
631
|
+
export interface Result {
|
|
632
|
+
/**
|
|
633
|
+
* 1-based index of the query in the request
|
|
634
|
+
*/
|
|
635
|
+
index: number;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* List of main tool slugs matching the search criteria
|
|
639
|
+
*/
|
|
640
|
+
primary_tool_slugs: Array<string>;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* List of related tool slugs that might be useful
|
|
644
|
+
*/
|
|
645
|
+
related_tool_slugs: Array<string>;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* List of unique toolkit slugs used by tools in this query
|
|
649
|
+
*/
|
|
650
|
+
toolkits: Array<string>;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* The use case that was searched
|
|
654
|
+
*/
|
|
655
|
+
use_case: string;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Task difficulty assessment (e.g., "easy - Simple single-tool operation with
|
|
659
|
+
* known parameters")
|
|
660
|
+
*/
|
|
661
|
+
difficulty?: string;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Error message if the search for this query failed, null otherwise. Always
|
|
665
|
+
* present for failed queries.
|
|
666
|
+
*/
|
|
667
|
+
error?: string | null;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Guidance message about the search results, particularly when a cached plan is
|
|
671
|
+
* available
|
|
672
|
+
*/
|
|
673
|
+
execution_guidance?: string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Common pitfalls and considerations (only present when cached plan is available)
|
|
677
|
+
*/
|
|
678
|
+
known_pitfalls?: Array<string>;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Memory data relevant to this query, grouped by app. Only present for non-cached
|
|
682
|
+
* search results.
|
|
683
|
+
*/
|
|
684
|
+
memory?: { [key: string]: Array<string> };
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* ID of cached plan if available
|
|
688
|
+
*/
|
|
689
|
+
plan_id?: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Workflow steps from cached plan (only present when cached plan is available)
|
|
693
|
+
*/
|
|
694
|
+
recommended_plan_steps?: Array<string>;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Reference Python code snippets for processing tool responses in the workbench
|
|
698
|
+
* (only present when cached plan is available)
|
|
699
|
+
*/
|
|
700
|
+
reference_workbench_snippets?: Array<Result.ReferenceWorkbenchSnippet>;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
export namespace Result {
|
|
704
|
+
export interface ReferenceWorkbenchSnippet {
|
|
705
|
+
/**
|
|
706
|
+
* Python code snippet for the workbench
|
|
707
|
+
*/
|
|
708
|
+
code: string;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Description of what the code snippet does
|
|
712
|
+
*/
|
|
713
|
+
description: string;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Session info for correlating meta tool calls
|
|
719
|
+
*/
|
|
720
|
+
export interface Session {
|
|
721
|
+
/**
|
|
722
|
+
* Session identifier to be passed to subsequent meta tool calls as session_id.
|
|
723
|
+
*/
|
|
724
|
+
id: string;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Whether a fresh session id was generated in this call.
|
|
728
|
+
*/
|
|
729
|
+
generate_id: boolean;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* LLM-facing guidance on how to reuse this session id
|
|
733
|
+
*/
|
|
734
|
+
instructions: string;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Time information for the query
|
|
739
|
+
*/
|
|
740
|
+
export interface TimeInfo {
|
|
741
|
+
/**
|
|
742
|
+
* Current time in ISO format (UTC)
|
|
743
|
+
*/
|
|
744
|
+
current_time_utc: string;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Current time as Unix epoch timestamp in seconds
|
|
748
|
+
*/
|
|
749
|
+
current_time_utc_epoch_seconds: number;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Important message about time handling and timezone considerations
|
|
753
|
+
*/
|
|
754
|
+
message: string;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export interface ToolSchemas {
|
|
758
|
+
/**
|
|
759
|
+
* The slug of the tool
|
|
760
|
+
*/
|
|
761
|
+
tool_slug: string;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The slug of the toolkit that provides this tool
|
|
765
|
+
*/
|
|
766
|
+
toolkit: string;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Description of the tool
|
|
770
|
+
*/
|
|
771
|
+
description?: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Whether the full input_schema is included in this response
|
|
775
|
+
*/
|
|
776
|
+
hasFullSchema?: boolean;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Input schema for the tool (only present when hasFullSchema is true)
|
|
780
|
+
*/
|
|
781
|
+
input_schema?: { [key: string]: unknown };
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Output/response schema for the tool
|
|
785
|
+
*/
|
|
786
|
+
output_schema?: { [key: string]: unknown };
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Reference to fetch full schema when hasFullSchema is false
|
|
790
|
+
*/
|
|
791
|
+
schemaRef?: ToolSchemas.SchemaRef;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export namespace ToolSchemas {
|
|
795
|
+
/**
|
|
796
|
+
* Reference to fetch full schema when hasFullSchema is false
|
|
797
|
+
*/
|
|
798
|
+
export interface SchemaRef {
|
|
799
|
+
/**
|
|
800
|
+
* Arguments to pass to the tool
|
|
801
|
+
*/
|
|
802
|
+
args: SchemaRef.Args;
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Instruction message for the LLM
|
|
806
|
+
*/
|
|
807
|
+
message: string;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Tool to call
|
|
811
|
+
*/
|
|
812
|
+
tool: 'COMPOSIO_GET_TOOL_SCHEMAS';
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
export namespace SchemaRef {
|
|
816
|
+
/**
|
|
817
|
+
* Arguments to pass to the tool
|
|
818
|
+
*/
|
|
819
|
+
export interface Args {
|
|
820
|
+
/**
|
|
821
|
+
* Tool slugs to fetch schemas for
|
|
822
|
+
*/
|
|
823
|
+
tool_slugs: Array<string>;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
export interface ToolkitConnectionStatus {
|
|
829
|
+
/**
|
|
830
|
+
* Description of what the toolkit does and its capabilities
|
|
831
|
+
*/
|
|
832
|
+
description: string;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Whether an active connection exists for this toolkit
|
|
836
|
+
*/
|
|
837
|
+
has_active_connection: boolean;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Human-readable message about the connection status and next steps
|
|
841
|
+
*/
|
|
842
|
+
status_message: string;
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* The toolkit slug identifier (e.g., "gmail", "slack")
|
|
846
|
+
*/
|
|
847
|
+
toolkit: string;
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Connection details including auth config and connected account IDs. Only present
|
|
851
|
+
* when has_active_connection is true.
|
|
852
|
+
*/
|
|
853
|
+
connection_details?: { [key: string]: unknown };
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Information about the currently connected user (email, name, etc.)
|
|
857
|
+
*/
|
|
858
|
+
current_user_info?: { [key: string]: unknown };
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
|
|
558
862
|
export interface SessionToolkitsResponse {
|
|
559
863
|
current_page: number;
|
|
560
864
|
|
|
@@ -742,6 +1046,11 @@ export namespace SessionToolsResponse {
|
|
|
742
1046
|
* Current version of the tool
|
|
743
1047
|
*/
|
|
744
1048
|
version: string;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Human-friendly description of the tool, if available
|
|
1052
|
+
*/
|
|
1053
|
+
human_description?: string;
|
|
745
1054
|
}
|
|
746
1055
|
|
|
747
1056
|
export namespace Item {
|
|
@@ -1041,6 +1350,35 @@ export interface SessionLinkParams {
|
|
|
1041
1350
|
callback_url?: string;
|
|
1042
1351
|
}
|
|
1043
1352
|
|
|
1353
|
+
export interface SessionSearchParams {
|
|
1354
|
+
/**
|
|
1355
|
+
* List of search queries to execute in parallel. Up to 7 queries supported.
|
|
1356
|
+
*/
|
|
1357
|
+
queries: Array<SessionSearchParams.Query>;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Optional model hint for search/planning behavior (e.g., "gpt-4o"). Ignored if
|
|
1361
|
+
* invalid.
|
|
1362
|
+
*/
|
|
1363
|
+
model?: string;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
export namespace SessionSearchParams {
|
|
1367
|
+
export interface Query {
|
|
1368
|
+
/**
|
|
1369
|
+
* The task or use case to search tools for. Provide a detailed description to get
|
|
1370
|
+
* the best results.
|
|
1371
|
+
*/
|
|
1372
|
+
use_case: string;
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Known field hints as key:value pairs (e.g., "channel_name:general,
|
|
1376
|
+
* user_email:john@example.com")
|
|
1377
|
+
*/
|
|
1378
|
+
known_fields?: string;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1044
1382
|
export interface SessionToolkitsParams {
|
|
1045
1383
|
/**
|
|
1046
1384
|
* Cursor for pagination. The cursor is a base64 encoded string of the page and
|
|
@@ -1082,12 +1420,14 @@ export declare namespace Session {
|
|
|
1082
1420
|
type SessionExecuteResponse as SessionExecuteResponse,
|
|
1083
1421
|
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
1084
1422
|
type SessionLinkResponse as SessionLinkResponse,
|
|
1423
|
+
type SessionSearchResponse as SessionSearchResponse,
|
|
1085
1424
|
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
1086
1425
|
type SessionToolsResponse as SessionToolsResponse,
|
|
1087
1426
|
type SessionCreateParams as SessionCreateParams,
|
|
1088
1427
|
type SessionExecuteParams as SessionExecuteParams,
|
|
1089
1428
|
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
1090
1429
|
type SessionLinkParams as SessionLinkParams,
|
|
1430
|
+
type SessionSearchParams as SessionSearchParams,
|
|
1091
1431
|
type SessionToolkitsParams as SessionToolkitsParams,
|
|
1092
1432
|
type SessionToolsParams as SessionToolsParams,
|
|
1093
1433
|
};
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
SessionLinkParams,
|
|
14
14
|
SessionLinkResponse,
|
|
15
15
|
SessionRetrieveResponse,
|
|
16
|
+
SessionSearchParams,
|
|
17
|
+
SessionSearchResponse,
|
|
16
18
|
SessionToolkitsParams,
|
|
17
19
|
SessionToolkitsResponse,
|
|
18
20
|
SessionToolsParams,
|
|
@@ -133,12 +135,14 @@ export declare namespace ToolRouter {
|
|
|
133
135
|
type SessionExecuteResponse as SessionExecuteResponse,
|
|
134
136
|
type SessionExecuteMetaResponse as SessionExecuteMetaResponse,
|
|
135
137
|
type SessionLinkResponse as SessionLinkResponse,
|
|
138
|
+
type SessionSearchResponse as SessionSearchResponse,
|
|
136
139
|
type SessionToolkitsResponse as SessionToolkitsResponse,
|
|
137
140
|
type SessionToolsResponse as SessionToolsResponse,
|
|
138
141
|
type SessionCreateParams as SessionCreateParams,
|
|
139
142
|
type SessionExecuteParams as SessionExecuteParams,
|
|
140
143
|
type SessionExecuteMetaParams as SessionExecuteMetaParams,
|
|
141
144
|
type SessionLinkParams as SessionLinkParams,
|
|
145
|
+
type SessionSearchParams as SessionSearchParams,
|
|
142
146
|
type SessionToolkitsParams as SessionToolkitsParams,
|
|
143
147
|
type SessionToolsParams as SessionToolsParams,
|
|
144
148
|
};
|
package/src/resources/tools.ts
CHANGED
|
@@ -181,6 +181,11 @@ export interface ToolRetrieveResponse {
|
|
|
181
181
|
* Current version of the tool
|
|
182
182
|
*/
|
|
183
183
|
version: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Human-friendly description of the tool, if available
|
|
187
|
+
*/
|
|
188
|
+
human_description?: string;
|
|
184
189
|
}
|
|
185
190
|
|
|
186
191
|
export namespace ToolRetrieveResponse {
|
|
@@ -307,6 +312,11 @@ export namespace ToolListResponse {
|
|
|
307
312
|
* Current version of the tool
|
|
308
313
|
*/
|
|
309
314
|
version: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Human-friendly description of the tool, if available
|
|
318
|
+
*/
|
|
319
|
+
human_description?: string;
|
|
310
320
|
}
|
|
311
321
|
|
|
312
322
|
export namespace Item {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-alpha.
|
|
1
|
+
export const VERSION = '0.1.0-alpha.59'; // 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.59";
|
|
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.59";
|
|
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.59'; // 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.59'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|