@cadenya/cadenya 0.66.0 → 0.68.0
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 +16 -0
- package/README.md +2 -2
- package/client.d.mts +42 -81
- package/client.d.mts.map +1 -1
- package/client.d.ts +42 -81
- package/client.d.ts.map +1 -1
- package/client.js +24 -63
- package/client.js.map +1 -1
- package/client.mjs +24 -63
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account.d.mts +18 -22
- package/resources/account.d.mts.map +1 -1
- package/resources/account.d.ts +18 -22
- package/resources/account.d.ts.map +1 -1
- package/resources/account.js +2 -6
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +2 -6
- package/resources/account.mjs.map +1 -1
- package/resources/agents/agents.d.mts +34 -21
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +34 -21
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +17 -16
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +17 -16
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +15 -15
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +15 -15
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +4 -8
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +4 -8
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +44 -26
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +44 -26
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +20 -19
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +20 -19
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +88 -43
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +88 -43
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +31 -32
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +31 -32
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +10 -11
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +10 -11
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +4 -8
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +4 -8
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/api-keys.d.mts +48 -28
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +48 -28
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +21 -17
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +21 -17
- package/resources/api-keys.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +20 -21
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +20 -21
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js +13 -17
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +13 -17
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/bulk-workspace-resources/index.d.mts +1 -1
- package/resources/bulk-workspace-resources/index.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/index.d.ts +1 -1
- package/resources/bulk-workspace-resources/index.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/index.js.map +1 -1
- package/resources/bulk-workspace-resources/index.mjs.map +1 -1
- package/resources/bulk-workspace-resources/results.d.mts +30 -35
- package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/results.d.ts +30 -35
- package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/results.js +6 -10
- package/resources/bulk-workspace-resources/results.js.map +1 -1
- package/resources/bulk-workspace-resources/results.mjs +6 -10
- package/resources/bulk-workspace-resources/results.mjs.map +1 -1
- package/resources/index.d.mts +9 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -9
- 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/memory-layers/entries.d.mts +40 -33
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +40 -33
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +19 -23
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +19 -23
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +33 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +33 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +17 -20
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +17 -20
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +18 -12
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +18 -12
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +14 -13
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +14 -13
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +19 -8
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +19 -8
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +9 -4
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +9 -4
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +1 -1
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +1 -1
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +63 -44
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +63 -44
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +31 -16
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +31 -16
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +7 -2
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +7 -2
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +5 -4
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +5 -4
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +18 -9
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +18 -9
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +7 -12
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +7 -12
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +5 -1
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +5 -1
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +3 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +3 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +1 -1
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +6 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +6 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +1 -1
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +1 -1
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +66 -43
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +66 -43
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +23 -23
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +23 -23
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +50 -31
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +50 -31
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +22 -21
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +22 -21
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +21 -19
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +21 -19
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +8 -11
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +8 -11
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +33 -13
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +33 -13
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +16 -13
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +16 -13
- package/resources/workspace-secrets.mjs.map +1 -1
- package/resources/workspaces.d.mts +2 -6
- package/resources/workspaces.d.mts.map +1 -1
- package/resources/workspaces.d.ts +2 -6
- package/resources/workspaces.d.ts.map +1 -1
- package/resources/workspaces.js +2 -6
- package/resources/workspaces.js.map +1 -1
- package/resources/workspaces.mjs +2 -6
- package/resources/workspaces.mjs.map +1 -1
- package/src/client.ts +54 -63
- package/src/resources/account.ts +18 -22
- package/src/resources/agents/agents.ts +49 -24
- package/src/resources/agents/feedback.ts +18 -16
- package/src/resources/agents/index.ts +2 -0
- package/src/resources/agents/schedules.ts +69 -37
- package/src/resources/agents/variations.ts +141 -73
- package/src/resources/agents/webhook-deliveries.ts +13 -12
- package/src/resources/api-keys.ts +67 -32
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +40 -25
- package/src/resources/bulk-workspace-resources/index.ts +1 -0
- package/src/resources/bulk-workspace-resources/results.ts +33 -36
- package/src/resources/index.ts +22 -1
- package/src/resources/memory-layers/entries.ts +67 -44
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -25
- package/src/resources/models.ts +28 -13
- package/src/resources/objectives/feedback.ts +29 -11
- package/src/resources/objectives/index.ts +1 -0
- package/src/resources/objectives/objectives.ts +100 -50
- package/src/resources/objectives/tasks.ts +16 -5
- package/src/resources/objectives/tool-calls.ts +33 -20
- package/src/resources/objectives/tools.ts +9 -3
- package/src/resources/search.ts +6 -1
- package/src/resources/tool-sets/index.ts +2 -0
- package/src/resources/tool-sets/tool-sets.ts +88 -50
- package/src/resources/tool-sets/tools.ts +75 -42
- package/src/resources/uploads.ts +25 -20
- package/src/resources/workspace-secrets.ts +60 -19
- package/src/resources/workspaces.ts +2 -6
- 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
|
@@ -8,42 +8,38 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
8
8
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
9
9
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
11
|
+
* Manage tool sets and the tools they contain. Tool sets group related tools,
|
|
12
|
+
* and tools define specific capabilities available to agents.
|
|
14
13
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Authentication: Bearer token (JWT)
|
|
19
|
-
* Scope: Workspace-level operations
|
|
14
|
+
* When a tool set is managed, only API key actors can modify its tools; human
|
|
15
|
+
* (profile) actors cannot.
|
|
20
16
|
*/
|
|
21
17
|
export declare class ToolSets extends APIResource {
|
|
22
18
|
tools: ToolsAPI.Tools;
|
|
23
19
|
/**
|
|
24
20
|
* Creates a new tool set in the workspace
|
|
25
21
|
*/
|
|
26
|
-
create(body: ToolSetCreateParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
22
|
+
create(workspaceID: string, body: ToolSetCreateParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
27
23
|
/**
|
|
28
24
|
* Retrieves a tool set by ID from the workspace
|
|
29
25
|
*/
|
|
30
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<ToolSet>;
|
|
26
|
+
retrieve(id: string, params: ToolSetRetrieveParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
31
27
|
/**
|
|
32
28
|
* Updates a tool set in the workspace
|
|
33
29
|
*/
|
|
34
|
-
update(id: string,
|
|
30
|
+
update(id: string, params: ToolSetUpdateParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
35
31
|
/**
|
|
36
32
|
* Lists all tool sets in the workspace
|
|
37
33
|
*/
|
|
38
|
-
list(query?: ToolSetListParams | null | undefined, options?: RequestOptions): PagePromise<ToolSetsCursorPagination, ToolSet>;
|
|
34
|
+
list(workspaceID: string, query?: ToolSetListParams | null | undefined, options?: RequestOptions): PagePromise<ToolSetsCursorPagination, ToolSet>;
|
|
39
35
|
/**
|
|
40
36
|
* Deletes a tool set in the workspace
|
|
41
37
|
*/
|
|
42
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
38
|
+
delete(id: string, params: ToolSetDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
43
39
|
/**
|
|
44
40
|
* Lists all events (including sync status) for a tool set
|
|
45
41
|
*/
|
|
46
|
-
listEvents(toolSetID: string,
|
|
42
|
+
listEvents(toolSetID: string, params: ToolSetListEventsParams, options?: RequestOptions): PagePromise<ToolSetEventsCursorPagination, ToolSetEvent>;
|
|
47
43
|
}
|
|
48
44
|
export type ToolSetsCursorPagination = CursorPagination<ToolSet>;
|
|
49
45
|
export type ToolSetEventsCursorPagination = CursorPagination<ToolSetEvent>;
|
|
@@ -80,41 +76,41 @@ export declare namespace McpToolFilter {
|
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
/**
|
|
83
|
-
*
|
|
79
|
+
* Emitted when a tool set sync operation completes successfully.
|
|
84
80
|
*/
|
|
85
81
|
export interface SyncCompleted {
|
|
86
82
|
/**
|
|
87
|
-
* Optional message with additional details
|
|
83
|
+
* Optional message with additional details.
|
|
88
84
|
*/
|
|
89
85
|
message?: string;
|
|
90
86
|
/**
|
|
91
|
-
* Number of tools synced
|
|
87
|
+
* Number of tools synced.
|
|
92
88
|
*/
|
|
93
89
|
toolsSynced?: number;
|
|
94
90
|
}
|
|
95
91
|
/**
|
|
96
|
-
*
|
|
92
|
+
* Emitted when a tool set sync operation fails.
|
|
97
93
|
*/
|
|
98
94
|
export interface SyncFailed {
|
|
99
95
|
/**
|
|
100
|
-
* Indicates this is an error event
|
|
96
|
+
* Indicates this is an error event.
|
|
101
97
|
*/
|
|
102
98
|
error?: boolean;
|
|
103
99
|
/**
|
|
104
|
-
* Optional error type/code for programmatic handling
|
|
100
|
+
* Optional error type/code for programmatic handling.
|
|
105
101
|
*/
|
|
106
102
|
errorType?: string;
|
|
107
103
|
/**
|
|
108
|
-
* Error message describing what went wrong
|
|
104
|
+
* Error message describing what went wrong.
|
|
109
105
|
*/
|
|
110
106
|
message?: string;
|
|
111
107
|
}
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
109
|
+
* Emitted when a tool set sync operation begins.
|
|
114
110
|
*/
|
|
115
111
|
export interface SyncStarted {
|
|
116
112
|
/**
|
|
117
|
-
*
|
|
113
|
+
* Human-readable message describing the start of the sync.
|
|
118
114
|
*/
|
|
119
115
|
message?: string;
|
|
120
116
|
}
|
|
@@ -172,7 +168,7 @@ export declare namespace ToolSetAdapterMcp {
|
|
|
172
168
|
}
|
|
173
169
|
}
|
|
174
170
|
/**
|
|
175
|
-
*
|
|
171
|
+
* A single event in the tool set's operation timeline.
|
|
176
172
|
*/
|
|
177
173
|
export interface ToolSetEvent {
|
|
178
174
|
/**
|
|
@@ -181,21 +177,21 @@ export interface ToolSetEvent {
|
|
|
181
177
|
*/
|
|
182
178
|
metadata: Shared.OperationMetadata;
|
|
183
179
|
/**
|
|
184
|
-
*
|
|
180
|
+
* Event payload for a tool set operation.
|
|
185
181
|
*/
|
|
186
182
|
event?: ToolSetEventData;
|
|
187
183
|
info?: ToolSetEvent.Info;
|
|
188
184
|
/**
|
|
189
|
-
* The tool set this event is associated with
|
|
185
|
+
* The tool set this event is associated with.
|
|
190
186
|
*/
|
|
191
187
|
toolSetId?: string;
|
|
192
188
|
}
|
|
193
189
|
export declare namespace ToolSetEvent {
|
|
194
190
|
interface Info {
|
|
195
191
|
/**
|
|
196
|
-
*
|
|
197
|
-
* account-scoped
|
|
198
|
-
*
|
|
192
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
193
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
194
|
+
* workspaces.
|
|
199
195
|
*/
|
|
200
196
|
createdBy?: AccountAPI.Profile;
|
|
201
197
|
/**
|
|
@@ -205,32 +201,32 @@ export declare namespace ToolSetEvent {
|
|
|
205
201
|
}
|
|
206
202
|
}
|
|
207
203
|
/**
|
|
208
|
-
*
|
|
204
|
+
* Event payload for a tool set operation.
|
|
209
205
|
*/
|
|
210
206
|
export interface ToolSetEventData {
|
|
211
207
|
/**
|
|
212
|
-
*
|
|
208
|
+
* Emitted when a tool set sync operation completes successfully.
|
|
213
209
|
*/
|
|
214
210
|
syncCompleted?: SyncCompleted;
|
|
215
211
|
/**
|
|
216
|
-
*
|
|
212
|
+
* Emitted when a tool set sync operation fails.
|
|
217
213
|
*/
|
|
218
214
|
syncFailed?: SyncFailed;
|
|
219
215
|
/**
|
|
220
|
-
*
|
|
216
|
+
* Emitted when a tool set sync operation begins.
|
|
221
217
|
*/
|
|
222
218
|
syncStarted?: SyncStarted;
|
|
223
219
|
/**
|
|
224
|
-
* Type of the event (e.g., "sync_started", "sync_completed", "sync_failed")
|
|
220
|
+
* Type of the event (e.g., "sync_started", "sync_completed", "sync_failed").
|
|
225
221
|
*/
|
|
226
222
|
type?: string;
|
|
227
223
|
}
|
|
228
224
|
export interface ToolSetInfo {
|
|
229
225
|
agentCount?: number;
|
|
230
226
|
/**
|
|
231
|
-
*
|
|
232
|
-
* account-scoped
|
|
233
|
-
*
|
|
227
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
228
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
229
|
+
* workspaces.
|
|
234
230
|
*/
|
|
235
231
|
createdBy?: AccountAPI.Profile;
|
|
236
232
|
lastSync?: string;
|
|
@@ -249,14 +245,31 @@ export interface ToolSetCreateParams {
|
|
|
249
245
|
metadata: Shared.CreateResourceMetadata;
|
|
250
246
|
spec: ToolSetSpec;
|
|
251
247
|
}
|
|
248
|
+
export interface ToolSetRetrieveParams {
|
|
249
|
+
/**
|
|
250
|
+
* Workspace ID.
|
|
251
|
+
*/
|
|
252
|
+
workspaceId: string;
|
|
253
|
+
}
|
|
252
254
|
export interface ToolSetUpdateParams {
|
|
253
255
|
/**
|
|
254
|
-
*
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
* Path param: Workspace ID.
|
|
257
|
+
*/
|
|
258
|
+
workspaceId: string;
|
|
259
|
+
/**
|
|
260
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
261
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
262
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
263
|
+
* server.
|
|
257
264
|
*/
|
|
258
265
|
metadata?: Shared.UpdateResourceMetadata;
|
|
266
|
+
/**
|
|
267
|
+
* Body param
|
|
268
|
+
*/
|
|
259
269
|
spec?: ToolSetSpec;
|
|
270
|
+
/**
|
|
271
|
+
* Body param
|
|
272
|
+
*/
|
|
260
273
|
updateMask?: string;
|
|
261
274
|
}
|
|
262
275
|
export interface ToolSetListParams extends CursorPaginationParams {
|
|
@@ -281,18 +294,28 @@ export interface ToolSetListParams extends CursorPaginationParams {
|
|
|
281
294
|
*/
|
|
282
295
|
sortOrder?: string;
|
|
283
296
|
}
|
|
297
|
+
export interface ToolSetDeleteParams {
|
|
298
|
+
/**
|
|
299
|
+
* Workspace ID.
|
|
300
|
+
*/
|
|
301
|
+
workspaceId: string;
|
|
302
|
+
}
|
|
284
303
|
export interface ToolSetListEventsParams extends CursorPaginationParams {
|
|
285
304
|
/**
|
|
286
|
-
*
|
|
305
|
+
* Path param: Workspace ID.
|
|
306
|
+
*/
|
|
307
|
+
workspaceId: string;
|
|
308
|
+
/**
|
|
309
|
+
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
287
310
|
*/
|
|
288
311
|
includeInfo?: boolean;
|
|
289
312
|
/**
|
|
290
|
-
* Sort order for results (asc or desc by creation time)
|
|
313
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
291
314
|
*/
|
|
292
315
|
sortOrder?: string;
|
|
293
316
|
}
|
|
294
317
|
export declare namespace ToolSets {
|
|
295
|
-
export { type McpToolFilter as McpToolFilter, type SyncCompleted as SyncCompleted, type SyncFailed as SyncFailed, type SyncStarted as SyncStarted, type ToolSet as ToolSet, type ToolSetAdapter as ToolSetAdapter, type ToolSetAdapterHTTP as ToolSetAdapterHTTP, type ToolSetAdapterMcp as ToolSetAdapterMcp, type ToolSetEvent as ToolSetEvent, type ToolSetEventData as ToolSetEventData, type ToolSetInfo as ToolSetInfo, type ToolSetSpec as ToolSetSpec, type ToolSetsCursorPagination as ToolSetsCursorPagination, type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination, type ToolSetCreateParams as ToolSetCreateParams, type ToolSetUpdateParams as ToolSetUpdateParams, type ToolSetListParams as ToolSetListParams, type ToolSetListEventsParams as ToolSetListEventsParams, };
|
|
318
|
+
export { type McpToolFilter as McpToolFilter, type SyncCompleted as SyncCompleted, type SyncFailed as SyncFailed, type SyncStarted as SyncStarted, type ToolSet as ToolSet, type ToolSetAdapter as ToolSetAdapter, type ToolSetAdapterHTTP as ToolSetAdapterHTTP, type ToolSetAdapterMcp as ToolSetAdapterMcp, type ToolSetEvent as ToolSetEvent, type ToolSetEventData as ToolSetEventData, type ToolSetInfo as ToolSetInfo, type ToolSetSpec as ToolSetSpec, type ToolSetsCursorPagination as ToolSetsCursorPagination, type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination, type ToolSetCreateParams as ToolSetCreateParams, type ToolSetRetrieveParams as ToolSetRetrieveParams, type ToolSetUpdateParams as ToolSetUpdateParams, type ToolSetListParams as ToolSetListParams, type ToolSetDeleteParams as ToolSetDeleteParams, type ToolSetListEventsParams as ToolSetListEventsParams, };
|
|
296
319
|
export { Tools as Tools, type ConfigHTTP as ConfigHTTP, type ConfigMcp as ConfigMcp, type Tool as Tool, type ToolInfo as ToolInfo, type ToolSpec as ToolSpec, type ToolSpecConfig as ToolSpecConfig, type ToolsCursorPagination as ToolsCursorPagination, type ToolCreateParams as ToolCreateParams, type ToolRetrieveParams as ToolRetrieveParams, type ToolUpdateParams as ToolUpdateParams, type ToolListParams as ToolListParams, type ToolDeleteParams as ToolDeleteParams, };
|
|
297
320
|
}
|
|
298
321
|
//# sourceMappingURL=tool-sets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-sets.d.mts","sourceRoot":"","sources":["../../src/resources/tool-sets/tool-sets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,UAAU,EACV,SAAS,EACT,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,KAAK,EACL,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"tool-sets.d.mts","sourceRoot":"","sources":["../../src/resources/tool-sets/tool-sets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,UAAU,EACV,SAAS,EACT,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,KAAK,EACL,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,s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,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -8,42 +8,38 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
8
8
|
import { CursorPagination, type CursorPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
9
9
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
11
|
+
* Manage tool sets and the tools they contain. Tool sets group related tools,
|
|
12
|
+
* and tools define specific capabilities available to agents.
|
|
14
13
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Authentication: Bearer token (JWT)
|
|
19
|
-
* Scope: Workspace-level operations
|
|
14
|
+
* When a tool set is managed, only API key actors can modify its tools; human
|
|
15
|
+
* (profile) actors cannot.
|
|
20
16
|
*/
|
|
21
17
|
export declare class ToolSets extends APIResource {
|
|
22
18
|
tools: ToolsAPI.Tools;
|
|
23
19
|
/**
|
|
24
20
|
* Creates a new tool set in the workspace
|
|
25
21
|
*/
|
|
26
|
-
create(body: ToolSetCreateParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
22
|
+
create(workspaceID: string, body: ToolSetCreateParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
27
23
|
/**
|
|
28
24
|
* Retrieves a tool set by ID from the workspace
|
|
29
25
|
*/
|
|
30
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<ToolSet>;
|
|
26
|
+
retrieve(id: string, params: ToolSetRetrieveParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
31
27
|
/**
|
|
32
28
|
* Updates a tool set in the workspace
|
|
33
29
|
*/
|
|
34
|
-
update(id: string,
|
|
30
|
+
update(id: string, params: ToolSetUpdateParams, options?: RequestOptions): APIPromise<ToolSet>;
|
|
35
31
|
/**
|
|
36
32
|
* Lists all tool sets in the workspace
|
|
37
33
|
*/
|
|
38
|
-
list(query?: ToolSetListParams | null | undefined, options?: RequestOptions): PagePromise<ToolSetsCursorPagination, ToolSet>;
|
|
34
|
+
list(workspaceID: string, query?: ToolSetListParams | null | undefined, options?: RequestOptions): PagePromise<ToolSetsCursorPagination, ToolSet>;
|
|
39
35
|
/**
|
|
40
36
|
* Deletes a tool set in the workspace
|
|
41
37
|
*/
|
|
42
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
38
|
+
delete(id: string, params: ToolSetDeleteParams, options?: RequestOptions): APIPromise<void>;
|
|
43
39
|
/**
|
|
44
40
|
* Lists all events (including sync status) for a tool set
|
|
45
41
|
*/
|
|
46
|
-
listEvents(toolSetID: string,
|
|
42
|
+
listEvents(toolSetID: string, params: ToolSetListEventsParams, options?: RequestOptions): PagePromise<ToolSetEventsCursorPagination, ToolSetEvent>;
|
|
47
43
|
}
|
|
48
44
|
export type ToolSetsCursorPagination = CursorPagination<ToolSet>;
|
|
49
45
|
export type ToolSetEventsCursorPagination = CursorPagination<ToolSetEvent>;
|
|
@@ -80,41 +76,41 @@ export declare namespace McpToolFilter {
|
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
/**
|
|
83
|
-
*
|
|
79
|
+
* Emitted when a tool set sync operation completes successfully.
|
|
84
80
|
*/
|
|
85
81
|
export interface SyncCompleted {
|
|
86
82
|
/**
|
|
87
|
-
* Optional message with additional details
|
|
83
|
+
* Optional message with additional details.
|
|
88
84
|
*/
|
|
89
85
|
message?: string;
|
|
90
86
|
/**
|
|
91
|
-
* Number of tools synced
|
|
87
|
+
* Number of tools synced.
|
|
92
88
|
*/
|
|
93
89
|
toolsSynced?: number;
|
|
94
90
|
}
|
|
95
91
|
/**
|
|
96
|
-
*
|
|
92
|
+
* Emitted when a tool set sync operation fails.
|
|
97
93
|
*/
|
|
98
94
|
export interface SyncFailed {
|
|
99
95
|
/**
|
|
100
|
-
* Indicates this is an error event
|
|
96
|
+
* Indicates this is an error event.
|
|
101
97
|
*/
|
|
102
98
|
error?: boolean;
|
|
103
99
|
/**
|
|
104
|
-
* Optional error type/code for programmatic handling
|
|
100
|
+
* Optional error type/code for programmatic handling.
|
|
105
101
|
*/
|
|
106
102
|
errorType?: string;
|
|
107
103
|
/**
|
|
108
|
-
* Error message describing what went wrong
|
|
104
|
+
* Error message describing what went wrong.
|
|
109
105
|
*/
|
|
110
106
|
message?: string;
|
|
111
107
|
}
|
|
112
108
|
/**
|
|
113
|
-
*
|
|
109
|
+
* Emitted when a tool set sync operation begins.
|
|
114
110
|
*/
|
|
115
111
|
export interface SyncStarted {
|
|
116
112
|
/**
|
|
117
|
-
*
|
|
113
|
+
* Human-readable message describing the start of the sync.
|
|
118
114
|
*/
|
|
119
115
|
message?: string;
|
|
120
116
|
}
|
|
@@ -172,7 +168,7 @@ export declare namespace ToolSetAdapterMcp {
|
|
|
172
168
|
}
|
|
173
169
|
}
|
|
174
170
|
/**
|
|
175
|
-
*
|
|
171
|
+
* A single event in the tool set's operation timeline.
|
|
176
172
|
*/
|
|
177
173
|
export interface ToolSetEvent {
|
|
178
174
|
/**
|
|
@@ -181,21 +177,21 @@ export interface ToolSetEvent {
|
|
|
181
177
|
*/
|
|
182
178
|
metadata: Shared.OperationMetadata;
|
|
183
179
|
/**
|
|
184
|
-
*
|
|
180
|
+
* Event payload for a tool set operation.
|
|
185
181
|
*/
|
|
186
182
|
event?: ToolSetEventData;
|
|
187
183
|
info?: ToolSetEvent.Info;
|
|
188
184
|
/**
|
|
189
|
-
* The tool set this event is associated with
|
|
185
|
+
* The tool set this event is associated with.
|
|
190
186
|
*/
|
|
191
187
|
toolSetId?: string;
|
|
192
188
|
}
|
|
193
189
|
export declare namespace ToolSetEvent {
|
|
194
190
|
interface Info {
|
|
195
191
|
/**
|
|
196
|
-
*
|
|
197
|
-
* account-scoped
|
|
198
|
-
*
|
|
192
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
193
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
194
|
+
* workspaces.
|
|
199
195
|
*/
|
|
200
196
|
createdBy?: AccountAPI.Profile;
|
|
201
197
|
/**
|
|
@@ -205,32 +201,32 @@ export declare namespace ToolSetEvent {
|
|
|
205
201
|
}
|
|
206
202
|
}
|
|
207
203
|
/**
|
|
208
|
-
*
|
|
204
|
+
* Event payload for a tool set operation.
|
|
209
205
|
*/
|
|
210
206
|
export interface ToolSetEventData {
|
|
211
207
|
/**
|
|
212
|
-
*
|
|
208
|
+
* Emitted when a tool set sync operation completes successfully.
|
|
213
209
|
*/
|
|
214
210
|
syncCompleted?: SyncCompleted;
|
|
215
211
|
/**
|
|
216
|
-
*
|
|
212
|
+
* Emitted when a tool set sync operation fails.
|
|
217
213
|
*/
|
|
218
214
|
syncFailed?: SyncFailed;
|
|
219
215
|
/**
|
|
220
|
-
*
|
|
216
|
+
* Emitted when a tool set sync operation begins.
|
|
221
217
|
*/
|
|
222
218
|
syncStarted?: SyncStarted;
|
|
223
219
|
/**
|
|
224
|
-
* Type of the event (e.g., "sync_started", "sync_completed", "sync_failed")
|
|
220
|
+
* Type of the event (e.g., "sync_started", "sync_completed", "sync_failed").
|
|
225
221
|
*/
|
|
226
222
|
type?: string;
|
|
227
223
|
}
|
|
228
224
|
export interface ToolSetInfo {
|
|
229
225
|
agentCount?: number;
|
|
230
226
|
/**
|
|
231
|
-
*
|
|
232
|
-
* account-scoped
|
|
233
|
-
*
|
|
227
|
+
* A profile identifies a user or non-human principal (such as an API key) at the
|
|
228
|
+
* account level. Profiles are account-scoped and can be granted access to multiple
|
|
229
|
+
* workspaces.
|
|
234
230
|
*/
|
|
235
231
|
createdBy?: AccountAPI.Profile;
|
|
236
232
|
lastSync?: string;
|
|
@@ -249,14 +245,31 @@ export interface ToolSetCreateParams {
|
|
|
249
245
|
metadata: Shared.CreateResourceMetadata;
|
|
250
246
|
spec: ToolSetSpec;
|
|
251
247
|
}
|
|
248
|
+
export interface ToolSetRetrieveParams {
|
|
249
|
+
/**
|
|
250
|
+
* Workspace ID.
|
|
251
|
+
*/
|
|
252
|
+
workspaceId: string;
|
|
253
|
+
}
|
|
252
254
|
export interface ToolSetUpdateParams {
|
|
253
255
|
/**
|
|
254
|
-
*
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
* Path param: Workspace ID.
|
|
257
|
+
*/
|
|
258
|
+
workspaceId: string;
|
|
259
|
+
/**
|
|
260
|
+
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
261
|
+
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
262
|
+
* workspace_id, profile_id, created_at) are excluded since they are set by the
|
|
263
|
+
* server.
|
|
257
264
|
*/
|
|
258
265
|
metadata?: Shared.UpdateResourceMetadata;
|
|
266
|
+
/**
|
|
267
|
+
* Body param
|
|
268
|
+
*/
|
|
259
269
|
spec?: ToolSetSpec;
|
|
270
|
+
/**
|
|
271
|
+
* Body param
|
|
272
|
+
*/
|
|
260
273
|
updateMask?: string;
|
|
261
274
|
}
|
|
262
275
|
export interface ToolSetListParams extends CursorPaginationParams {
|
|
@@ -281,18 +294,28 @@ export interface ToolSetListParams extends CursorPaginationParams {
|
|
|
281
294
|
*/
|
|
282
295
|
sortOrder?: string;
|
|
283
296
|
}
|
|
297
|
+
export interface ToolSetDeleteParams {
|
|
298
|
+
/**
|
|
299
|
+
* Workspace ID.
|
|
300
|
+
*/
|
|
301
|
+
workspaceId: string;
|
|
302
|
+
}
|
|
284
303
|
export interface ToolSetListEventsParams extends CursorPaginationParams {
|
|
285
304
|
/**
|
|
286
|
-
*
|
|
305
|
+
* Path param: Workspace ID.
|
|
306
|
+
*/
|
|
307
|
+
workspaceId: string;
|
|
308
|
+
/**
|
|
309
|
+
* Query param: When set to true you may use more of your alloted API rate-limit
|
|
287
310
|
*/
|
|
288
311
|
includeInfo?: boolean;
|
|
289
312
|
/**
|
|
290
|
-
* Sort order for results (asc or desc by creation time)
|
|
313
|
+
* Query param: Sort order for results (asc or desc by creation time)
|
|
291
314
|
*/
|
|
292
315
|
sortOrder?: string;
|
|
293
316
|
}
|
|
294
317
|
export declare namespace ToolSets {
|
|
295
|
-
export { type McpToolFilter as McpToolFilter, type SyncCompleted as SyncCompleted, type SyncFailed as SyncFailed, type SyncStarted as SyncStarted, type ToolSet as ToolSet, type ToolSetAdapter as ToolSetAdapter, type ToolSetAdapterHTTP as ToolSetAdapterHTTP, type ToolSetAdapterMcp as ToolSetAdapterMcp, type ToolSetEvent as ToolSetEvent, type ToolSetEventData as ToolSetEventData, type ToolSetInfo as ToolSetInfo, type ToolSetSpec as ToolSetSpec, type ToolSetsCursorPagination as ToolSetsCursorPagination, type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination, type ToolSetCreateParams as ToolSetCreateParams, type ToolSetUpdateParams as ToolSetUpdateParams, type ToolSetListParams as ToolSetListParams, type ToolSetListEventsParams as ToolSetListEventsParams, };
|
|
318
|
+
export { type McpToolFilter as McpToolFilter, type SyncCompleted as SyncCompleted, type SyncFailed as SyncFailed, type SyncStarted as SyncStarted, type ToolSet as ToolSet, type ToolSetAdapter as ToolSetAdapter, type ToolSetAdapterHTTP as ToolSetAdapterHTTP, type ToolSetAdapterMcp as ToolSetAdapterMcp, type ToolSetEvent as ToolSetEvent, type ToolSetEventData as ToolSetEventData, type ToolSetInfo as ToolSetInfo, type ToolSetSpec as ToolSetSpec, type ToolSetsCursorPagination as ToolSetsCursorPagination, type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination, type ToolSetCreateParams as ToolSetCreateParams, type ToolSetRetrieveParams as ToolSetRetrieveParams, type ToolSetUpdateParams as ToolSetUpdateParams, type ToolSetListParams as ToolSetListParams, type ToolSetDeleteParams as ToolSetDeleteParams, type ToolSetListEventsParams as ToolSetListEventsParams, };
|
|
296
319
|
export { Tools as Tools, type ConfigHTTP as ConfigHTTP, type ConfigMcp as ConfigMcp, type Tool as Tool, type ToolInfo as ToolInfo, type ToolSpec as ToolSpec, type ToolSpecConfig as ToolSpecConfig, type ToolsCursorPagination as ToolsCursorPagination, type ToolCreateParams as ToolCreateParams, type ToolRetrieveParams as ToolRetrieveParams, type ToolUpdateParams as ToolUpdateParams, type ToolListParams as ToolListParams, type ToolDeleteParams as ToolDeleteParams, };
|
|
297
320
|
}
|
|
298
321
|
//# sourceMappingURL=tool-sets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-sets.d.ts","sourceRoot":"","sources":["../../src/resources/tool-sets/tool-sets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,UAAU,EACV,SAAS,EACT,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,KAAK,EACL,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB
|
|
1
|
+
{"version":3,"file":"tool-sets.d.ts","sourceRoot":"","sources":["../../src/resources/tool-sets/tool-sets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,UAAU;OACf,KAAK,MAAM;OACX,KAAK,QAAQ;OACb,EACL,UAAU,EACV,SAAS,EACT,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,KAAK,EACL,qBAAqB,EACtB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB;;;;;;GAMG;AACH,qBAAa,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KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -10,15 +10,11 @@ const pagination_1 = require("../../core/pagination.js");
|
|
|
10
10
|
const headers_1 = require("../../internal/headers.js");
|
|
11
11
|
const path_1 = require("../../internal/utils/path.js");
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
13
|
+
* Manage tool sets and the tools they contain. Tool sets group related tools,
|
|
14
|
+
* and tools define specific capabilities available to agents.
|
|
16
15
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Authentication: Bearer token (JWT)
|
|
21
|
-
* Scope: Workspace-level operations
|
|
16
|
+
* When a tool set is managed, only API key actors can modify its tools; human
|
|
17
|
+
* (profile) actors cannot.
|
|
22
18
|
*/
|
|
23
19
|
class ToolSets extends resource_1.APIResource {
|
|
24
20
|
constructor() {
|
|
@@ -28,32 +24,38 @@ class ToolSets extends resource_1.APIResource {
|
|
|
28
24
|
/**
|
|
29
25
|
* Creates a new tool set in the workspace
|
|
30
26
|
*/
|
|
31
|
-
create(body, options) {
|
|
32
|
-
return this._client.post(
|
|
27
|
+
create(workspaceID, body, options) {
|
|
28
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceID}/tool_sets`, { body, ...options });
|
|
33
29
|
}
|
|
34
30
|
/**
|
|
35
31
|
* Retrieves a tool set by ID from the workspace
|
|
36
32
|
*/
|
|
37
|
-
retrieve(id, options) {
|
|
38
|
-
|
|
33
|
+
retrieve(id, params, options) {
|
|
34
|
+
const { workspaceId } = params;
|
|
35
|
+
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${id}`, options);
|
|
39
36
|
}
|
|
40
37
|
/**
|
|
41
38
|
* Updates a tool set in the workspace
|
|
42
39
|
*/
|
|
43
|
-
update(id,
|
|
44
|
-
|
|
40
|
+
update(id, params, options) {
|
|
41
|
+
const { workspaceId, ...body } = params;
|
|
42
|
+
return this._client.put((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${id}`, { body, ...options });
|
|
45
43
|
}
|
|
46
44
|
/**
|
|
47
45
|
* Lists all tool sets in the workspace
|
|
48
46
|
*/
|
|
49
|
-
list(query = {}, options) {
|
|
50
|
-
return this._client.getAPIList(
|
|
47
|
+
list(workspaceID, query = {}, options) {
|
|
48
|
+
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceID}/tool_sets`, (pagination_1.CursorPagination), {
|
|
49
|
+
query,
|
|
50
|
+
...options,
|
|
51
|
+
});
|
|
51
52
|
}
|
|
52
53
|
/**
|
|
53
54
|
* Deletes a tool set in the workspace
|
|
54
55
|
*/
|
|
55
|
-
delete(id, options) {
|
|
56
|
-
|
|
56
|
+
delete(id, params, options) {
|
|
57
|
+
const { workspaceId } = params;
|
|
58
|
+
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${id}`, {
|
|
57
59
|
...options,
|
|
58
60
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
61
|
});
|
|
@@ -61,11 +63,9 @@ class ToolSets extends resource_1.APIResource {
|
|
|
61
63
|
/**
|
|
62
64
|
* Lists all events (including sync status) for a tool set
|
|
63
65
|
*/
|
|
64
|
-
listEvents(toolSetID,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
...options,
|
|
68
|
-
});
|
|
66
|
+
listEvents(toolSetID, params, options) {
|
|
67
|
+
const { workspaceId, ...query } = params;
|
|
68
|
+
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/events`, (pagination_1.CursorPagination), { query, ...options });
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
exports.ToolSets = ToolSets;
|