@cadenya/cadenya 0.84.0 → 0.86.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/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- 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/account.js +1 -1
- package/resources/account.js.map +1 -1
- package/resources/account.mjs +1 -1
- package/resources/account.mjs.map +1 -1
- package/resources/agents/agents.d.mts +55 -9
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +55 -9
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +38 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +38 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.mts +2 -2
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +2 -2
- 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 +67 -9
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +67 -9
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +34 -0
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +34 -0
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +11 -2
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +11 -2
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/api-keys/api-keys.d.mts +4 -2
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +4 -2
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +2 -2
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +2 -2
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/api-keys/index.d.mts +1 -1
- package/resources/api-keys/index.d.mts.map +1 -1
- package/resources/api-keys/index.d.ts +1 -1
- package/resources/api-keys/index.d.ts.map +1 -1
- package/resources/api-keys/index.js.map +1 -1
- package/resources/api-keys/index.mjs.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +23 -7
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +23 -7
- package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
- package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +22 -13
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +22 -13
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +12 -3
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +12 -3
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +19 -3
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +19 -3
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.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 +40 -3
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +40 -3
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +27 -1
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +27 -1
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +39 -5
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +39 -5
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +23 -1
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +23 -1
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/src/client.ts +18 -2
- package/src/resources/account.ts +1 -1
- package/src/resources/agents/agents.ts +89 -15
- package/src/resources/agents/index.ts +7 -0
- package/src/resources/agents/schedules.ts +98 -13
- package/src/resources/agents/variations.ts +12 -2
- package/src/resources/api-keys/api-keys.ts +5 -2
- package/src/resources/api-keys/index.ts +1 -0
- package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +26 -7
- package/src/resources/index.ts +9 -1
- package/src/resources/models.ts +29 -15
- package/src/resources/objectives/objectives.ts +17 -3
- package/src/resources/shared.ts +5 -0
- package/src/resources/tool-sets/index.ts +4 -0
- package/src/resources/tool-sets/tool-sets.ts +62 -1
- package/src/resources/tool-sets/tools.ts +60 -12
- 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
|
@@ -41,7 +41,7 @@ export class Tools extends APIResource {
|
|
|
41
41
|
*/
|
|
42
42
|
update(id: string, params: ToolUpdateParams, options?: RequestOptions): APIPromise<Tool> {
|
|
43
43
|
const { workspaceId, toolSetId, ...body } = params;
|
|
44
|
-
return this._client.
|
|
44
|
+
return this._client.patch(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetId}/tools/${id}`, {
|
|
45
45
|
body,
|
|
46
46
|
...options,
|
|
47
47
|
});
|
|
@@ -73,6 +73,30 @@ export class Tools extends APIResource {
|
|
|
73
73
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Transitions a tool to STATE_OMITTED, excluding it from agent use. Fails if the
|
|
79
|
+
* tool is currently assigned to agent variations.
|
|
80
|
+
*/
|
|
81
|
+
omit(id: string, params: ToolOmitParams, options?: RequestOptions): APIPromise<Tool> {
|
|
82
|
+
const { workspaceId, toolSetId, ...body } = params;
|
|
83
|
+
return this._client.post(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetId}/tools/${id}:omit`, {
|
|
84
|
+
body,
|
|
85
|
+
...options,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Transitions an omitted tool back to STATE_AVAILABLE. For managed tool sets, the
|
|
91
|
+
* next sync may omit the tool again if its filters still exclude it.
|
|
92
|
+
*/
|
|
93
|
+
restore(id: string, params: ToolRestoreParams, options?: RequestOptions): APIPromise<Tool> {
|
|
94
|
+
const { workspaceId, toolSetId, ...body } = params;
|
|
95
|
+
return this._client.post(path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetId}/tools/${id}:restore`, {
|
|
96
|
+
body,
|
|
97
|
+
...options,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
76
100
|
}
|
|
77
101
|
|
|
78
102
|
export type ToolsCursorPagination = CursorPagination<Tool>;
|
|
@@ -125,6 +149,12 @@ export interface Tool {
|
|
|
125
149
|
|
|
126
150
|
spec: ToolSpec;
|
|
127
151
|
|
|
152
|
+
/**
|
|
153
|
+
* The current lifecycle state of the tool. Output only. Use the :omit and :restore
|
|
154
|
+
* actions to transition; tool set syncs may also update it.
|
|
155
|
+
*/
|
|
156
|
+
state: 'STATE_UNSPECIFIED' | 'STATE_AVAILABLE' | 'STATE_OMITTED' | 'STATE_ARCHIVED';
|
|
157
|
+
|
|
128
158
|
info?: ToolInfo;
|
|
129
159
|
}
|
|
130
160
|
|
|
@@ -154,13 +184,7 @@ export interface ToolSpec {
|
|
|
154
184
|
|
|
155
185
|
parameters: { [key: string]: unknown };
|
|
156
186
|
|
|
157
|
-
|
|
158
|
-
| 'TOOL_STATUS_UNSPECIFIED'
|
|
159
|
-
| 'TOOL_STATUS_AVAILABLE'
|
|
160
|
-
| 'TOOL_STATUS_OMITTED'
|
|
161
|
-
| 'TOOL_STATUS_ARCHIVED';
|
|
162
|
-
|
|
163
|
-
requiresApproval?: boolean;
|
|
187
|
+
requiresApproval: boolean;
|
|
164
188
|
}
|
|
165
189
|
|
|
166
190
|
/**
|
|
@@ -283,11 +307,9 @@ export interface ToolListParams extends CursorPaginationParams {
|
|
|
283
307
|
sortOrder?: string;
|
|
284
308
|
|
|
285
309
|
/**
|
|
286
|
-
* Query param: Filter by tool
|
|
310
|
+
* Query param: Filter by tool state. Multiple values are OR'd together.
|
|
287
311
|
*/
|
|
288
|
-
|
|
289
|
-
'TOOL_STATUS_UNSPECIFIED' | 'TOOL_STATUS_AVAILABLE' | 'TOOL_STATUS_OMITTED' | 'TOOL_STATUS_ARCHIVED'
|
|
290
|
-
>;
|
|
312
|
+
states?: Array<'STATE_UNSPECIFIED' | 'STATE_AVAILABLE' | 'STATE_OMITTED' | 'STATE_ARCHIVED'>;
|
|
291
313
|
}
|
|
292
314
|
|
|
293
315
|
export interface ToolDeleteParams {
|
|
@@ -302,6 +324,30 @@ export interface ToolDeleteParams {
|
|
|
302
324
|
toolSetId: string;
|
|
303
325
|
}
|
|
304
326
|
|
|
327
|
+
export interface ToolOmitParams {
|
|
328
|
+
/**
|
|
329
|
+
* Workspace ID.
|
|
330
|
+
*/
|
|
331
|
+
workspaceId: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Tool set ID. Accepts the canonical ts\_… form or the external_id:<value> form.
|
|
335
|
+
*/
|
|
336
|
+
toolSetId: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface ToolRestoreParams {
|
|
340
|
+
/**
|
|
341
|
+
* Workspace ID.
|
|
342
|
+
*/
|
|
343
|
+
workspaceId: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Tool set ID. Accepts the canonical ts\_… form or the external_id:<value> form.
|
|
347
|
+
*/
|
|
348
|
+
toolSetId: string;
|
|
349
|
+
}
|
|
350
|
+
|
|
305
351
|
export declare namespace Tools {
|
|
306
352
|
export {
|
|
307
353
|
type ConfigHTTP as ConfigHTTP,
|
|
@@ -317,5 +363,7 @@ export declare namespace Tools {
|
|
|
317
363
|
type ToolUpdateParams as ToolUpdateParams,
|
|
318
364
|
type ToolListParams as ToolListParams,
|
|
319
365
|
type ToolDeleteParams as ToolDeleteParams,
|
|
366
|
+
type ToolOmitParams as ToolOmitParams,
|
|
367
|
+
type ToolRestoreParams as ToolRestoreParams,
|
|
320
368
|
};
|
|
321
369
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.86.0'; // 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.86.0";
|
|
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.86.0";
|
|
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.86.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|