@cadenya/cadenya 0.77.0 → 0.78.1
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/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +2 -2
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +2 -2
- 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 +96 -45
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +96 -45
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +8 -0
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +8 -0
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +7 -1
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +7 -1
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/src/client.ts +14 -2
- package/src/resources/index.ts +7 -1
- package/src/resources/tool-sets/index.ts +8 -1
- package/src/resources/tool-sets/tool-sets.ts +120 -44
- package/src/resources/tool-sets/tools.ts +11 -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
|
@@ -58,6 +58,11 @@ export interface ConfigMcp {
|
|
|
58
58
|
toolName?: string;
|
|
59
59
|
toolTitle?: string;
|
|
60
60
|
}
|
|
61
|
+
export interface ConfigOpenAPI {
|
|
62
|
+
method?: string;
|
|
63
|
+
operationId?: string;
|
|
64
|
+
path?: string;
|
|
65
|
+
}
|
|
61
66
|
export interface Tool {
|
|
62
67
|
/**
|
|
63
68
|
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
@@ -100,6 +105,7 @@ export interface ToolSpec {
|
|
|
100
105
|
export interface ToolSpecConfig {
|
|
101
106
|
http?: ConfigHTTP;
|
|
102
107
|
mcp?: ConfigMcp;
|
|
108
|
+
openapi?: ConfigOpenAPI;
|
|
103
109
|
}
|
|
104
110
|
export interface ToolCreateParams {
|
|
105
111
|
/**
|
|
@@ -205,6 +211,6 @@ export interface ToolDeleteParams {
|
|
|
205
211
|
toolSetId: string;
|
|
206
212
|
}
|
|
207
213
|
export declare namespace Tools {
|
|
208
|
-
export { 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, };
|
|
214
|
+
export { type ConfigHTTP as ConfigHTTP, type ConfigMcp as ConfigMcp, type ConfigOpenAPI as ConfigOpenAPI, 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, };
|
|
209
215
|
}
|
|
210
216
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1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AAG,uBAAuB,GAAG,qBAAqB,GAAG,sBAAsB,CACrG,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -169,19 +169,25 @@ import {
|
|
|
169
169
|
UserMessage,
|
|
170
170
|
} from './resources/objectives/objectives';
|
|
171
171
|
import {
|
|
172
|
-
|
|
172
|
+
ApprovalRequirementFilter,
|
|
173
|
+
AttributeFilter,
|
|
174
|
+
StringMatcher,
|
|
173
175
|
SyncCompleted,
|
|
174
176
|
SyncFailed,
|
|
175
177
|
SyncStarted,
|
|
178
|
+
ToolFilter,
|
|
176
179
|
ToolSet,
|
|
177
180
|
ToolSetAdapter,
|
|
178
181
|
ToolSetAdapterHTTP,
|
|
179
182
|
ToolSetAdapterMcp,
|
|
183
|
+
ToolSetAdapterOpenAPI,
|
|
180
184
|
ToolSetCreateParams,
|
|
181
185
|
ToolSetDeleteParams,
|
|
182
186
|
ToolSetEvent,
|
|
183
187
|
ToolSetEventData,
|
|
184
188
|
ToolSetEventsCursorPagination,
|
|
189
|
+
ToolSetGetOpenAPISpecParams,
|
|
190
|
+
ToolSetGetOpenAPISpecResponse,
|
|
185
191
|
ToolSetInfo,
|
|
186
192
|
ToolSetListEventsParams,
|
|
187
193
|
ToolSetListParams,
|
|
@@ -1124,18 +1130,23 @@ export declare namespace Cadenya {
|
|
|
1124
1130
|
|
|
1125
1131
|
export {
|
|
1126
1132
|
ToolSets as ToolSets,
|
|
1127
|
-
type
|
|
1133
|
+
type ApprovalRequirementFilter as ApprovalRequirementFilter,
|
|
1134
|
+
type AttributeFilter as AttributeFilter,
|
|
1135
|
+
type StringMatcher as StringMatcher,
|
|
1128
1136
|
type SyncCompleted as SyncCompleted,
|
|
1129
1137
|
type SyncFailed as SyncFailed,
|
|
1130
1138
|
type SyncStarted as SyncStarted,
|
|
1139
|
+
type ToolFilter as ToolFilter,
|
|
1131
1140
|
type ToolSet as ToolSet,
|
|
1132
1141
|
type ToolSetAdapter as ToolSetAdapter,
|
|
1133
1142
|
type ToolSetAdapterHTTP as ToolSetAdapterHTTP,
|
|
1134
1143
|
type ToolSetAdapterMcp as ToolSetAdapterMcp,
|
|
1144
|
+
type ToolSetAdapterOpenAPI as ToolSetAdapterOpenAPI,
|
|
1135
1145
|
type ToolSetEvent as ToolSetEvent,
|
|
1136
1146
|
type ToolSetEventData as ToolSetEventData,
|
|
1137
1147
|
type ToolSetInfo as ToolSetInfo,
|
|
1138
1148
|
type ToolSetSpec as ToolSetSpec,
|
|
1149
|
+
type ToolSetGetOpenAPISpecResponse as ToolSetGetOpenAPISpecResponse,
|
|
1139
1150
|
type ToolSetsCursorPagination as ToolSetsCursorPagination,
|
|
1140
1151
|
type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination,
|
|
1141
1152
|
type ToolSetCreateParams as ToolSetCreateParams,
|
|
@@ -1143,6 +1154,7 @@ export declare namespace Cadenya {
|
|
|
1143
1154
|
type ToolSetUpdateParams as ToolSetUpdateParams,
|
|
1144
1155
|
type ToolSetListParams as ToolSetListParams,
|
|
1145
1156
|
type ToolSetDeleteParams as ToolSetDeleteParams,
|
|
1157
|
+
type ToolSetGetOpenAPISpecParams as ToolSetGetOpenAPISpecParams,
|
|
1146
1158
|
type ToolSetListEventsParams as ToolSetListEventsParams,
|
|
1147
1159
|
};
|
|
1148
1160
|
|
package/src/resources/index.ts
CHANGED
|
@@ -124,23 +124,29 @@ export {
|
|
|
124
124
|
} from './search';
|
|
125
125
|
export {
|
|
126
126
|
ToolSets,
|
|
127
|
-
type
|
|
127
|
+
type ApprovalRequirementFilter,
|
|
128
|
+
type AttributeFilter,
|
|
129
|
+
type StringMatcher,
|
|
128
130
|
type SyncCompleted,
|
|
129
131
|
type SyncFailed,
|
|
130
132
|
type SyncStarted,
|
|
133
|
+
type ToolFilter,
|
|
131
134
|
type ToolSet,
|
|
132
135
|
type ToolSetAdapter,
|
|
133
136
|
type ToolSetAdapterHTTP,
|
|
134
137
|
type ToolSetAdapterMcp,
|
|
138
|
+
type ToolSetAdapterOpenAPI,
|
|
135
139
|
type ToolSetEvent,
|
|
136
140
|
type ToolSetEventData,
|
|
137
141
|
type ToolSetInfo,
|
|
138
142
|
type ToolSetSpec,
|
|
143
|
+
type ToolSetGetOpenAPISpecResponse,
|
|
139
144
|
type ToolSetCreateParams,
|
|
140
145
|
type ToolSetRetrieveParams,
|
|
141
146
|
type ToolSetUpdateParams,
|
|
142
147
|
type ToolSetListParams,
|
|
143
148
|
type ToolSetDeleteParams,
|
|
149
|
+
type ToolSetGetOpenAPISpecParams,
|
|
144
150
|
type ToolSetListEventsParams,
|
|
145
151
|
type ToolSetsCursorPagination,
|
|
146
152
|
type ToolSetEventsCursorPagination,
|
|
@@ -2,23 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
ToolSets,
|
|
5
|
-
type
|
|
5
|
+
type ApprovalRequirementFilter,
|
|
6
|
+
type AttributeFilter,
|
|
7
|
+
type StringMatcher,
|
|
6
8
|
type SyncCompleted,
|
|
7
9
|
type SyncFailed,
|
|
8
10
|
type SyncStarted,
|
|
11
|
+
type ToolFilter,
|
|
9
12
|
type ToolSet,
|
|
10
13
|
type ToolSetAdapter,
|
|
11
14
|
type ToolSetAdapterHTTP,
|
|
12
15
|
type ToolSetAdapterMcp,
|
|
16
|
+
type ToolSetAdapterOpenAPI,
|
|
13
17
|
type ToolSetEvent,
|
|
14
18
|
type ToolSetEventData,
|
|
15
19
|
type ToolSetInfo,
|
|
16
20
|
type ToolSetSpec,
|
|
21
|
+
type ToolSetGetOpenAPISpecResponse,
|
|
17
22
|
type ToolSetCreateParams,
|
|
18
23
|
type ToolSetRetrieveParams,
|
|
19
24
|
type ToolSetUpdateParams,
|
|
20
25
|
type ToolSetListParams,
|
|
21
26
|
type ToolSetDeleteParams,
|
|
27
|
+
type ToolSetGetOpenAPISpecParams,
|
|
22
28
|
type ToolSetListEventsParams,
|
|
23
29
|
type ToolSetsCursorPagination,
|
|
24
30
|
type ToolSetEventsCursorPagination,
|
|
@@ -27,6 +33,7 @@ export {
|
|
|
27
33
|
Tools,
|
|
28
34
|
type ConfigHTTP,
|
|
29
35
|
type ConfigMcp,
|
|
36
|
+
type ConfigOpenAPI,
|
|
30
37
|
type Tool,
|
|
31
38
|
type ToolInfo,
|
|
32
39
|
type ToolSpec,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as ToolSetsAPI from './tool-sets';
|
|
5
4
|
import * as AccountAPI from '../account';
|
|
6
5
|
import * as Shared from '../shared';
|
|
7
6
|
import * as ToolsAPI from './tools';
|
|
8
7
|
import {
|
|
9
8
|
ConfigHTTP,
|
|
10
9
|
ConfigMcp,
|
|
10
|
+
ConfigOpenAPI,
|
|
11
11
|
Tool,
|
|
12
12
|
ToolCreateParams,
|
|
13
13
|
ToolDeleteParams,
|
|
@@ -84,6 +84,19 @@ export class ToolSets extends APIResource {
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves the current OpenAPI specification JSON that has been consumed by the
|
|
89
|
+
* tool set. Only applicable to tool sets using the OpenAPI adapter.
|
|
90
|
+
*/
|
|
91
|
+
getOpenAPISpec(
|
|
92
|
+
toolSetID: string,
|
|
93
|
+
params: ToolSetGetOpenAPISpecParams,
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): APIPromise<ToolSetGetOpenAPISpecResponse> {
|
|
96
|
+
const { workspaceId } = params;
|
|
97
|
+
return this._client.get(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/openapi_spec`, options);
|
|
98
|
+
}
|
|
99
|
+
|
|
87
100
|
/**
|
|
88
101
|
* Lists all events (including sync status) for a tool set
|
|
89
102
|
*/
|
|
@@ -106,45 +119,45 @@ export type ToolSetsCursorPagination = CursorPagination<ToolSet>;
|
|
|
106
119
|
export type ToolSetEventsCursorPagination = CursorPagination<ToolSetEvent>;
|
|
107
120
|
|
|
108
121
|
/**
|
|
109
|
-
*
|
|
122
|
+
* Approval filters that will automatically set the approval requirement on tools
|
|
123
|
+
* synced from an external source
|
|
110
124
|
*/
|
|
111
|
-
export interface
|
|
112
|
-
|
|
125
|
+
export interface ApprovalRequirementFilter {
|
|
126
|
+
always?: boolean;
|
|
113
127
|
|
|
114
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Top-level filter with simple boolean logic (no nesting)
|
|
130
|
+
*/
|
|
131
|
+
only?: ToolFilter;
|
|
115
132
|
}
|
|
116
133
|
|
|
117
|
-
|
|
134
|
+
/**
|
|
135
|
+
* Single attribute filter
|
|
136
|
+
*/
|
|
137
|
+
export interface AttributeFilter {
|
|
138
|
+
attribute: 'ATTRIBUTE_UNSPECIFIED' | 'ATTRIBUTE_NAME' | 'ATTRIBUTE_TITLE' | 'ATTRIBUTE_DESCRIPTION';
|
|
139
|
+
|
|
118
140
|
/**
|
|
119
|
-
*
|
|
141
|
+
* String matching operations
|
|
120
142
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* String matching operations
|
|
126
|
-
*/
|
|
127
|
-
matcher?: Filter.Matcher;
|
|
128
|
-
}
|
|
143
|
+
matcher?: StringMatcher;
|
|
144
|
+
}
|
|
129
145
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
caseSensitive?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* String matching operations
|
|
148
|
+
*/
|
|
149
|
+
export interface StringMatcher {
|
|
150
|
+
caseSensitive?: boolean;
|
|
136
151
|
|
|
137
|
-
|
|
152
|
+
contains?: string;
|
|
138
153
|
|
|
139
|
-
|
|
154
|
+
endsWith?: string;
|
|
140
155
|
|
|
141
|
-
|
|
156
|
+
exact?: string;
|
|
142
157
|
|
|
143
|
-
|
|
158
|
+
regex?: string;
|
|
144
159
|
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
}
|
|
160
|
+
startsWith?: string;
|
|
148
161
|
}
|
|
149
162
|
|
|
150
163
|
/**
|
|
@@ -192,6 +205,15 @@ export interface SyncStarted {
|
|
|
192
205
|
message?: string;
|
|
193
206
|
}
|
|
194
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Top-level filter with simple boolean logic (no nesting)
|
|
210
|
+
*/
|
|
211
|
+
export interface ToolFilter {
|
|
212
|
+
operator: 'OPERATOR_UNSPECIFIED' | 'OPERATOR_AND' | 'OPERATOR_OR';
|
|
213
|
+
|
|
214
|
+
filters?: Array<AttributeFilter>;
|
|
215
|
+
}
|
|
216
|
+
|
|
195
217
|
export interface ToolSet {
|
|
196
218
|
/**
|
|
197
219
|
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
@@ -210,6 +232,8 @@ export interface ToolSetAdapter {
|
|
|
210
232
|
http?: ToolSetAdapterHTTP;
|
|
211
233
|
|
|
212
234
|
mcp?: ToolSetAdapterMcp;
|
|
235
|
+
|
|
236
|
+
openapi?: ToolSetAdapterOpenAPI;
|
|
213
237
|
}
|
|
214
238
|
|
|
215
239
|
export interface ToolSetAdapterHTTP {
|
|
@@ -222,37 +246,68 @@ export interface ToolSetAdapterMcp {
|
|
|
222
246
|
/**
|
|
223
247
|
* Top-level filter with simple boolean logic (no nesting)
|
|
224
248
|
*/
|
|
225
|
-
excludeTools?:
|
|
249
|
+
excludeTools?: ToolFilter;
|
|
226
250
|
|
|
227
251
|
headers?: { [key: string]: string };
|
|
228
252
|
|
|
229
253
|
/**
|
|
230
254
|
* Top-level filter with simple boolean logic (no nesting)
|
|
231
255
|
*/
|
|
232
|
-
includeTools?:
|
|
256
|
+
includeTools?: ToolFilter;
|
|
233
257
|
|
|
234
258
|
/**
|
|
235
|
-
* Approval filters that will automatically set the approval requirement on
|
|
236
|
-
*
|
|
259
|
+
* Approval filters that will automatically set the approval requirement on tools
|
|
260
|
+
* synced from an external source
|
|
237
261
|
*/
|
|
238
|
-
toolApprovals?:
|
|
262
|
+
toolApprovals?: ApprovalRequirementFilter;
|
|
239
263
|
|
|
240
264
|
url?: string;
|
|
241
265
|
}
|
|
242
266
|
|
|
243
|
-
export
|
|
267
|
+
export interface ToolSetAdapterOpenAPI {
|
|
244
268
|
/**
|
|
245
|
-
*
|
|
246
|
-
*
|
|
269
|
+
* Base URL for dispatching tool calls. If set, overrides the server resolved from
|
|
270
|
+
* the spec's servers array.
|
|
247
271
|
*/
|
|
248
|
-
|
|
249
|
-
always?: boolean;
|
|
272
|
+
baseUrl?: string;
|
|
250
273
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
274
|
+
/**
|
|
275
|
+
* Top-level filter with simple boolean logic (no nesting)
|
|
276
|
+
*/
|
|
277
|
+
excludeTools?: ToolFilter;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Headers sent when fetching the spec from a URL and when dispatching tool calls.
|
|
281
|
+
*/
|
|
282
|
+
headers?: { [key: string]: string };
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Top-level filter with simple boolean logic (no nesting)
|
|
286
|
+
*/
|
|
287
|
+
includeTools?: ToolFilter;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Name of the server entry in the spec's servers array (OpenAPI 3.2 server.name
|
|
291
|
+
* field). Used to select which server URL to dispatch to when base_url is not set.
|
|
292
|
+
* If unset, the first server is used. Ignored when base_url is set.
|
|
293
|
+
*/
|
|
294
|
+
serverName?: string;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Approval filters that will automatically set the approval requirement on tools
|
|
298
|
+
* synced from an external source
|
|
299
|
+
*/
|
|
300
|
+
toolApprovals?: ApprovalRequirementFilter;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* ID of a COMPLETE Upload containing the OpenAPI spec document.
|
|
304
|
+
*/
|
|
305
|
+
uploadId?: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* URL to fetch the OpenAPI spec from. Synced automatically every hour.
|
|
309
|
+
*/
|
|
310
|
+
url?: string;
|
|
256
311
|
}
|
|
257
312
|
|
|
258
313
|
/**
|
|
@@ -340,6 +395,13 @@ export interface ToolSetSpec {
|
|
|
340
395
|
description?: string;
|
|
341
396
|
}
|
|
342
397
|
|
|
398
|
+
export interface ToolSetGetOpenAPISpecResponse {
|
|
399
|
+
/**
|
|
400
|
+
* The consumed OpenAPI specification as a JSON string.
|
|
401
|
+
*/
|
|
402
|
+
spec?: string;
|
|
403
|
+
}
|
|
404
|
+
|
|
343
405
|
export interface ToolSetCreateParams {
|
|
344
406
|
/**
|
|
345
407
|
* CreateResourceMetadata contains the user-provided fields for creating a
|
|
@@ -417,6 +479,13 @@ export interface ToolSetDeleteParams {
|
|
|
417
479
|
workspaceId: string;
|
|
418
480
|
}
|
|
419
481
|
|
|
482
|
+
export interface ToolSetGetOpenAPISpecParams {
|
|
483
|
+
/**
|
|
484
|
+
* Workspace ID.
|
|
485
|
+
*/
|
|
486
|
+
workspaceId: string;
|
|
487
|
+
}
|
|
488
|
+
|
|
420
489
|
export interface ToolSetListEventsParams extends CursorPaginationParams {
|
|
421
490
|
/**
|
|
422
491
|
* Path param: Workspace ID.
|
|
@@ -438,18 +507,23 @@ ToolSets.Tools = Tools;
|
|
|
438
507
|
|
|
439
508
|
export declare namespace ToolSets {
|
|
440
509
|
export {
|
|
441
|
-
type
|
|
510
|
+
type ApprovalRequirementFilter as ApprovalRequirementFilter,
|
|
511
|
+
type AttributeFilter as AttributeFilter,
|
|
512
|
+
type StringMatcher as StringMatcher,
|
|
442
513
|
type SyncCompleted as SyncCompleted,
|
|
443
514
|
type SyncFailed as SyncFailed,
|
|
444
515
|
type SyncStarted as SyncStarted,
|
|
516
|
+
type ToolFilter as ToolFilter,
|
|
445
517
|
type ToolSet as ToolSet,
|
|
446
518
|
type ToolSetAdapter as ToolSetAdapter,
|
|
447
519
|
type ToolSetAdapterHTTP as ToolSetAdapterHTTP,
|
|
448
520
|
type ToolSetAdapterMcp as ToolSetAdapterMcp,
|
|
521
|
+
type ToolSetAdapterOpenAPI as ToolSetAdapterOpenAPI,
|
|
449
522
|
type ToolSetEvent as ToolSetEvent,
|
|
450
523
|
type ToolSetEventData as ToolSetEventData,
|
|
451
524
|
type ToolSetInfo as ToolSetInfo,
|
|
452
525
|
type ToolSetSpec as ToolSetSpec,
|
|
526
|
+
type ToolSetGetOpenAPISpecResponse as ToolSetGetOpenAPISpecResponse,
|
|
453
527
|
type ToolSetsCursorPagination as ToolSetsCursorPagination,
|
|
454
528
|
type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination,
|
|
455
529
|
type ToolSetCreateParams as ToolSetCreateParams,
|
|
@@ -457,6 +531,7 @@ export declare namespace ToolSets {
|
|
|
457
531
|
type ToolSetUpdateParams as ToolSetUpdateParams,
|
|
458
532
|
type ToolSetListParams as ToolSetListParams,
|
|
459
533
|
type ToolSetDeleteParams as ToolSetDeleteParams,
|
|
534
|
+
type ToolSetGetOpenAPISpecParams as ToolSetGetOpenAPISpecParams,
|
|
460
535
|
type ToolSetListEventsParams as ToolSetListEventsParams,
|
|
461
536
|
};
|
|
462
537
|
|
|
@@ -464,6 +539,7 @@ export declare namespace ToolSets {
|
|
|
464
539
|
Tools as Tools,
|
|
465
540
|
type ConfigHTTP as ConfigHTTP,
|
|
466
541
|
type ConfigMcp as ConfigMcp,
|
|
542
|
+
type ConfigOpenAPI as ConfigOpenAPI,
|
|
467
543
|
type Tool as Tool,
|
|
468
544
|
type ToolInfo as ToolInfo,
|
|
469
545
|
type ToolSpec as ToolSpec,
|
|
@@ -109,6 +109,14 @@ export interface ConfigMcp {
|
|
|
109
109
|
toolTitle?: string;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
export interface ConfigOpenAPI {
|
|
113
|
+
method?: string;
|
|
114
|
+
|
|
115
|
+
operationId?: string;
|
|
116
|
+
|
|
117
|
+
path?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
112
120
|
export interface Tool {
|
|
113
121
|
/**
|
|
114
122
|
* Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
|
|
@@ -164,6 +172,8 @@ export interface ToolSpecConfig {
|
|
|
164
172
|
http?: ConfigHTTP;
|
|
165
173
|
|
|
166
174
|
mcp?: ConfigMcp;
|
|
175
|
+
|
|
176
|
+
openapi?: ConfigOpenAPI;
|
|
167
177
|
}
|
|
168
178
|
|
|
169
179
|
export interface ToolCreateParams {
|
|
@@ -296,6 +306,7 @@ export declare namespace Tools {
|
|
|
296
306
|
export {
|
|
297
307
|
type ConfigHTTP as ConfigHTTP,
|
|
298
308
|
type ConfigMcp as ConfigMcp,
|
|
309
|
+
type ConfigOpenAPI as ConfigOpenAPI,
|
|
299
310
|
type Tool as Tool,
|
|
300
311
|
type ToolInfo as ToolInfo,
|
|
301
312
|
type ToolSpec as ToolSpec,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.78.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.78.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.78.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.78.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|