@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.
Files changed (267) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +42 -81
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +42 -81
  6. package/client.d.ts.map +1 -1
  7. package/client.js +24 -63
  8. package/client.js.map +1 -1
  9. package/client.mjs +24 -63
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/account.d.mts +18 -22
  13. package/resources/account.d.mts.map +1 -1
  14. package/resources/account.d.ts +18 -22
  15. package/resources/account.d.ts.map +1 -1
  16. package/resources/account.js +2 -6
  17. package/resources/account.js.map +1 -1
  18. package/resources/account.mjs +2 -6
  19. package/resources/account.mjs.map +1 -1
  20. package/resources/agents/agents.d.mts +34 -21
  21. package/resources/agents/agents.d.mts.map +1 -1
  22. package/resources/agents/agents.d.ts +34 -21
  23. package/resources/agents/agents.d.ts.map +1 -1
  24. package/resources/agents/agents.js +17 -16
  25. package/resources/agents/agents.js.map +1 -1
  26. package/resources/agents/agents.mjs +17 -16
  27. package/resources/agents/agents.mjs.map +1 -1
  28. package/resources/agents/feedback.d.mts +15 -15
  29. package/resources/agents/feedback.d.mts.map +1 -1
  30. package/resources/agents/feedback.d.ts +15 -15
  31. package/resources/agents/feedback.d.ts.map +1 -1
  32. package/resources/agents/feedback.js +4 -8
  33. package/resources/agents/feedback.js.map +1 -1
  34. package/resources/agents/feedback.mjs +4 -8
  35. package/resources/agents/feedback.mjs.map +1 -1
  36. package/resources/agents/index.d.mts +1 -1
  37. package/resources/agents/index.d.mts.map +1 -1
  38. package/resources/agents/index.d.ts +1 -1
  39. package/resources/agents/index.d.ts.map +1 -1
  40. package/resources/agents/index.js.map +1 -1
  41. package/resources/agents/index.mjs.map +1 -1
  42. package/resources/agents/schedules.d.mts +44 -26
  43. package/resources/agents/schedules.d.mts.map +1 -1
  44. package/resources/agents/schedules.d.ts +44 -26
  45. package/resources/agents/schedules.d.ts.map +1 -1
  46. package/resources/agents/schedules.js +20 -19
  47. package/resources/agents/schedules.js.map +1 -1
  48. package/resources/agents/schedules.mjs +20 -19
  49. package/resources/agents/schedules.mjs.map +1 -1
  50. package/resources/agents/variations.d.mts +88 -43
  51. package/resources/agents/variations.d.mts.map +1 -1
  52. package/resources/agents/variations.d.ts +88 -43
  53. package/resources/agents/variations.d.ts.map +1 -1
  54. package/resources/agents/variations.js +31 -32
  55. package/resources/agents/variations.js.map +1 -1
  56. package/resources/agents/variations.mjs +31 -32
  57. package/resources/agents/variations.mjs.map +1 -1
  58. package/resources/agents/webhook-deliveries.d.mts +10 -11
  59. package/resources/agents/webhook-deliveries.d.mts.map +1 -1
  60. package/resources/agents/webhook-deliveries.d.ts +10 -11
  61. package/resources/agents/webhook-deliveries.d.ts.map +1 -1
  62. package/resources/agents/webhook-deliveries.js +4 -8
  63. package/resources/agents/webhook-deliveries.js.map +1 -1
  64. package/resources/agents/webhook-deliveries.mjs +4 -8
  65. package/resources/agents/webhook-deliveries.mjs.map +1 -1
  66. package/resources/api-keys.d.mts +48 -28
  67. package/resources/api-keys.d.mts.map +1 -1
  68. package/resources/api-keys.d.ts +48 -28
  69. package/resources/api-keys.d.ts.map +1 -1
  70. package/resources/api-keys.js +21 -17
  71. package/resources/api-keys.js.map +1 -1
  72. package/resources/api-keys.mjs +21 -17
  73. package/resources/api-keys.mjs.map +1 -1
  74. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts +20 -21
  75. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.mts.map +1 -1
  76. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts +20 -21
  77. package/resources/bulk-workspace-resources/bulk-workspace-resources.d.ts.map +1 -1
  78. package/resources/bulk-workspace-resources/bulk-workspace-resources.js +13 -17
  79. package/resources/bulk-workspace-resources/bulk-workspace-resources.js.map +1 -1
  80. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs +13 -17
  81. package/resources/bulk-workspace-resources/bulk-workspace-resources.mjs.map +1 -1
  82. package/resources/bulk-workspace-resources/index.d.mts +1 -1
  83. package/resources/bulk-workspace-resources/index.d.mts.map +1 -1
  84. package/resources/bulk-workspace-resources/index.d.ts +1 -1
  85. package/resources/bulk-workspace-resources/index.d.ts.map +1 -1
  86. package/resources/bulk-workspace-resources/index.js.map +1 -1
  87. package/resources/bulk-workspace-resources/index.mjs.map +1 -1
  88. package/resources/bulk-workspace-resources/results.d.mts +30 -35
  89. package/resources/bulk-workspace-resources/results.d.mts.map +1 -1
  90. package/resources/bulk-workspace-resources/results.d.ts +30 -35
  91. package/resources/bulk-workspace-resources/results.d.ts.map +1 -1
  92. package/resources/bulk-workspace-resources/results.js +6 -10
  93. package/resources/bulk-workspace-resources/results.js.map +1 -1
  94. package/resources/bulk-workspace-resources/results.mjs +6 -10
  95. package/resources/bulk-workspace-resources/results.mjs.map +1 -1
  96. package/resources/index.d.mts +9 -9
  97. package/resources/index.d.mts.map +1 -1
  98. package/resources/index.d.ts +9 -9
  99. package/resources/index.d.ts.map +1 -1
  100. package/resources/index.js.map +1 -1
  101. package/resources/index.mjs +1 -1
  102. package/resources/index.mjs.map +1 -1
  103. package/resources/memory-layers/entries.d.mts +40 -33
  104. package/resources/memory-layers/entries.d.mts.map +1 -1
  105. package/resources/memory-layers/entries.d.ts +40 -33
  106. package/resources/memory-layers/entries.d.ts.map +1 -1
  107. package/resources/memory-layers/entries.js +19 -23
  108. package/resources/memory-layers/entries.js.map +1 -1
  109. package/resources/memory-layers/entries.mjs +19 -23
  110. package/resources/memory-layers/entries.mjs.map +1 -1
  111. package/resources/memory-layers/index.d.mts +1 -1
  112. package/resources/memory-layers/index.d.mts.map +1 -1
  113. package/resources/memory-layers/index.d.ts +1 -1
  114. package/resources/memory-layers/index.d.ts.map +1 -1
  115. package/resources/memory-layers/index.js.map +1 -1
  116. package/resources/memory-layers/index.mjs.map +1 -1
  117. package/resources/memory-layers/memory-layers.d.mts +33 -22
  118. package/resources/memory-layers/memory-layers.d.mts.map +1 -1
  119. package/resources/memory-layers/memory-layers.d.ts +33 -22
  120. package/resources/memory-layers/memory-layers.d.ts.map +1 -1
  121. package/resources/memory-layers/memory-layers.js +17 -20
  122. package/resources/memory-layers/memory-layers.js.map +1 -1
  123. package/resources/memory-layers/memory-layers.mjs +17 -20
  124. package/resources/memory-layers/memory-layers.mjs.map +1 -1
  125. package/resources/models.d.mts +18 -12
  126. package/resources/models.d.mts.map +1 -1
  127. package/resources/models.d.ts +18 -12
  128. package/resources/models.d.ts.map +1 -1
  129. package/resources/models.js +14 -13
  130. package/resources/models.js.map +1 -1
  131. package/resources/models.mjs +14 -13
  132. package/resources/models.mjs.map +1 -1
  133. package/resources/objectives/feedback.d.mts +19 -8
  134. package/resources/objectives/feedback.d.mts.map +1 -1
  135. package/resources/objectives/feedback.d.ts +19 -8
  136. package/resources/objectives/feedback.d.ts.map +1 -1
  137. package/resources/objectives/feedback.js +9 -4
  138. package/resources/objectives/feedback.js.map +1 -1
  139. package/resources/objectives/feedback.mjs +9 -4
  140. package/resources/objectives/feedback.mjs.map +1 -1
  141. package/resources/objectives/index.d.mts +1 -1
  142. package/resources/objectives/index.d.mts.map +1 -1
  143. package/resources/objectives/index.d.ts +1 -1
  144. package/resources/objectives/index.d.ts.map +1 -1
  145. package/resources/objectives/index.js.map +1 -1
  146. package/resources/objectives/index.mjs.map +1 -1
  147. package/resources/objectives/objectives.d.mts +63 -44
  148. package/resources/objectives/objectives.d.mts.map +1 -1
  149. package/resources/objectives/objectives.d.ts +63 -44
  150. package/resources/objectives/objectives.d.ts.map +1 -1
  151. package/resources/objectives/objectives.js +31 -16
  152. package/resources/objectives/objectives.js.map +1 -1
  153. package/resources/objectives/objectives.mjs +31 -16
  154. package/resources/objectives/objectives.mjs.map +1 -1
  155. package/resources/objectives/tasks.d.mts +7 -2
  156. package/resources/objectives/tasks.d.mts.map +1 -1
  157. package/resources/objectives/tasks.d.ts +7 -2
  158. package/resources/objectives/tasks.d.ts.map +1 -1
  159. package/resources/objectives/tasks.js +5 -4
  160. package/resources/objectives/tasks.js.map +1 -1
  161. package/resources/objectives/tasks.mjs +5 -4
  162. package/resources/objectives/tasks.mjs.map +1 -1
  163. package/resources/objectives/tool-calls.d.mts +18 -9
  164. package/resources/objectives/tool-calls.d.mts.map +1 -1
  165. package/resources/objectives/tool-calls.d.ts +18 -9
  166. package/resources/objectives/tool-calls.d.ts.map +1 -1
  167. package/resources/objectives/tool-calls.js +7 -12
  168. package/resources/objectives/tool-calls.js.map +1 -1
  169. package/resources/objectives/tool-calls.mjs +7 -12
  170. package/resources/objectives/tool-calls.mjs.map +1 -1
  171. package/resources/objectives/tools.d.mts +5 -1
  172. package/resources/objectives/tools.d.mts.map +1 -1
  173. package/resources/objectives/tools.d.ts +5 -1
  174. package/resources/objectives/tools.d.ts.map +1 -1
  175. package/resources/objectives/tools.js +3 -2
  176. package/resources/objectives/tools.js.map +1 -1
  177. package/resources/objectives/tools.mjs +3 -2
  178. package/resources/objectives/tools.mjs.map +1 -1
  179. package/resources/search.d.mts +1 -1
  180. package/resources/search.d.mts.map +1 -1
  181. package/resources/search.d.ts +1 -1
  182. package/resources/search.d.ts.map +1 -1
  183. package/resources/search.js +6 -2
  184. package/resources/search.js.map +1 -1
  185. package/resources/search.mjs +6 -2
  186. package/resources/search.mjs.map +1 -1
  187. package/resources/tool-sets/index.d.mts +1 -1
  188. package/resources/tool-sets/index.d.mts.map +1 -1
  189. package/resources/tool-sets/index.d.ts +1 -1
  190. package/resources/tool-sets/index.d.ts.map +1 -1
  191. package/resources/tool-sets/index.js.map +1 -1
  192. package/resources/tool-sets/index.mjs.map +1 -1
  193. package/resources/tool-sets/tool-sets.d.mts +66 -43
  194. package/resources/tool-sets/tool-sets.d.mts.map +1 -1
  195. package/resources/tool-sets/tool-sets.d.ts +66 -43
  196. package/resources/tool-sets/tool-sets.d.ts.map +1 -1
  197. package/resources/tool-sets/tool-sets.js +23 -23
  198. package/resources/tool-sets/tool-sets.js.map +1 -1
  199. package/resources/tool-sets/tool-sets.mjs +23 -23
  200. package/resources/tool-sets/tool-sets.mjs.map +1 -1
  201. package/resources/tool-sets/tools.d.mts +50 -31
  202. package/resources/tool-sets/tools.d.mts.map +1 -1
  203. package/resources/tool-sets/tools.d.ts +50 -31
  204. package/resources/tool-sets/tools.d.ts.map +1 -1
  205. package/resources/tool-sets/tools.js +22 -21
  206. package/resources/tool-sets/tools.js.map +1 -1
  207. package/resources/tool-sets/tools.mjs +22 -21
  208. package/resources/tool-sets/tools.mjs.map +1 -1
  209. package/resources/uploads.d.mts +21 -19
  210. package/resources/uploads.d.mts.map +1 -1
  211. package/resources/uploads.d.ts +21 -19
  212. package/resources/uploads.d.ts.map +1 -1
  213. package/resources/uploads.js +8 -11
  214. package/resources/uploads.js.map +1 -1
  215. package/resources/uploads.mjs +8 -11
  216. package/resources/uploads.mjs.map +1 -1
  217. package/resources/workspace-secrets.d.mts +33 -13
  218. package/resources/workspace-secrets.d.mts.map +1 -1
  219. package/resources/workspace-secrets.d.ts +33 -13
  220. package/resources/workspace-secrets.d.ts.map +1 -1
  221. package/resources/workspace-secrets.js +16 -13
  222. package/resources/workspace-secrets.js.map +1 -1
  223. package/resources/workspace-secrets.mjs +16 -13
  224. package/resources/workspace-secrets.mjs.map +1 -1
  225. package/resources/workspaces.d.mts +2 -6
  226. package/resources/workspaces.d.mts.map +1 -1
  227. package/resources/workspaces.d.ts +2 -6
  228. package/resources/workspaces.d.ts.map +1 -1
  229. package/resources/workspaces.js +2 -6
  230. package/resources/workspaces.js.map +1 -1
  231. package/resources/workspaces.mjs +2 -6
  232. package/resources/workspaces.mjs.map +1 -1
  233. package/src/client.ts +54 -63
  234. package/src/resources/account.ts +18 -22
  235. package/src/resources/agents/agents.ts +49 -24
  236. package/src/resources/agents/feedback.ts +18 -16
  237. package/src/resources/agents/index.ts +2 -0
  238. package/src/resources/agents/schedules.ts +69 -37
  239. package/src/resources/agents/variations.ts +141 -73
  240. package/src/resources/agents/webhook-deliveries.ts +13 -12
  241. package/src/resources/api-keys.ts +67 -32
  242. package/src/resources/bulk-workspace-resources/bulk-workspace-resources.ts +40 -25
  243. package/src/resources/bulk-workspace-resources/index.ts +1 -0
  244. package/src/resources/bulk-workspace-resources/results.ts +33 -36
  245. package/src/resources/index.ts +22 -1
  246. package/src/resources/memory-layers/entries.ts +67 -44
  247. package/src/resources/memory-layers/index.ts +2 -0
  248. package/src/resources/memory-layers/memory-layers.ts +53 -25
  249. package/src/resources/models.ts +28 -13
  250. package/src/resources/objectives/feedback.ts +29 -11
  251. package/src/resources/objectives/index.ts +1 -0
  252. package/src/resources/objectives/objectives.ts +100 -50
  253. package/src/resources/objectives/tasks.ts +16 -5
  254. package/src/resources/objectives/tool-calls.ts +33 -20
  255. package/src/resources/objectives/tools.ts +9 -3
  256. package/src/resources/search.ts +6 -1
  257. package/src/resources/tool-sets/index.ts +2 -0
  258. package/src/resources/tool-sets/tool-sets.ts +88 -50
  259. package/src/resources/tool-sets/tools.ts +75 -42
  260. package/src/resources/uploads.ts +25 -20
  261. package/src/resources/workspace-secrets.ts +60 -19
  262. package/src/resources/workspaces.ts +2 -6
  263. package/src/version.ts +1 -1
  264. package/version.d.mts +1 -1
  265. package/version.d.ts +1 -1
  266. package/version.js +1 -1
  267. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB;;;;;;;GAOG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAIrD;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrD;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"workspaces.d.mts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB;;;GAGG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAIrD;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrD;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -4,12 +4,8 @@ import { APIPromise } from "../core/api-promise.js";
