@cadenya/cadenya 0.125.0 → 0.127.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/account.d.mts +0 -8
  10. package/resources/account.d.mts.map +1 -1
  11. package/resources/account.d.ts +0 -8
  12. package/resources/account.d.ts.map +1 -1
  13. package/resources/account.js.map +1 -1
  14. package/resources/account.mjs.map +1 -1
  15. package/resources/index.d.mts +1 -1
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +1 -1
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js.map +1 -1
  20. package/resources/index.mjs.map +1 -1
  21. package/resources/tool-sets/index.d.mts +1 -1
  22. package/resources/tool-sets/index.d.mts.map +1 -1
  23. package/resources/tool-sets/index.d.ts +1 -1
  24. package/resources/tool-sets/index.d.ts.map +1 -1
  25. package/resources/tool-sets/index.js.map +1 -1
  26. package/resources/tool-sets/index.mjs.map +1 -1
  27. package/resources/tool-sets/tool-sets.d.mts +47 -1
  28. package/resources/tool-sets/tool-sets.d.mts.map +1 -1
  29. package/resources/tool-sets/tool-sets.d.ts +47 -1
  30. package/resources/tool-sets/tool-sets.d.ts.map +1 -1
  31. package/resources/tool-sets/tool-sets.js +10 -0
  32. package/resources/tool-sets/tool-sets.js.map +1 -1
  33. package/resources/tool-sets/tool-sets.mjs +10 -0
  34. package/resources/tool-sets/tool-sets.mjs.map +1 -1
  35. package/src/client.ts +6 -0
  36. package/src/resources/account.ts +0 -9
  37. package/src/resources/index.ts +3 -0
  38. package/src/resources/tool-sets/index.ts +3 -0
  39. package/src/resources/tool-sets/tool-sets.ts +69 -0
  40. package/src/version.ts +1 -1
  41. package/version.d.mts +1 -1
  42. package/version.d.ts +1 -1
  43. package/version.js +1 -1
  44. package/version.mjs +1 -1
@@ -159,6 +159,25 @@ export class ToolSets extends APIResource {
159
159
  );
160
160
  }
161
161
 
162
+ /**
163
+ * Lists the agent variations (with their parent agent) that have the tool set
164
+ * assigned. Pass tool_id to instead list variations with a direct assignment of
165
+ * that individual tool; variations that receive the tool implicitly through a
166
+ * whole-set assignment are not included in that filtered view.
167
+ */
168
+ listUsage(
169
+ toolSetID: string,
170
+ params: ToolSetListUsageParams | null | undefined = {},
171
+ options?: RequestOptions,
172
+ ): PagePromise<ToolSetUsagesCursorPagination, ToolSetUsage> {
173
+ const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
174
+ return this._client.getAPIList(
175
+ path`/v1/workspaces/${workspaceId}/tool_sets/${toolSetID}/usage`,
176
+ CursorPagination<ToolSetUsage>,
177
+ { query, ...options },
178
+ );
179
+ }
180
+
162
181
  /**
163
182
  * Transitions an archived tool set back to STATE_ACTIVE. Managed tool sets resume
164
183
  * syncing on their next cycle and their tools become available to objectives
@@ -177,6 +196,8 @@ export type ToolSetsCursorPagination = CursorPagination<ToolSet>;
177
196
 
178
197
  export type ToolSetEventsCursorPagination = CursorPagination<ToolSetEvent>;
179
198
 
199
+ export type ToolSetUsagesCursorPagination = CursorPagination<ToolSetUsage>;
200
+
180
201
  /**
181
202
  * Approval filters that will automatically set the approval requirement on tools
182
203
  * synced from an external source
@@ -624,6 +645,32 @@ export interface ToolSetSpec {
624
645
  description?: string;
625
646
  }
626
647
 
648
+ /**
649
+ * ToolSetUsage describes one agent variation that uses the tool set (or, when
650
+ * filtering by tool, an individual tool within it).
651
+ */
652
+ export interface ToolSetUsage {
653
+ /**
654
+ * When the assignment was created.
655
+ */
656
+ assignedAt: string;
657
+
658
+ /**
659
+ * Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
660
+ */
661
+ agent?: Shared.ResourceMetadata;
662
+
663
+ /**
664
+ * Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
665
+ */
666
+ agentVariation?: Shared.ResourceMetadata;
667
+
668
+ /**
669
+ * Standard metadata for persistent, named resources (e.g., agents, tools, prompts)
670
+ */
671
+ model?: Shared.ResourceMetadata;
672
+ }
673
+
627
674
  export interface ToolSetGetOpenAPISpecResponse {
628
675
  /**
629
676
  * The consumed OpenAPI specification as a JSON string.
@@ -768,6 +815,25 @@ export interface ToolSetListEventsParams extends CursorPaginationParams {
768
815
  sortOrder?: string;
769
816
  }
770
817
 
818
+ export interface ToolSetListUsageParams extends CursorPaginationParams {
819
+ /**
820
+ * Path param: Workspace ID.
821
+ */
822
+ workspaceId?: string;
823
+
824
+ /**
825
+ * Query param: Sort order for results (asc or desc by assignment creation time)
826
+ */
827
+ sortOrder?: string;
828
+
829
+ /**
830
+ * Query param: When set, lists only variations with a direct assignment of this
831
+ * individual tool. When unset, lists variations assigned the whole tool set. The
832
+ * tool must belong to the tool set.
833
+ */
834
+ toolId?: string;
835
+ }
836
+
771
837
  export interface ToolSetUnarchiveParams {
772
838
  /**
773
839
  * Workspace ID.
@@ -813,9 +879,11 @@ export declare namespace ToolSets {
813
879
  type ToolSetEventDataSyncStarted as ToolSetEventDataSyncStarted,
814
880
  type ToolSetInfo as ToolSetInfo,
815
881
  type ToolSetSpec as ToolSetSpec,
882
+ type ToolSetUsage as ToolSetUsage,
816
883
  type ToolSetGetOpenAPISpecResponse as ToolSetGetOpenAPISpecResponse,
817
884
  type ToolSetsCursorPagination as ToolSetsCursorPagination,
818
885
  type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination,
886
+ type ToolSetUsagesCursorPagination as ToolSetUsagesCursorPagination,
819
887
  type ToolSetCreateParams as ToolSetCreateParams,
820
888
  type ToolSetRetrieveParams as ToolSetRetrieveParams,
821
889
  type ToolSetUpdateParams as ToolSetUpdateParams,
@@ -824,6 +892,7 @@ export declare namespace ToolSets {
824
892
  type ToolSetArchiveParams as ToolSetArchiveParams,
825
893
  type ToolSetGetOpenAPISpecParams as ToolSetGetOpenAPISpecParams,
826
894
  type ToolSetListEventsParams as ToolSetListEventsParams,
895
+ type ToolSetListUsageParams as ToolSetListUsageParams,
827
896
  type ToolSetUnarchiveParams as ToolSetUnarchiveParams,
828
897
  };
829
898
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.125.0'; // x-release-please-version
1
+ export const VERSION = '0.127.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.125.0";
1
+ export declare const VERSION = "0.127.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.125.0";
1
+ export declare const VERSION = "0.127.0";
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.125.0'; // x-release-please-version
4
+ exports.VERSION = '0.127.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.125.0'; // x-release-please-version
1
+ export const VERSION = '0.127.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map