4
4
  import { CursorPagination, type CursorPaginationParams, PagePromise } from "../core/pagination.js";
5
5
  import { RequestOptions } from "../internal/request-options.js";
6
6
  /**
7
- * WorkspaceService manages workspaces at the ACCOUNT level.
8
- * This service is responsible for creating and listing workspaces within an account.
9
- * Workspaces provide organizational grouping for resources within an account.
10
- *
11
- * Authentication: Bearer token (JWT)
12
- * Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
7
+ * Manage workspaces within an account. Workspaces provide organizational
8
+ * grouping and isolation for resources such as agents, tools, and API keys.
13
9
  */
14
10
  export declare class Workspaces extends APIResource {
15
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB;;;;;;;GAOG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAIrD;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrD;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAC9D,EAAE,cAAc,EAAE;AAEzB;;;GAGG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,SAAS,CAAC;IAIrD;;;OAGG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGrD;AAED,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAErE,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAEzC,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,sBAAsB;IACjE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -5,12 +5,8 @@ exports.Workspaces = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const pagination_1 = require("../core/pagination.js");
7
7
  /**
8
- * WorkspaceService manages workspaces at the ACCOUNT level.
9
- * This service is responsible for creating and listing workspaces within an account.
10
- * Workspaces provide organizational grouping for resources within an account.
11
- *
12
- * Authentication: Bearer token (JWT)
13
- * Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
8
+ * Manage workspaces within an account. Workspaces provide organizational
9
+ * grouping and isolation for resources such as agents, tools, and API keys.
14
10
  */
15
11
  class Workspaces extends resource_1.APIResource {
16
12
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgG;AAGhG;;;;;;;GAOG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,6BAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAlBD,gCAkBC"}
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAAgG;AAGhG;;;GAGG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,6BAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF;AAlBD,gCAkBC"}
@@ -2,12 +2,8 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { CursorPagination } from "../core/pagination.mjs";
4
4
  /**
5
- * WorkspaceService manages workspaces at the ACCOUNT level.
6
- * This service is responsible for creating and listing workspaces within an account.
7
- * Workspaces provide organizational grouping for resources within an account.
8
- *
9
- * Authentication: Bearer token (JWT)
10
- * Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
5
+ * Manage workspaces within an account. Workspaces provide organizational
6
+ * grouping and isolation for resources such as agents, tools, and API keys.
11
7
  */
12
8
  export class Workspaces extends APIResource {
13
9
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,gBAAgB,EAA4C;AAGrE;;;;;;;GAOG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,gBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
1
+ {"version":3,"file":"workspaces.mjs","sourceRoot":"","sources":["../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,gBAAgB,EAA4C;AAGrE;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CACF,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,gBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -30,8 +30,11 @@ import {
30
30
  import {
31
31
  APIKey,
32
32
  APIKeyCreateParams,
33
+ APIKeyDeleteParams,
33
34
  APIKeyInfo,
34
35
  APIKeyListParams,
36
+ APIKeyRetrieveParams,
37
+ APIKeyRotateParams,
35
38
  APIKeySpec,
36
39
  APIKeyUpdateParams,
37
40
  APIKeys,
@@ -40,6 +43,7 @@ import {
40
43
  import {
41
44
  Model,
42
45
  ModelListParams,
46
+ ModelRetrieveParams,
43
47
  ModelSetStatusParams,
44
48
  ModelSpec,
45
49
  Models,
@@ -54,6 +58,7 @@ import {
54
58
  Upload,
55
59
  UploadCreateParams,
56
60
  UploadInfo,
61
+ UploadRetrieveParams,
57
62
  UploadSpec,
58
63
  Uploads as UploadsAPIUploads,
59
64
  } from './resources/uploads';
@@ -61,8 +66,10 @@ import { UnsafeUnwrapWebhookEvent, UnwrapWebhookEvent, Webhooks } from './resour
61
66
  import {
62
67
  WorkspaceSecret,
63
68
  WorkspaceSecretCreateParams,
69
+ WorkspaceSecretDeleteParams,
64
70
  WorkspaceSecretInfo,
65
71
  WorkspaceSecretListParams,
72
+ WorkspaceSecretRetrieveParams,
66
73
  WorkspaceSecretSpec,
67
74
  WorkspaceSecretUpdateParams,
68
75
  WorkspaceSecrets,
@@ -78,8 +85,10 @@ import {
78
85
  import {
79
86
  Agent,
80
87
  AgentCreateParams,
88
+ AgentDeleteParams,
81
89
  AgentInfo,
82
90
  AgentListParams,
91
+ AgentRetrieveParams,
83
92
  AgentSpec,
84
93
  AgentUpdateParams,
85
94
  Agents,
@@ -97,6 +106,7 @@ import {
97
106
  BulkWorkspaceApplyStatus,
98
107
  BulkWorkspaceResourceApplyParams,
99
108
  BulkWorkspaceResourceListParams,
109
+ BulkWorkspaceResourceRetrieveParams,
100
110
  BulkWorkspaceResources,
101
111
  MemoryEntryItem,
102
112
  MemoryLayerEntry,
@@ -108,8 +118,10 @@ import {
108
118
  import {
109
119
  MemoryLayer,
110
120
  MemoryLayerCreateParams,
121
+ MemoryLayerDeleteParams,
111
122
  MemoryLayerInfo,
112
123
  MemoryLayerListParams,
124
+ MemoryLayerRetrieveParams,
113
125
  MemoryLayerSpec,
114
126
  MemoryLayerUpdateParams,
115
127
  MemoryLayers,
@@ -144,6 +156,7 @@ import {
144
156
  ObjectiveListEventsResponse,
145
157
  ObjectiveListEventsResponsesCursorPagination,
146
158
  ObjectiveListParams,
159
+ ObjectiveRetrieveParams,
147
160
  ObjectiveStatus,
148
161
  Objectives,
149
162
  ObjectivesCursorPagination,
@@ -166,12 +179,14 @@ import {
166
179
  ToolSetAdapterHTTP,
167
180
  ToolSetAdapterMcp,
168
181
  ToolSetCreateParams,
182
+ ToolSetDeleteParams,
169
183
  ToolSetEvent,
170
184
  ToolSetEventData,
171
185
  ToolSetEventsCursorPagination,
172
186
  ToolSetInfo,
173
187
  ToolSetListEventsParams,
174
188
  ToolSetListParams,
189
+ ToolSetRetrieveParams,
175
190
  ToolSetSpec,
176
191
  ToolSetUpdateParams,
177
192
  ToolSets,
@@ -922,98 +937,59 @@ export class Cadenya {
922
937
  static toFile = Uploads.toFile;
923
938
 
924
939
  /**
925
- * AccountService manages account-level operations.
926
- * Accounts are the top-level organizational unit in the system.
927
- * All operations are scoped to the authenticated account determined by the JWT token.
928
- *
929
- * Authentication: Bearer token (JWT)
930
- * Scope: Account-level operations
940
+ * Manage the authenticated account. Accounts are the top-level organizational
941
+ * unit and contain one or more workspaces.
931
942
  */
932
943
  account: API.AccountResource = new API.AccountResource(this);
933
944
  /**
934
- * AgentService manages AI agents at the WORKSPACE level.
935
- * Agents are workspace-scoped resources that define AI behavior and tool access.
936
- * All operations are implicitly scoped to the workspace determined by the JWT token.
937
- *
938
- * Authentication: Bearer token (JWT)
939
- * Scope: Workspace-level operations
945
+ * Manage AI agents within a workspace. Agents define AI behavior and tool access.
940
946
  */
941
947
  agents: API.Agents = new API.Agents(this);
942
948
  objectives: API.Objectives = new API.Objectives(this);
943
949
  /**
944
- * MemoryService manages memory layers and their entries at the WORKSPACE level.
945
- * Layers are named containers that can be composed into an objective's memory
946
- * stack; entries are the keyed values within a layer.
947
- *
948
- * All operations are implicitly scoped to the workspace determined by the JWT
949
- * token. System-managed layers (e.g., episodic layers created by the runtime)
950
- * cannot be mutated through this API.
951
- *
952
- * Authentication: Bearer token (JWT)
953
- * Scope: Workspace-level operations
950
+ * Manage memory layers and their entries. Layers are named containers that can
951
+ * be composed into an objective's memory stack; entries are the keyed values
952
+ * within a layer. System-managed layers (e.g., episodic layers created by the
953
+ * runtime) cannot be mutated through this API.
954
954
  */
955
955
  memoryLayers: API.MemoryLayers = new API.MemoryLayers(this);
956
956
  /**
957
- * UploadService issues short-lived presigned URLs for direct client-to-object-
958
- * storage uploads at the WORKSPACE level. Created uploads can be referenced by
959
- * id when creating or updating resources that accept binary content (e.g.,
960
- * MemoryEntry).
961
- *
962
- * Authentication: Bearer token (JWT)
963
- * Scope: Workspace-level operations
957
+ * Issue short-lived presigned URLs for direct client-to-object-storage
958
+ * uploads. Created uploads can be referenced by id when creating or updating
959
+ * resources that accept binary content (e.g., MemoryEntry).
964
960
  */
965
961
  uploads: API.Uploads = new API.Uploads(this);
966
962
  /**
967
- * ModelService manages LLM models at the WORKSPACE level.
968
- * Models represent available LLM providers and families (e.g., "anthropic/claude-sonnet-4.6").
969
- * Models are seeded into workspaces and can be enabled or disabled.
970
- * All operations are implicitly scoped to the workspace determined by the JWT token.
971
- *
972
- * Authentication: Bearer token (JWT)
973
- * Scope: Workspace-level operations
963
+ * Manage LLM models available to a workspace. Models represent provider and
964
+ * family pairs (e.g., "anthropic/claude-sonnet-4.6"). Workspaces are seeded
965
+ * with the supported models and you can enable or disable each one.
974
966
  */
975
967
  models: API.Models = new API.Models(this);
976
968
  search: API.Search = new API.Search(this);
977
969
  /**
978
- * ToolService manages tool sets and tools at the WORKSPACE level.
979
- * Tool sets group related tools, and tools define specific capabilities for agents.
980
- * All operations are implicitly scoped to the workspace determined by the JWT token.
981
- *
982
- * Note: When a ToolSet has managed=true, only API Key actors can modify its tools.
983
- * Profile actors (humans) are restricted from modifying managed tool sets.
970
+ * Manage tool sets and the tools they contain. Tool sets group related tools,
971
+ * and tools define specific capabilities available to agents.
984
972
  *
985
- * Authentication: Bearer token (JWT)
986
- * Scope: Workspace-level operations
973
+ * When a tool set is managed, only API key actors can modify its tools; human
974
+ * (profile) actors cannot.
987
975
  */
988
976
  toolSets: API.ToolSets = new API.ToolSets(this);
989
977
  /**
990
- * APIKeyService manages workspace-scoped API Keys.
991
- * Each API key belongs to a single workspace, ensuring isolation between environments.
992
- *
993
- * Authentication: Bearer token (JWT)
994
- * Scope: Workspace-level operations
978
+ * Issue, rotate, and revoke API keys for a workspace. Each API key belongs to
979
+ * exactly one workspace, ensuring isolation between environments.
995
980
  */
996
981
  apiKeys: API.APIKeys = new API.APIKeys(this);
997
982
  workspaceSecrets: API.WorkspaceSecrets = new API.WorkspaceSecrets(this);
998
983
  /**
999
- * WorkspaceService manages workspaces at the ACCOUNT level.
1000
- * This service is responsible for creating and listing workspaces within an account.
1001
- * Workspaces provide organizational grouping for resources within an account.
1002
- *
1003
- * Authentication: Bearer token (JWT)
1004
- * Scope: Account-level operations (manages workspaces themselves, not resources within workspaces)
984
+ * Manage workspaces within an account. Workspaces provide organizational
985
+ * grouping and isolation for resources such as agents, tools, and API keys.
1005
986
  */
1006
987
  workspaces: API.Workspaces = new API.Workspaces(this);
1007
988
  webhooks: API.Webhooks = new API.Webhooks(this);
1008
989
  /**
1009
- * BulkWorkspaceResources is the workspace-scoped service that applies
1010
- * a declarative bundle of workspace resources (tool sets, memory
1011
- * layers, agents, variations, assignments, schedules) in one async
1012
- * operation. See docs/superpowers/specs/2026-05-02-bulk-workspace-resources-design.md
1013
- * for the full design.
1014
- *
1015
- * Authentication: Bearer token (JWT)
1016
- * Scope: Workspace-level operations
990
+ * Apply a declarative bundle of workspace resources tool sets, memory
991
+ * layers, agents, variations, assignments, and schedules in a single
992
+ * asynchronous operation.
1017
993
  */
1018
994
  bulkWorkspaceResources: API.BulkWorkspaceResources = new API.BulkWorkspaceResources(this);
1019
995
  }
@@ -1058,8 +1034,10 @@ export declare namespace Cadenya {
1058
1034
  type Page as Page,
1059
1035
  type AgentsCursorPagination as AgentsCursorPagination,
1060
1036
  type AgentCreateParams as AgentCreateParams,
1037
+ type AgentRetrieveParams as AgentRetrieveParams,
1061
1038
  type AgentUpdateParams as AgentUpdateParams,
1062
1039
  type AgentListParams as AgentListParams,
1040
+ type AgentDeleteParams as AgentDeleteParams,
1063
1041
  };
1064
1042
 
1065
1043
  export {
@@ -1096,6 +1074,7 @@ export declare namespace Cadenya {
1096
1074
  type ObjectiveContextWindowsCursorPagination as ObjectiveContextWindowsCursorPagination,
1097
1075
  type ObjectiveListEventsResponsesCursorPagination as ObjectiveListEventsResponsesCursorPagination,
1098
1076
  type ObjectiveCreateParams as ObjectiveCreateParams,
1077
+ type ObjectiveRetrieveParams as ObjectiveRetrieveParams,
1099
1078
  type ObjectiveListParams as ObjectiveListParams,
1100
1079
  type ObjectiveCancelParams as ObjectiveCancelParams,
1101
1080
  type ObjectiveCompactParams as ObjectiveCompactParams,
@@ -1111,8 +1090,10 @@ export declare namespace Cadenya {
1111
1090
  type MemoryLayerSpec as MemoryLayerSpec,
1112
1091
  type MemoryLayersCursorPagination as MemoryLayersCursorPagination,
1113
1092
  type MemoryLayerCreateParams as MemoryLayerCreateParams,
1093
+ type MemoryLayerRetrieveParams as MemoryLayerRetrieveParams,
1114
1094
  type MemoryLayerUpdateParams as MemoryLayerUpdateParams,
1115
1095
  type MemoryLayerListParams as MemoryLayerListParams,
1096
+ type MemoryLayerDeleteParams as MemoryLayerDeleteParams,
1116
1097
  };
1117
1098
 
1118
1099
  export {
@@ -1121,6 +1102,7 @@ export declare namespace Cadenya {
1121
1102
  type UploadInfo as UploadInfo,
1122
1103
  type UploadSpec as UploadSpec,
1123
1104
  type UploadCreateParams as UploadCreateParams,
1105
+ type UploadRetrieveParams as UploadRetrieveParams,
1124
1106
  };
1125
1107
 
1126
1108
  export {
@@ -1128,6 +1110,7 @@ export declare namespace Cadenya {
1128
1110
  type Model as Model,
1129
1111
  type ModelSpec as ModelSpec,
1130
1112
  type ModelsCursorPagination as ModelsCursorPagination,
1113
+ type ModelRetrieveParams as ModelRetrieveParams,
1131
1114
  type ModelListParams as ModelListParams,
1132
1115
  type ModelSetStatusParams as ModelSetStatusParams,
1133
1116
  };
@@ -1155,8 +1138,10 @@ export declare namespace Cadenya {
1155
1138
  type ToolSetsCursorPagination as ToolSetsCursorPagination,
1156
1139
  type ToolSetEventsCursorPagination as ToolSetEventsCursorPagination,
1157
1140
  type ToolSetCreateParams as ToolSetCreateParams,
1141
+ type ToolSetRetrieveParams as ToolSetRetrieveParams,
1158
1142
  type ToolSetUpdateParams as ToolSetUpdateParams,
1159
1143
  type ToolSetListParams as ToolSetListParams,
1144
+ type ToolSetDeleteParams as ToolSetDeleteParams,
1160
1145
  type ToolSetListEventsParams as ToolSetListEventsParams,
1161
1146
  };
1162
1147
 
@@ -1167,8 +1152,11 @@ export declare namespace Cadenya {
1167
1152
  type APIKeySpec as APIKeySpec,
1168
1153
  type APIKeysCursorPagination as APIKeysCursorPagination,
1169
1154
  type APIKeyCreateParams as APIKeyCreateParams,
1155
+ type APIKeyRetrieveParams as APIKeyRetrieveParams,
1170
1156
  type APIKeyUpdateParams as APIKeyUpdateParams,
1171
1157
  type APIKeyListParams as APIKeyListParams,
1158
+ type APIKeyDeleteParams as APIKeyDeleteParams,
1159
+ type APIKeyRotateParams as APIKeyRotateParams,
1172
1160
  };
1173
1161
 
1174
1162
  export {
@@ -1178,8 +1166,10 @@ export declare namespace Cadenya {
1178
1166
  type WorkspaceSecretSpec as WorkspaceSecretSpec,
1179
1167
  type WorkspaceSecretsCursorPagination as WorkspaceSecretsCursorPagination,
1180
1168
  type WorkspaceSecretCreateParams as WorkspaceSecretCreateParams,
1169
+ type WorkspaceSecretRetrieveParams as WorkspaceSecretRetrieveParams,
1181
1170
  type WorkspaceSecretUpdateParams as WorkspaceSecretUpdateParams,
1182
1171
  type WorkspaceSecretListParams as WorkspaceSecretListParams,
1172
+ type WorkspaceSecretDeleteParams as WorkspaceSecretDeleteParams,
1183
1173
  };
1184
1174
 
1185
1175
  export {
@@ -1212,6 +1202,7 @@ export declare namespace Cadenya {
1212
1202
  type VariationAssignmentEntry as VariationAssignmentEntry,
1213
1203
  type VariationMemoryLayerEntry as VariationMemoryLayerEntry,
1214
1204
  type BulkWorkspaceAppliesCursorPagination as BulkWorkspaceAppliesCursorPagination,
1205
+ type BulkWorkspaceResourceRetrieveParams as BulkWorkspaceResourceRetrieveParams,
1215
1206
  type BulkWorkspaceResourceListParams as BulkWorkspaceResourceListParams,
1216
1207
  type BulkWorkspaceResourceApplyParams as BulkWorkspaceResourceApplyParams,
1217
1208
  };
@@ -7,12 +7,8 @@ import { APIPromise } from '../core/api-promise';
7
7
  import { RequestOptions } from '../internal/request-options';
8
8
 
9
9
  /**
10
- * AccountService manages account-level operations.
11
- * Accounts are the top-level organizational unit in the system.
12
- * All operations are scoped to the authenticated account determined by the JWT token.
13
- *
14
- * Authentication: Bearer token (JWT)
15
- * Scope: Account-level operations
10
+ * Manage the authenticated account. Accounts are the top-level organizational
11
+ * unit and contain one or more workspaces.
16
12
  */
17
13
  export class AccountResource extends APIResource {
18
14
  /**
@@ -32,11 +28,12 @@ export class AccountResource extends APIResource {
32
28
  }
33
29
 
34
30
  /**
35
- * Account is an account resource.
31
+ * An account, the top-level organizational unit. Contains workspaces and
32
+ * account-wide settings such as the webhook signing secret.
36
33
  */
37
34
  export interface Account {
38
35
  /**
39
- * AccountInfo contains information about the account.
36
+ * Server-populated information about the account.
40
37
  */
41
38
  info: Account.Info;
42
39
 
@@ -47,14 +44,14 @@ export interface Account {
47
44
  metadata: Shared.AccountResourceMetadata;
48
45
 
49
46
  /**
50
- * AccountSpec contains the specification for an account.
47
+ * Configuration for an account.
51
48
  */
52
49
  spec: AccountSpec;
53
50
  }
54
51
 
55
52
  export namespace Account {
56
53
  /**
57
- * AccountInfo contains information about the account.
54
+ * Server-populated information about the account.
58
55
  */
59
56
  export interface Info {
60
57
  /**
@@ -67,7 +64,7 @@ export namespace Account {
67
64
  }
68
65
 
69
66
  /**
70
- * AccountSpec contains the specification for an account.
67
+ * Configuration for an account.
71
68
  */
72
69
  export interface AccountSpec {
73
70
  billingEmail?: string;
@@ -80,9 +77,9 @@ export interface AccountSpec {
80
77
  }
81
78
 
82
79
  /**
83
- * Profile represents a human user at the account level. Profiles are
84
- * account-scoped resources that can be associated with multiple workspaces through
85
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
80
+ * A profile identifies a user or non-human principal (such as an API key) at the
81
+ * account level. Profiles are account-scoped and can be granted access to multiple
82
+ * workspaces.
86
83
  */
87
84
  export interface Profile {
88
85
  /**
@@ -92,35 +89,34 @@ export interface Profile {
92
89
  metadata: Shared.AccountResourceMetadata;
93
90
 
94
91
  /**
95
- * ProfileSpec contains the profile-specific fields
92
+ * Configuration for a profile.
96
93
  */
97
94
  spec: ProfileSpec;
98
95
  }
99
96
 
100
97
  /**
101
- * ProfileSpec contains the profile-specific fields
98
+ * Configuration for a profile.
102
99
  */
103
100
  export interface ProfileSpec {
104
101
  /**
105
- * Type is the type of profile. User's are humans, API keys are computers. You know
106
- * the deal.
102
+ * Whether this profile represents a human user, an API key, or a system principal.
107
103
  */
108
104
  type: 'PROFILE_TYPE_USER' | 'PROFILE_TYPE_API_KEY' | 'PROFILE_TYPE_SYSTEM';
109
105
 
110
106
  /**
111
- * Email address of the user (required, unique per account)
107
+ * Email address of the profile. Required and unique within an account for user
108
+ * profiles.
112
109
  */
113
110
  email?: string;
114
111
 
115
112
  /**
116
- * Display name for the user (e.g., "Bobby Tables")
113
+ * Display name (e.g., "Bobby Tables").
117
114
  */
118
115
  name?: string;
119
116
  }
120
117
 
121
118
  /**
122
- * RotateWebhookEventsHmacSecretResponse is a response to a
123
- * RotateWebhookEventsHmacSecretRequest.
119
+ * Response containing the newly generated webhook signing secret.
124
120
  */
125
121
  export interface RotateWebhookSigningKeyResponse {
126
122
  webhookEventsHmacSecret?: string;
@@ -63,12 +63,7 @@ import { RequestOptions } from '../../internal/request-options';
63
63
  import { path } from '../../internal/utils/path';
64
64
 
65
65
  /**
66
- * AgentService manages AI agents at the WORKSPACE level.
67
- * Agents are workspace-scoped resources that define AI behavior and tool access.
68
- * All operations are implicitly scoped to the workspace determined by the JWT token.
69
- *
70
- * Authentication: Bearer token (JWT)
71
- * Scope: Workspace-level operations
66
+ * Manage AI agents within a workspace. Agents define AI behavior and tool access.
72
67
  */
73
68
  export class Agents extends APIResource {
74
69
  feedback: FeedbackAPI.Feedback = new FeedbackAPI.Feedback(this._client);
@@ -81,39 +76,46 @@ export class Agents extends APIResource {
81
76
  /**
82
77
  * Creates a new agent in the workspace
83
78
  */
84
- create(body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
85
- return this._client.post('/v1/agents', { body, ...options });
79
+ create(workspaceID: string, body: AgentCreateParams, options?: RequestOptions): APIPromise<Agent> {
80
+ return this._client.post(path`/v1/workspaces/${workspaceID}/agents`, { body, ...options });
86
81
  }
87
82
 
88
83
  /**
89
84
  * Retrieves an agent by ID from the workspace
90
85
  */
91
- retrieve(id: string, options?: RequestOptions): APIPromise<Agent> {
92
- return this._client.get(path`/v1/agents/${id}`, options);
86
+ retrieve(id: string, params: AgentRetrieveParams, options?: RequestOptions): APIPromise<Agent> {
87
+ const { workspaceId } = params;
88
+ return this._client.get(path`/v1/workspaces/${workspaceId}/agents/${id}`, options);
93
89
  }
94
90
 
95
91
  /**
96
92
  * Updates an agent in the workspace
97
93
  */
98
- update(id: string, body: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent> {
99
- return this._client.patch(path`/v1/agents/${id}`, { body, ...options });
94
+ update(id: string, params: AgentUpdateParams, options?: RequestOptions): APIPromise<Agent> {
95
+ const { workspaceId, ...body } = params;
96
+ return this._client.patch(path`/v1/workspaces/${workspaceId}/agents/${id}`, { body, ...options });
100
97
  }
101
98
 
102
99
  /**
103
100
  * Lists all agents in the workspace
104
101
  */
105
102
  list(
103
+ workspaceID: string,
106
104
  query: AgentListParams | null | undefined = {},
107
105
  options?: RequestOptions,
108
106
  ): PagePromise<AgentsCursorPagination, Agent> {
109
- return this._client.getAPIList('/v1/agents', CursorPagination<Agent>, { query, ...options });
107
+ return this._client.getAPIList(path`/v1/workspaces/${workspaceID}/agents`, CursorPagination<Agent>, {
108
+ query,
109
+ ...options,
110
+ });
110
111
  }
111
112
 
112
113
  /**
113
114
  * Deletes an agent from the workspace
114
115
  */
115
- delete(id: string, options?: RequestOptions): APIPromise<void> {
116
- return this._client.delete(path`/v1/agents/${id}`, {
116
+ delete(id: string, params: AgentDeleteParams, options?: RequestOptions): APIPromise<void> {
117
+ const { workspaceId } = params;
118
+ return this._client.delete(path`/v1/workspaces/${workspaceId}/agents/${id}`, {
117
119
  ...options,
118
120
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
119
121
  });
@@ -149,9 +151,9 @@ export interface Agent {
149
151
  */
150
152
  export interface AgentInfo {
151
153
  /**
152
- * Profile represents a human user at the account level. Profiles are
153
- * account-scoped resources that can be associated with multiple workspaces through
154
- * the Actor model. Authentication for profiles is handled via SSO/OAuth (WorkOS).
154
+ * A profile identifies a user or non-human principal (such as an API key) at the
155
+ * account level. Profiles are account-scoped and can be granted access to multiple
156
+ * workspaces.
155
157
  */
156
158
  createdBy?: AccountAPI.Profile;
157
159
 
@@ -244,21 +246,34 @@ export namespace AgentCreateParams {
244
246
  }
245
247
  }
246
248
 
249
+ export interface AgentRetrieveParams {
250
+ /**
251
+ * Workspace ID.
252
+ */
253
+ workspaceId: string;
254
+ }
255
+
247
256
  export interface AgentUpdateParams {
248
257
  /**
249
- * UpdateResourceMetadata contains the user-provided fields for updating a
250
- * workspace-scoped resource. Read-only fields (id, account_id, workspace_id,
251
- * profile_id, created_at) are excluded since they are set by the server.
258
+ * Path param: Workspace ID.
259
+ */
260
+ workspaceId: string;
261
+
262
+ /**
263
+ * Body param: UpdateResourceMetadata contains the user-provided fields for
264
+ * updating a workspace-scoped resource. Read-only fields (id, account_id,
265
+ * workspace_id, profile_id, created_at) are excluded since they are set by the
266
+ * server.
252
267
  */
253
268
  metadata?: Shared.UpdateResourceMetadata;
254
269
 
255
270
  /**
256
- * Agent specification (user-provided configuration)
271
+ * Body param: Agent specification (user-provided configuration)
257
272
  */
258
273
  spec?: AgentSpec;
259
274
 
260
275
  /**
261
- * Fields to update
276
+ * Body param: Fields to update
262
277
  */
263
278
  updateMask?: string;
264
279
  }
@@ -270,7 +285,8 @@ export interface AgentListParams extends CursorPaginationParams {
270
285
  bundleKey?: string;
271
286
 
272
287
  /**
273
- * When set to true you may use more of your alloted API rate-limit
288
+ * When true, the `info` field on each returned agent is populated. Requests with
289
+ * this flag count more against your rate limit.
274
290
  */
275
291
  includeInfo?: boolean;
276
292
 
@@ -307,6 +323,13 @@ export interface AgentListParams extends CursorPaginationParams {
307
323
  | 'VARIATION_SELECTION_MODE_WEIGHTED';
308
324
  }
309
325
 
326
+ export interface AgentDeleteParams {
327
+ /**
328
+ * Workspace ID.
329
+ */
330
+ workspaceId: string;
331
+ }
332
+
310
333
  Agents.Feedback = Feedback;
311
334
  Agents.WebhookDeliveries = WebhookDeliveries;
312
335
  Agents.Variations = Variations;
@@ -320,8 +343,10 @@ export declare namespace Agents {
320
343
  type Page as Page,
321
344
  type AgentsCursorPagination as AgentsCursorPagination,
322
345
  type AgentCreateParams as AgentCreateParams,
346
+ type AgentRetrieveParams as AgentRetrieveParams,
323
347
  type AgentUpdateParams as AgentUpdateParams,
324
348
  type AgentListParams as AgentListParams,
349
+ type AgentDeleteParams as AgentDeleteParams,
325
350
  };
326
351
 
327
352
  export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };