@cadenya/cadenya 0.135.0 → 1.0.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 (958) hide show
  1. package/README.md +86 -358
  2. package/api.md +781 -0
  3. package/dist/client.d.ts +69 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +97 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/core/error.d.ts +39 -0
  8. package/dist/core/error.d.ts.map +1 -0
  9. package/dist/core/error.js +56 -0
  10. package/dist/core/error.js.map +1 -0
  11. package/dist/core/http.d.ts +140 -0
  12. package/dist/core/http.d.ts.map +1 -0
  13. package/dist/core/http.js +525 -0
  14. package/dist/core/http.js.map +1 -0
  15. package/dist/core/pagination.d.ts +12 -0
  16. package/dist/core/pagination.d.ts.map +1 -0
  17. package/dist/core/pagination.js +29 -0
  18. package/dist/core/pagination.js.map +1 -0
  19. package/dist/core/sse.d.ts +44 -0
  20. package/dist/core/sse.d.ts.map +1 -0
  21. package/dist/core/sse.js +350 -0
  22. package/dist/core/sse.js.map +1 -0
  23. package/dist/core/webhooks.d.ts +25 -0
  24. package/dist/core/webhooks.d.ts.map +1 -0
  25. package/dist/core/webhooks.js +124 -0
  26. package/dist/core/webhooks.js.map +1 -0
  27. package/dist/index.d.ts +35 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +32 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/resources/accounts.d.ts +34 -0
  32. package/dist/resources/accounts.d.ts.map +1 -0
  33. package/dist/resources/accounts.js +47 -0
  34. package/dist/resources/accounts.js.map +1 -0
  35. package/dist/resources/agent-schedules.d.ts +186 -0
  36. package/dist/resources/agent-schedules.d.ts.map +1 -0
  37. package/dist/resources/agent-schedules.js +141 -0
  38. package/dist/resources/agent-schedules.js.map +1 -0
  39. package/dist/resources/agent-variations.d.ts +230 -0
  40. package/dist/resources/agent-variations.d.ts.map +1 -0
  41. package/dist/resources/agent-variations.js +174 -0
  42. package/dist/resources/agent-variations.js.map +1 -0
  43. package/dist/resources/agents.d.ts +318 -0
  44. package/dist/resources/agents.d.ts.map +1 -0
  45. package/dist/resources/agents.js +202 -0
  46. package/dist/resources/agents.js.map +1 -0
  47. package/dist/resources/ai-provider-keys.d.ts +141 -0
  48. package/dist/resources/ai-provider-keys.d.ts.map +1 -0
  49. package/dist/resources/ai-provider-keys.js +93 -0
  50. package/dist/resources/ai-provider-keys.js.map +1 -0
  51. package/dist/resources/api-keys.d.ts +222 -0
  52. package/dist/resources/api-keys.d.ts.map +1 -0
  53. package/dist/resources/api-keys.js +194 -0
  54. package/dist/resources/api-keys.js.map +1 -0
  55. package/dist/resources/memory-entries.d.ts +122 -0
  56. package/dist/resources/memory-entries.d.ts.map +1 -0
  57. package/dist/resources/memory-entries.js +93 -0
  58. package/dist/resources/memory-entries.js.map +1 -0
  59. package/dist/resources/memory-layers.d.ts +137 -0
  60. package/dist/resources/memory-layers.d.ts.map +1 -0
  61. package/dist/resources/memory-layers.js +97 -0
  62. package/dist/resources/memory-layers.js.map +1 -0
  63. package/dist/resources/models.d.ts +148 -0
  64. package/dist/resources/models.d.ts.map +1 -0
  65. package/dist/resources/models.js +93 -0
  66. package/dist/resources/models.js.map +1 -0
  67. package/dist/resources/objectives.d.ts +602 -0
  68. package/dist/resources/objectives.d.ts.map +1 -0
  69. package/dist/resources/objectives.js +356 -0
  70. package/dist/resources/objectives.js.map +1 -0
  71. package/dist/resources/profiles.d.ts +16 -0
  72. package/dist/resources/profiles.d.ts.map +1 -0
  73. package/dist/resources/profiles.js +21 -0
  74. package/dist/resources/profiles.js.map +1 -0
  75. package/dist/resources/tenants.d.ts +135 -0
  76. package/dist/resources/tenants.d.ts.map +1 -0
  77. package/dist/resources/tenants.js +80 -0
  78. package/dist/resources/tenants.js.map +1 -0
  79. package/dist/resources/tool-search.d.ts +27 -0
  80. package/dist/resources/tool-search.d.ts.map +1 -0
  81. package/dist/resources/tool-search.js +25 -0
  82. package/dist/resources/tool-search.js.map +1 -0
  83. package/dist/resources/tool-set-secrets.d.ts +128 -0
  84. package/dist/resources/tool-set-secrets.d.ts.map +1 -0
  85. package/dist/resources/tool-set-secrets.js +93 -0
  86. package/dist/resources/tool-set-secrets.js.map +1 -0
  87. package/dist/resources/tool-sets.d.ts +271 -0
  88. package/dist/resources/tool-sets.d.ts.map +1 -0
  89. package/dist/resources/tool-sets.js +185 -0
  90. package/dist/resources/tool-sets.js.map +1 -0
  91. package/dist/resources/tools.d.ts +178 -0
  92. package/dist/resources/tools.d.ts.map +1 -0
  93. package/dist/resources/tools.js +125 -0
  94. package/dist/resources/tools.js.map +1 -0
  95. package/dist/resources/uploads.d.ts +43 -0
  96. package/dist/resources/uploads.d.ts.map +1 -0
  97. package/dist/resources/uploads.js +41 -0
  98. package/dist/resources/uploads.js.map +1 -0
  99. package/dist/resources/widget-sessions.d.ts +168 -0
  100. package/dist/resources/widget-sessions.d.ts.map +1 -0
  101. package/dist/resources/widget-sessions.js +110 -0
  102. package/dist/resources/widget-sessions.js.map +1 -0
  103. package/dist/resources/widgets.d.ts +166 -0
  104. package/dist/resources/widgets.d.ts.map +1 -0
  105. package/dist/resources/widgets.js +125 -0
  106. package/dist/resources/widgets.js.map +1 -0
  107. package/dist/resources/workspace-admin.d.ts +214 -0
  108. package/dist/resources/workspace-admin.d.ts.map +1 -0
  109. package/dist/resources/workspace-admin.js +154 -0
  110. package/dist/resources/workspace-admin.js.map +1 -0
  111. package/dist/resources/workspace-secrets.d.ts +134 -0
  112. package/dist/resources/workspace-secrets.d.ts.map +1 -0
  113. package/dist/resources/workspace-secrets.js +93 -0
  114. package/dist/resources/workspace-secrets.js.map +1 -0
  115. package/dist/resources/workspaces.d.ts +44 -0
  116. package/dist/resources/workspaces.d.ts.map +1 -0
  117. package/dist/resources/workspaces.js +26 -0
  118. package/dist/resources/workspaces.js.map +1 -0
  119. package/dist/types.d.ts +4634 -0
  120. package/dist/types.d.ts.map +1 -0
  121. package/dist/types.js +103 -0
  122. package/dist/types.js.map +1 -0
  123. package/dist/webhooks.d.ts +93 -0
  124. package/dist/webhooks.d.ts.map +1 -0
  125. package/dist/webhooks.js +21 -0
  126. package/dist/webhooks.js.map +1 -0
  127. package/package.json +24 -165
  128. package/src/client.ts +124 -1532
  129. package/src/core/error.ts +50 -109
  130. package/src/core/http.ts +639 -0
  131. package/src/core/pagination.ts +16 -150
  132. package/src/core/sse.ts +338 -0
  133. package/src/core/webhooks.ts +141 -0
  134. package/src/index.ts +35 -20
  135. package/src/resources/accounts.ts +50 -0
  136. package/src/resources/agent-schedules.ts +251 -0
  137. package/src/resources/agent-variations.ts +312 -0
  138. package/src/resources/agents.ts +411 -1
  139. package/src/resources/ai-provider-keys.ts +119 -309
  140. package/src/resources/api-keys.ts +219 -276
  141. package/src/resources/memory-entries.ts +163 -0
  142. package/src/resources/memory-layers.ts +181 -1
  143. package/src/resources/models.ts +125 -372
  144. package/src/resources/objectives.ts +764 -1
  145. package/src/resources/profiles.ts +17 -13
  146. package/src/resources/tenants.ts +168 -1
  147. package/src/resources/tool-search.ts +36 -0
  148. package/src/resources/tool-set-secrets.ts +169 -0
  149. package/src/resources/tool-sets.ts +355 -1
  150. package/src/resources/tools.ts +235 -0
  151. package/src/resources/uploads.ts +42 -127
  152. package/src/resources/widget-sessions.ts +148 -437
  153. package/src/resources/widgets.ts +155 -247
  154. package/src/resources/workspace-admin.ts +281 -1
  155. package/src/resources/workspace-secrets.ts +121 -159
  156. package/src/resources/workspaces.ts +32 -75
  157. package/src/types.ts +5188 -0
  158. package/src/webhooks.ts +107 -0
  159. package/CHANGELOG.md +0 -1542
  160. package/api-promise.d.mts +0 -3
  161. package/api-promise.d.mts.map +0 -1
  162. package/api-promise.d.ts +0 -3
  163. package/api-promise.d.ts.map +0 -1
  164. package/api-promise.js +0 -6
  165. package/api-promise.js.map +0 -1
  166. package/api-promise.mjs +0 -3
  167. package/api-promise.mjs.map +0 -1
  168. package/client.d.mts +0 -335
  169. package/client.d.mts.map +0 -1
  170. package/client.d.ts +0 -335
  171. package/client.d.ts.map +0 -1
  172. package/client.js +0 -630
  173. package/client.js.map +0 -1
  174. package/client.mjs +0 -626
  175. package/client.mjs.map +0 -1
  176. package/core/api-promise.d.mts +0 -46
  177. package/core/api-promise.d.mts.map +0 -1
  178. package/core/api-promise.d.ts +0 -46
  179. package/core/api-promise.d.ts.map +0 -1
  180. package/core/api-promise.js +0 -73
  181. package/core/api-promise.js.map +0 -1
  182. package/core/api-promise.mjs +0 -69
  183. package/core/api-promise.mjs.map +0 -1
  184. package/core/error.d.mts +0 -46
  185. package/core/error.d.mts.map +0 -1
  186. package/core/error.d.ts +0 -46
  187. package/core/error.d.ts.map +0 -1
  188. package/core/error.js +0 -112
  189. package/core/error.js.map +0 -1
  190. package/core/error.mjs +0 -96
  191. package/core/error.mjs.map +0 -1
  192. package/core/pagination.d.mts +0 -59
  193. package/core/pagination.d.mts.map +0 -1
  194. package/core/pagination.d.ts +0 -59
  195. package/core/pagination.d.ts.map +0 -1
  196. package/core/pagination.js +0 -100
  197. package/core/pagination.js.map +0 -1
  198. package/core/pagination.mjs +0 -94
  199. package/core/pagination.mjs.map +0 -1
  200. package/core/resource.d.mts +0 -6
  201. package/core/resource.d.mts.map +0 -1
  202. package/core/resource.d.ts +0 -6
  203. package/core/resource.d.ts.map +0 -1
  204. package/core/resource.js +0 -10
  205. package/core/resource.js.map +0 -1
  206. package/core/resource.mjs +0 -6
  207. package/core/resource.mjs.map +0 -1
  208. package/core/streaming.d.mts +0 -33
  209. package/core/streaming.d.mts.map +0 -1
  210. package/core/streaming.d.ts +0 -33
  211. package/core/streaming.d.ts.map +0 -1
  212. package/core/streaming.js +0 -268
  213. package/core/streaming.js.map +0 -1
  214. package/core/streaming.mjs +0 -263
  215. package/core/streaming.mjs.map +0 -1
  216. package/core/uploads.d.mts +0 -3
  217. package/core/uploads.d.mts.map +0 -1
  218. package/core/uploads.d.ts +0 -3
  219. package/core/uploads.d.ts.map +0 -1
  220. package/core/uploads.js +0 -6
  221. package/core/uploads.js.map +0 -1
  222. package/core/uploads.mjs +0 -2
  223. package/core/uploads.mjs.map +0 -1
  224. package/error.d.mts +0 -3
  225. package/error.d.mts.map +0 -1
  226. package/error.d.ts +0 -3
  227. package/error.d.ts.map +0 -1
  228. package/error.js +0 -6
  229. package/error.js.map +0 -1
  230. package/error.mjs +0 -3
  231. package/error.mjs.map +0 -1
  232. package/index.d.mts +0 -7
  233. package/index.d.mts.map +0 -1
  234. package/index.d.ts +0 -7
  235. package/index.d.ts.map +0 -1
  236. package/index.js +0 -31
  237. package/index.js.map +0 -1
  238. package/index.mjs +0 -7
  239. package/index.mjs.map +0 -1
  240. package/internal/builtin-types.d.mts +0 -73
  241. package/internal/builtin-types.d.mts.map +0 -1
  242. package/internal/builtin-types.d.ts +0 -73
  243. package/internal/builtin-types.d.ts.map +0 -1
  244. package/internal/builtin-types.js +0 -3
  245. package/internal/builtin-types.js.map +0 -1
  246. package/internal/builtin-types.mjs +0 -2
  247. package/internal/builtin-types.mjs.map +0 -1
  248. package/internal/decoders/line.d.mts +0 -17
  249. package/internal/decoders/line.d.mts.map +0 -1
  250. package/internal/decoders/line.d.ts +0 -17
  251. package/internal/decoders/line.d.ts.map +0 -1
  252. package/internal/decoders/line.js +0 -113
  253. package/internal/decoders/line.js.map +0 -1
  254. package/internal/decoders/line.mjs +0 -108
  255. package/internal/decoders/line.mjs.map +0 -1
  256. package/internal/detect-platform.d.mts +0 -15
  257. package/internal/detect-platform.d.mts.map +0 -1
  258. package/internal/detect-platform.d.ts +0 -15
  259. package/internal/detect-platform.d.ts.map +0 -1
  260. package/internal/detect-platform.js +0 -161
  261. package/internal/detect-platform.js.map +0 -1
  262. package/internal/detect-platform.mjs +0 -156
  263. package/internal/detect-platform.mjs.map +0 -1
  264. package/internal/errors.d.mts +0 -3
  265. package/internal/errors.d.mts.map +0 -1
  266. package/internal/errors.d.ts +0 -3
  267. package/internal/errors.d.ts.map +0 -1
  268. package/internal/errors.js +0 -40
  269. package/internal/errors.js.map +0 -1
  270. package/internal/errors.mjs +0 -35
  271. package/internal/errors.mjs.map +0 -1
  272. package/internal/headers.d.mts +0 -20
  273. package/internal/headers.d.mts.map +0 -1
  274. package/internal/headers.d.ts +0 -20
  275. package/internal/headers.d.ts.map +0 -1
  276. package/internal/headers.js +0 -78
  277. package/internal/headers.js.map +0 -1
  278. package/internal/headers.mjs +0 -73
  279. package/internal/headers.mjs.map +0 -1
  280. package/internal/parse.d.mts +0 -12
  281. package/internal/parse.d.mts.map +0 -1
  282. package/internal/parse.d.ts +0 -12
  283. package/internal/parse.d.ts.map +0 -1
  284. package/internal/parse.js +0 -49
  285. package/internal/parse.js.map +0 -1
  286. package/internal/parse.mjs +0 -46
  287. package/internal/parse.mjs.map +0 -1
  288. package/internal/qs/formats.d.mts +0 -7
  289. package/internal/qs/formats.d.mts.map +0 -1
  290. package/internal/qs/formats.d.ts +0 -7
  291. package/internal/qs/formats.d.ts.map +0 -1
  292. package/internal/qs/formats.js +0 -13
  293. package/internal/qs/formats.js.map +0 -1
  294. package/internal/qs/formats.mjs +0 -9
  295. package/internal/qs/formats.mjs.map +0 -1
  296. package/internal/qs/index.d.mts +0 -10
  297. package/internal/qs/index.d.mts.map +0 -1
  298. package/internal/qs/index.d.ts +0 -10
  299. package/internal/qs/index.d.ts.map +0 -1
  300. package/internal/qs/index.js +0 -14
  301. package/internal/qs/index.js.map +0 -1
  302. package/internal/qs/index.mjs +0 -10
  303. package/internal/qs/index.mjs.map +0 -1
  304. package/internal/qs/stringify.d.mts +0 -3
  305. package/internal/qs/stringify.d.mts.map +0 -1
  306. package/internal/qs/stringify.d.ts +0 -3
  307. package/internal/qs/stringify.d.ts.map +0 -1
  308. package/internal/qs/stringify.js +0 -277
  309. package/internal/qs/stringify.js.map +0 -1
  310. package/internal/qs/stringify.mjs +0 -274
  311. package/internal/qs/stringify.mjs.map +0 -1
  312. package/internal/qs/types.d.mts +0 -57
  313. package/internal/qs/types.d.mts.map +0 -1
  314. package/internal/qs/types.d.ts +0 -57
  315. package/internal/qs/types.d.ts.map +0 -1
  316. package/internal/qs/types.js +0 -3
  317. package/internal/qs/types.js.map +0 -1
  318. package/internal/qs/types.mjs +0 -2
  319. package/internal/qs/types.mjs.map +0 -1
  320. package/internal/qs/utils.d.mts +0 -15
  321. package/internal/qs/utils.d.mts.map +0 -1
  322. package/internal/qs/utils.d.ts +0 -15
  323. package/internal/qs/utils.d.ts.map +0 -1
  324. package/internal/qs/utils.js +0 -230
  325. package/internal/qs/utils.js.map +0 -1
  326. package/internal/qs/utils.mjs +0 -217
  327. package/internal/qs/utils.mjs.map +0 -1
  328. package/internal/request-options.d.mts +0 -77
  329. package/internal/request-options.d.mts.map +0 -1
  330. package/internal/request-options.d.ts +0 -77
  331. package/internal/request-options.d.ts.map +0 -1
  332. package/internal/request-options.js +0 -13
  333. package/internal/request-options.js.map +0 -1
  334. package/internal/request-options.mjs +0 -9
  335. package/internal/request-options.mjs.map +0 -1
  336. package/internal/shim-types.d.mts +0 -17
  337. package/internal/shim-types.d.mts.map +0 -1
  338. package/internal/shim-types.d.ts +0 -17
  339. package/internal/shim-types.d.ts.map +0 -1
  340. package/internal/shim-types.js +0 -9
  341. package/internal/shim-types.js.map +0 -1
  342. package/internal/shim-types.mjs +0 -8
  343. package/internal/shim-types.mjs.map +0 -1
  344. package/internal/shims.d.mts +0 -26
  345. package/internal/shims.d.mts.map +0 -1
  346. package/internal/shims.d.ts +0 -26
  347. package/internal/shims.d.ts.map +0 -1
  348. package/internal/shims.js +0 -97
  349. package/internal/shims.js.map +0 -1
  350. package/internal/shims.mjs +0 -90
  351. package/internal/shims.mjs.map +0 -1
  352. package/internal/to-file.d.mts +0 -45
  353. package/internal/to-file.d.mts.map +0 -1
  354. package/internal/to-file.d.ts +0 -45
  355. package/internal/to-file.d.ts.map +0 -1
  356. package/internal/to-file.js +0 -91
  357. package/internal/to-file.js.map +0 -1
  358. package/internal/to-file.mjs +0 -88
  359. package/internal/to-file.mjs.map +0 -1
  360. package/internal/tslib.js +0 -81
  361. package/internal/tslib.mjs +0 -17
  362. package/internal/types.d.mts +0 -69
  363. package/internal/types.d.mts.map +0 -1
  364. package/internal/types.d.ts +0 -69
  365. package/internal/types.d.ts.map +0 -1
  366. package/internal/types.js +0 -3
  367. package/internal/types.js.map +0 -1
  368. package/internal/types.mjs +0 -2
  369. package/internal/types.mjs.map +0 -1
  370. package/internal/uploads.d.mts +0 -42
  371. package/internal/uploads.d.mts.map +0 -1
  372. package/internal/uploads.d.ts +0 -42
  373. package/internal/uploads.d.ts.map +0 -1
  374. package/internal/uploads.js +0 -141
  375. package/internal/uploads.js.map +0 -1
  376. package/internal/uploads.mjs +0 -131
  377. package/internal/uploads.mjs.map +0 -1
  378. package/internal/utils/base64.d.mts +0 -3
  379. package/internal/utils/base64.d.mts.map +0 -1
  380. package/internal/utils/base64.d.ts +0 -3
  381. package/internal/utils/base64.d.ts.map +0 -1
  382. package/internal/utils/base64.js +0 -37
  383. package/internal/utils/base64.js.map +0 -1
  384. package/internal/utils/base64.mjs +0 -32
  385. package/internal/utils/base64.mjs.map +0 -1
  386. package/internal/utils/bytes.d.mts +0 -4
  387. package/internal/utils/bytes.d.mts.map +0 -1
  388. package/internal/utils/bytes.d.ts +0 -4
  389. package/internal/utils/bytes.d.ts.map +0 -1
  390. package/internal/utils/bytes.js +0 -31
  391. package/internal/utils/bytes.js.map +0 -1
  392. package/internal/utils/bytes.mjs +0 -26
  393. package/internal/utils/bytes.mjs.map +0 -1
  394. package/internal/utils/env.d.mts +0 -9
  395. package/internal/utils/env.d.mts.map +0 -1
  396. package/internal/utils/env.d.ts +0 -9
  397. package/internal/utils/env.d.ts.map +0 -1
  398. package/internal/utils/env.js +0 -21
  399. package/internal/utils/env.js.map +0 -1
  400. package/internal/utils/env.mjs +0 -17
  401. package/internal/utils/env.mjs.map +0 -1
  402. package/internal/utils/log.d.mts +0 -37
  403. package/internal/utils/log.d.mts.map +0 -1
  404. package/internal/utils/log.d.ts +0 -37
  405. package/internal/utils/log.d.ts.map +0 -1
  406. package/internal/utils/log.js +0 -86
  407. package/internal/utils/log.js.map +0 -1
  408. package/internal/utils/log.mjs +0 -80
  409. package/internal/utils/log.mjs.map +0 -1
  410. package/internal/utils/path.d.mts +0 -15
  411. package/internal/utils/path.d.mts.map +0 -1
  412. package/internal/utils/path.d.ts +0 -15
  413. package/internal/utils/path.d.ts.map +0 -1
  414. package/internal/utils/path.js +0 -79
  415. package/internal/utils/path.js.map +0 -1
  416. package/internal/utils/path.mjs +0 -74
  417. package/internal/utils/path.mjs.map +0 -1
  418. package/internal/utils/query.d.mts +0 -2
  419. package/internal/utils/query.d.mts.map +0 -1
  420. package/internal/utils/query.d.ts +0 -2
  421. package/internal/utils/query.d.ts.map +0 -1
  422. package/internal/utils/query.js +0 -9
  423. package/internal/utils/query.js.map +0 -1
  424. package/internal/utils/query.mjs +0 -5
  425. package/internal/utils/query.mjs.map +0 -1
  426. package/internal/utils/sleep.d.mts +0 -2
  427. package/internal/utils/sleep.d.mts.map +0 -1
  428. package/internal/utils/sleep.d.ts +0 -2
  429. package/internal/utils/sleep.d.ts.map +0 -1
  430. package/internal/utils/sleep.js +0 -6
  431. package/internal/utils/sleep.js.map +0 -1
  432. package/internal/utils/sleep.mjs +0 -2
  433. package/internal/utils/sleep.mjs.map +0 -1
  434. package/internal/utils/uuid.d.mts +0 -5
  435. package/internal/utils/uuid.d.mts.map +0 -1
  436. package/internal/utils/uuid.d.ts +0 -5
  437. package/internal/utils/uuid.d.ts.map +0 -1
  438. package/internal/utils/uuid.js +0 -18
  439. package/internal/utils/uuid.js.map +0 -1
  440. package/internal/utils/uuid.mjs +0 -14
  441. package/internal/utils/uuid.mjs.map +0 -1
  442. package/internal/utils/values.d.mts +0 -18
  443. package/internal/utils/values.d.mts.map +0 -1
  444. package/internal/utils/values.d.ts +0 -18
  445. package/internal/utils/values.d.ts.map +0 -1
  446. package/internal/utils/values.js +0 -111
  447. package/internal/utils/values.js.map +0 -1
  448. package/internal/utils/values.mjs +0 -93
  449. package/internal/utils/values.mjs.map +0 -1
  450. package/internal/utils.d.mts +0 -8
  451. package/internal/utils.d.mts.map +0 -1
  452. package/internal/utils.d.ts +0 -8
  453. package/internal/utils.d.ts.map +0 -1
  454. package/internal/utils.js +0 -11
  455. package/internal/utils.js.map +0 -1
  456. package/internal/utils.mjs +0 -8
  457. package/internal/utils.mjs.map +0 -1
  458. package/pagination.d.mts +0 -3
  459. package/pagination.d.mts.map +0 -1
  460. package/pagination.d.ts +0 -3
  461. package/pagination.d.ts.map +0 -1
  462. package/pagination.js +0 -6
  463. package/pagination.js.map +0 -1
  464. package/pagination.mjs +0 -3
  465. package/pagination.mjs.map +0 -1
  466. package/resource.d.mts +0 -3
  467. package/resource.d.mts.map +0 -1
  468. package/resource.d.ts +0 -3
  469. package/resource.d.ts.map +0 -1
  470. package/resource.js +0 -6
  471. package/resource.js.map +0 -1
  472. package/resource.mjs +0 -3
  473. package/resource.mjs.map +0 -1
  474. package/resources/account.d.mts +0 -124
  475. package/resources/account.d.mts.map +0 -1
  476. package/resources/account.d.ts +0 -124
  477. package/resources/account.d.ts.map +0 -1
  478. package/resources/account.js +0 -32
  479. package/resources/account.js.map +0 -1
  480. package/resources/account.mjs +0 -28
  481. package/resources/account.mjs.map +0 -1
  482. package/resources/agents/agents.d.mts +0 -379
  483. package/resources/agents/agents.d.mts.map +0 -1
  484. package/resources/agents/agents.d.ts +0 -379
  485. package/resources/agents/agents.d.ts.map +0 -1
  486. package/resources/agents/agents.js +0 -191
  487. package/resources/agents/agents.js.map +0 -1
  488. package/resources/agents/agents.mjs +0 -186
  489. package/resources/agents/agents.mjs.map +0 -1
  490. package/resources/agents/feedback.d.mts +0 -71
  491. package/resources/agents/feedback.d.mts.map +0 -1
  492. package/resources/agents/feedback.d.ts +0 -71
  493. package/resources/agents/feedback.d.ts.map +0 -1
  494. package/resources/agents/feedback.js +0 -33
  495. package/resources/agents/feedback.js.map +0 -1
  496. package/resources/agents/feedback.mjs +0 -29
  497. package/resources/agents/feedback.mjs.map +0 -1
  498. package/resources/agents/index.d.mts +0 -6
  499. package/resources/agents/index.d.mts.map +0 -1
  500. package/resources/agents/index.d.ts +0 -6
  501. package/resources/agents/index.d.ts.map +0 -1
  502. package/resources/agents/index.js +0 -14
  503. package/resources/agents/index.js.map +0 -1
  504. package/resources/agents/index.mjs +0 -6
  505. package/resources/agents/index.mjs.map +0 -1
  506. package/resources/agents/schedules.d.mts +0 -383
  507. package/resources/agents/schedules.d.mts.map +0 -1
  508. package/resources/agents/schedules.d.ts +0 -383
  509. package/resources/agents/schedules.d.ts.map +0 -1
  510. package/resources/agents/schedules.js +0 -171
  511. package/resources/agents/schedules.js.map +0 -1
  512. package/resources/agents/schedules.mjs +0 -167
  513. package/resources/agents/schedules.mjs.map +0 -1
  514. package/resources/agents/variations.d.mts +0 -723
  515. package/resources/agents/variations.d.mts.map +0 -1
  516. package/resources/agents/variations.d.ts +0 -723
  517. package/resources/agents/variations.d.ts.map +0 -1
  518. package/resources/agents/variations.js +0 -208
  519. package/resources/agents/variations.js.map +0 -1
  520. package/resources/agents/variations.mjs +0 -204
  521. package/resources/agents/variations.mjs.map +0 -1
  522. package/resources/agents/webhook-deliveries.d.mts +0 -96
  523. package/resources/agents/webhook-deliveries.d.mts.map +0 -1
  524. package/resources/agents/webhook-deliveries.d.ts +0 -96
  525. package/resources/agents/webhook-deliveries.d.ts.map +0 -1
  526. package/resources/agents/webhook-deliveries.js +0 -31
  527. package/resources/agents/webhook-deliveries.js.map +0 -1
  528. package/resources/agents/webhook-deliveries.mjs +0 -27
  529. package/resources/agents/webhook-deliveries.mjs.map +0 -1
  530. package/resources/agents.d.mts +0 -2
  531. package/resources/agents.d.mts.map +0 -1
  532. package/resources/agents.d.ts +0 -2
  533. package/resources/agents.d.ts.map +0 -1
  534. package/resources/agents.js +0 -5
  535. package/resources/agents.js.map +0 -1
  536. package/resources/agents.mjs +0 -2
  537. package/resources/agents.mjs.map +0 -1
  538. package/resources/ai-provider-keys.d.mts +0 -269
  539. package/resources/ai-provider-keys.d.mts.map +0 -1
  540. package/resources/ai-provider-keys.d.ts +0 -269
  541. package/resources/ai-provider-keys.d.ts.map +0 -1
  542. package/resources/ai-provider-keys.js +0 -52
  543. package/resources/ai-provider-keys.js.map +0 -1
  544. package/resources/ai-provider-keys.mjs +0 -48
  545. package/resources/ai-provider-keys.mjs.map +0 -1
  546. package/resources/api-keys.d.mts +0 -268
  547. package/resources/api-keys.d.mts.map +0 -1
  548. package/resources/api-keys.d.ts +0 -268
  549. package/resources/api-keys.d.ts.map +0 -1
  550. package/resources/api-keys.js +0 -83
  551. package/resources/api-keys.js.map +0 -1
  552. package/resources/api-keys.mjs +0 -79
  553. package/resources/api-keys.mjs.map +0 -1
  554. package/resources/global-api-key.d.mts +0 -33
  555. package/resources/global-api-key.d.mts.map +0 -1
  556. package/resources/global-api-key.d.ts +0 -33
  557. package/resources/global-api-key.d.ts.map +0 -1
  558. package/resources/global-api-key.js +0 -42
  559. package/resources/global-api-key.js.map +0 -1
  560. package/resources/global-api-key.mjs +0 -38
  561. package/resources/global-api-key.mjs.map +0 -1
  562. package/resources/index.d.mts +0 -21
  563. package/resources/index.d.mts.map +0 -1
  564. package/resources/index.d.ts +0 -21
  565. package/resources/index.d.ts.map +0 -1
  566. package/resources/index.js +0 -44
  567. package/resources/index.js.map +0 -1
  568. package/resources/index.mjs +0 -21
  569. package/resources/index.mjs.map +0 -1
  570. package/resources/memory-layers/entries.d.mts +0 -257
  571. package/resources/memory-layers/entries.d.mts.map +0 -1
  572. package/resources/memory-layers/entries.d.ts +0 -257
  573. package/resources/memory-layers/entries.d.ts.map +0 -1
  574. package/resources/memory-layers/entries.js +0 -58
  575. package/resources/memory-layers/entries.js.map +0 -1
  576. package/resources/memory-layers/entries.mjs +0 -54
  577. package/resources/memory-layers/entries.mjs.map +0 -1
  578. package/resources/memory-layers/index.d.mts +0 -3
  579. package/resources/memory-layers/index.d.mts.map +0 -1
  580. package/resources/memory-layers/index.d.ts +0 -3
  581. package/resources/memory-layers/index.d.ts.map +0 -1
  582. package/resources/memory-layers/index.js +0 -8
  583. package/resources/memory-layers/index.js.map +0 -1
  584. package/resources/memory-layers/index.mjs +0 -3
  585. package/resources/memory-layers/index.mjs.map +0 -1
  586. package/resources/memory-layers/memory-layers.d.mts +0 -196
  587. package/resources/memory-layers/memory-layers.d.mts.map +0 -1
  588. package/resources/memory-layers/memory-layers.d.ts +0 -196
  589. package/resources/memory-layers/memory-layers.d.ts.map +0 -1
  590. package/resources/memory-layers/memory-layers.js +0 -63
  591. package/resources/memory-layers/memory-layers.js.map +0 -1
  592. package/resources/memory-layers/memory-layers.mjs +0 -58
  593. package/resources/memory-layers/memory-layers.mjs.map +0 -1
  594. package/resources/memory-layers.d.mts +0 -2
  595. package/resources/memory-layers.d.mts.map +0 -1
  596. package/resources/memory-layers.d.ts +0 -2
  597. package/resources/memory-layers.d.ts.map +0 -1
  598. package/resources/memory-layers.js +0 -5
  599. package/resources/memory-layers.js.map +0 -1
  600. package/resources/memory-layers.mjs +0 -2
  601. package/resources/memory-layers.mjs.map +0 -1
  602. package/resources/models.d.mts +0 -315
  603. package/resources/models.d.mts.map +0 -1
  604. package/resources/models.d.ts +0 -315
  605. package/resources/models.d.ts.map +0 -1
  606. package/resources/models.js +0 -59
  607. package/resources/models.js.map +0 -1
  608. package/resources/models.mjs +0 -55
  609. package/resources/models.mjs.map +0 -1
  610. package/resources/objectives/feedback.d.mts +0 -126
  611. package/resources/objectives/feedback.d.mts.map +0 -1
  612. package/resources/objectives/feedback.d.ts +0 -126
  613. package/resources/objectives/feedback.d.ts.map +0 -1
  614. package/resources/objectives/feedback.js +0 -52
  615. package/resources/objectives/feedback.js.map +0 -1
  616. package/resources/objectives/feedback.mjs +0 -48
  617. package/resources/objectives/feedback.mjs.map +0 -1
  618. package/resources/objectives/index.d.mts +0 -6
  619. package/resources/objectives/index.d.mts.map +0 -1
  620. package/resources/objectives/index.d.ts +0 -6
  621. package/resources/objectives/index.d.ts.map +0 -1
  622. package/resources/objectives/index.js +0 -14
  623. package/resources/objectives/index.js.map +0 -1
  624. package/resources/objectives/index.mjs +0 -6
  625. package/resources/objectives/index.mjs.map +0 -1
  626. package/resources/objectives/objectives.d.mts +0 -1280
  627. package/resources/objectives/objectives.d.mts.map +0 -1
  628. package/resources/objectives/objectives.d.ts +0 -1280
  629. package/resources/objectives/objectives.d.ts.map +0 -1
  630. package/resources/objectives/objectives.js +0 -213
  631. package/resources/objectives/objectives.js.map +0 -1
  632. package/resources/objectives/objectives.mjs +0 -208
  633. package/resources/objectives/objectives.mjs.map +0 -1
  634. package/resources/objectives/tasks.d.mts +0 -88
  635. package/resources/objectives/tasks.d.mts.map +0 -1
  636. package/resources/objectives/tasks.d.ts +0 -88
  637. package/resources/objectives/tasks.d.ts.map +0 -1
  638. package/resources/objectives/tasks.js +0 -45
  639. package/resources/objectives/tasks.js.map +0 -1
  640. package/resources/objectives/tasks.mjs +0 -41
  641. package/resources/objectives/tasks.mjs.map +0 -1
  642. package/resources/objectives/tool-calls.d.mts +0 -379
  643. package/resources/objectives/tool-calls.d.mts.map +0 -1
  644. package/resources/objectives/tool-calls.d.ts +0 -379
  645. package/resources/objectives/tool-calls.d.ts.map +0 -1
  646. package/resources/objectives/tool-calls.js +0 -110
  647. package/resources/objectives/tool-calls.js.map +0 -1
  648. package/resources/objectives/tool-calls.mjs +0 -106
  649. package/resources/objectives/tool-calls.mjs.map +0 -1
  650. package/resources/objectives/tools.d.mts +0 -53
  651. package/resources/objectives/tools.d.mts.map +0 -1
  652. package/resources/objectives/tools.d.ts +0 -53
  653. package/resources/objectives/tools.d.ts.map +0 -1
  654. package/resources/objectives/tools.js +0 -28
  655. package/resources/objectives/tools.js.map +0 -1
  656. package/resources/objectives/tools.mjs +0 -24
  657. package/resources/objectives/tools.mjs.map +0 -1
  658. package/resources/objectives.d.mts +0 -2
  659. package/resources/objectives.d.mts.map +0 -1
  660. package/resources/objectives.d.ts +0 -2
  661. package/resources/objectives.d.ts.map +0 -1
  662. package/resources/objectives.js +0 -5
  663. package/resources/objectives.js.map +0 -1
  664. package/resources/objectives.mjs +0 -2
  665. package/resources/objectives.mjs.map +0 -1
  666. package/resources/profiles.d.mts +0 -16
  667. package/resources/profiles.d.mts.map +0 -1
  668. package/resources/profiles.d.ts +0 -16
  669. package/resources/profiles.d.ts.map +0 -1
  670. package/resources/profiles.js +0 -19
  671. package/resources/profiles.js.map +0 -1
  672. package/resources/profiles.mjs +0 -15
  673. package/resources/profiles.mjs.map +0 -1
  674. package/resources/search.d.mts +0 -33
  675. package/resources/search.d.mts.map +0 -1
  676. package/resources/search.d.ts +0 -33
  677. package/resources/search.d.ts.map +0 -1
  678. package/resources/search.js +0 -19
  679. package/resources/search.js.map +0 -1
  680. package/resources/search.mjs +0 -15
  681. package/resources/search.mjs.map +0 -1
  682. package/resources/shared.d.mts +0 -215
  683. package/resources/shared.d.mts.map +0 -1
  684. package/resources/shared.d.ts +0 -215
  685. package/resources/shared.d.ts.map +0 -1
  686. package/resources/shared.js +0 -3
  687. package/resources/shared.js.map +0 -1
  688. package/resources/shared.mjs +0 -2
  689. package/resources/shared.mjs.map +0 -1
  690. package/resources/tenants/index.d.mts +0 -3
  691. package/resources/tenants/index.d.mts.map +0 -1
  692. package/resources/tenants/index.d.ts +0 -3
  693. package/resources/tenants/index.d.ts.map +0 -1
  694. package/resources/tenants/index.js +0 -8
  695. package/resources/tenants/index.js.map +0 -1
  696. package/resources/tenants/index.mjs +0 -3
  697. package/resources/tenants/index.mjs.map +0 -1
  698. package/resources/tenants/subjects.d.mts +0 -43
  699. package/resources/tenants/subjects.d.mts.map +0 -1
  700. package/resources/tenants/subjects.d.ts +0 -43
  701. package/resources/tenants/subjects.d.ts.map +0 -1
  702. package/resources/tenants/subjects.js +0 -26
  703. package/resources/tenants/subjects.js.map +0 -1
  704. package/resources/tenants/subjects.mjs +0 -22
  705. package/resources/tenants/subjects.mjs.map +0 -1
  706. package/resources/tenants/tenants.d.mts +0 -158
  707. package/resources/tenants/tenants.d.mts.map +0 -1
  708. package/resources/tenants/tenants.d.ts +0 -158
  709. package/resources/tenants/tenants.d.ts.map +0 -1
  710. package/resources/tenants/tenants.js +0 -57
  711. package/resources/tenants/tenants.js.map +0 -1
  712. package/resources/tenants/tenants.mjs +0 -52
  713. package/resources/tenants/tenants.mjs.map +0 -1
  714. package/resources/tenants.d.mts +0 -2
  715. package/resources/tenants.d.mts.map +0 -1
  716. package/resources/tenants.d.ts +0 -2
  717. package/resources/tenants.d.ts.map +0 -1
  718. package/resources/tenants.js +0 -5
  719. package/resources/tenants.js.map +0 -1
  720. package/resources/tenants.mjs +0 -2
  721. package/resources/tenants.mjs.map +0 -1
  722. package/resources/tool-sets/index.d.mts +0 -4
  723. package/resources/tool-sets/index.d.mts.map +0 -1
  724. package/resources/tool-sets/index.d.ts +0 -4
  725. package/resources/tool-sets/index.d.ts.map +0 -1
  726. package/resources/tool-sets/index.js +0 -10
  727. package/resources/tool-sets/index.js.map +0 -1
  728. package/resources/tool-sets/index.mjs +0 -4
  729. package/resources/tool-sets/index.mjs.map +0 -1
  730. package/resources/tool-sets/secrets.d.mts +0 -135
  731. package/resources/tool-sets/secrets.d.mts.map +0 -1
  732. package/resources/tool-sets/secrets.d.ts +0 -135
  733. package/resources/tool-sets/secrets.d.ts.map +0 -1
  734. package/resources/tool-sets/secrets.js +0 -62
  735. package/resources/tool-sets/secrets.js.map +0 -1
  736. package/resources/tool-sets/secrets.mjs +0 -58
  737. package/resources/tool-sets/secrets.mjs.map +0 -1
  738. package/resources/tool-sets/tool-sets.d.mts +0 -595
  739. package/resources/tool-sets/tool-sets.d.mts.map +0 -1
  740. package/resources/tool-sets/tool-sets.d.ts +0 -595
  741. package/resources/tool-sets/tool-sets.d.ts.map +0 -1
  742. package/resources/tool-sets/tool-sets.js +0 -122
  743. package/resources/tool-sets/tool-sets.js.map +0 -1
  744. package/resources/tool-sets/tool-sets.mjs +0 -117
  745. package/resources/tool-sets/tool-sets.mjs.map +0 -1
  746. package/resources/tool-sets/tools.d.mts +0 -305
  747. package/resources/tool-sets/tools.d.mts.map +0 -1
  748. package/resources/tool-sets/tools.d.ts +0 -305
  749. package/resources/tool-sets/tools.d.ts.map +0 -1
  750. package/resources/tool-sets/tools.js +0 -84
  751. package/resources/tool-sets/tools.js.map +0 -1
  752. package/resources/tool-sets/tools.mjs +0 -80
  753. package/resources/tool-sets/tools.mjs.map +0 -1
  754. package/resources/tool-sets.d.mts +0 -2
  755. package/resources/tool-sets.d.mts.map +0 -1
  756. package/resources/tool-sets.d.ts +0 -2
  757. package/resources/tool-sets.d.ts.map +0 -1
  758. package/resources/tool-sets.js +0 -5
  759. package/resources/tool-sets.js.map +0 -1
  760. package/resources/tool-sets.mjs +0 -2
  761. package/resources/tool-sets.mjs.map +0 -1
  762. package/resources/uploads.d.mts +0 -107
  763. package/resources/uploads.d.mts.map +0 -1
  764. package/resources/uploads.d.ts +0 -107
  765. package/resources/uploads.d.ts.map +0 -1
  766. package/resources/uploads.js +0 -30
  767. package/resources/uploads.js.map +0 -1
  768. package/resources/uploads.mjs +0 -26
  769. package/resources/uploads.mjs.map +0 -1
  770. package/resources/webhooks.d.mts +0 -92
  771. package/resources/webhooks.d.mts.map +0 -1
  772. package/resources/webhooks.d.ts +0 -92
  773. package/resources/webhooks.d.ts.map +0 -1
  774. package/resources/webhooks.js +0 -22
  775. package/resources/webhooks.js.map +0 -1
  776. package/resources/webhooks.mjs +0 -18
  777. package/resources/webhooks.mjs.map +0 -1
  778. package/resources/widget-sessions.d.mts +0 -388
  779. package/resources/widget-sessions.d.mts.map +0 -1
  780. package/resources/widget-sessions.d.ts +0 -388
  781. package/resources/widget-sessions.d.ts.map +0 -1
  782. package/resources/widget-sessions.js +0 -78
  783. package/resources/widget-sessions.js.map +0 -1
  784. package/resources/widget-sessions.mjs +0 -74
  785. package/resources/widget-sessions.mjs.map +0 -1
  786. package/resources/widgets.d.mts +0 -225
  787. package/resources/widgets.d.mts.map +0 -1
  788. package/resources/widgets.d.ts +0 -225
  789. package/resources/widgets.d.ts.map +0 -1
  790. package/resources/widgets.js +0 -82
  791. package/resources/widgets.js.map +0 -1
  792. package/resources/widgets.mjs +0 -78
  793. package/resources/widgets.mjs.map +0 -1
  794. package/resources/workspace-admin/index.d.mts +0 -4
  795. package/resources/workspace-admin/index.d.mts.map +0 -1
  796. package/resources/workspace-admin/index.d.ts +0 -4
  797. package/resources/workspace-admin/index.d.ts.map +0 -1
  798. package/resources/workspace-admin/index.js +0 -10
  799. package/resources/workspace-admin/index.js.map +0 -1
  800. package/resources/workspace-admin/index.mjs +0 -4
  801. package/resources/workspace-admin/index.mjs.map +0 -1
  802. package/resources/workspace-admin/members.d.mts +0 -90
  803. package/resources/workspace-admin/members.d.mts.map +0 -1
  804. package/resources/workspace-admin/members.d.ts +0 -90
  805. package/resources/workspace-admin/members.d.ts.map +0 -1
  806. package/resources/workspace-admin/members.js +0 -73
  807. package/resources/workspace-admin/members.js.map +0 -1
  808. package/resources/workspace-admin/members.mjs +0 -69
  809. package/resources/workspace-admin/members.mjs.map +0 -1
  810. package/resources/workspace-admin/profiles.d.mts +0 -46
  811. package/resources/workspace-admin/profiles.d.mts.map +0 -1
  812. package/resources/workspace-admin/profiles.d.ts +0 -46
  813. package/resources/workspace-admin/profiles.d.ts.map +0 -1
  814. package/resources/workspace-admin/profiles.js +0 -35
  815. package/resources/workspace-admin/profiles.js.map +0 -1
  816. package/resources/workspace-admin/profiles.mjs +0 -31
  817. package/resources/workspace-admin/profiles.mjs.map +0 -1
  818. package/resources/workspace-admin/workspace-admin.d.mts +0 -227
  819. package/resources/workspace-admin/workspace-admin.d.mts.map +0 -1
  820. package/resources/workspace-admin/workspace-admin.d.ts +0 -227
  821. package/resources/workspace-admin/workspace-admin.d.ts.map +0 -1
  822. package/resources/workspace-admin/workspace-admin.js +0 -111
  823. package/resources/workspace-admin/workspace-admin.js.map +0 -1
  824. package/resources/workspace-admin/workspace-admin.mjs +0 -106
  825. package/resources/workspace-admin/workspace-admin.mjs.map +0 -1
  826. package/resources/workspace-admin.d.mts +0 -2
  827. package/resources/workspace-admin.d.mts.map +0 -1
  828. package/resources/workspace-admin.d.ts +0 -2
  829. package/resources/workspace-admin.d.ts.map +0 -1
  830. package/resources/workspace-admin.js +0 -5
  831. package/resources/workspace-admin.js.map +0 -1
  832. package/resources/workspace-admin.mjs +0 -2
  833. package/resources/workspace-admin.mjs.map +0 -1
  834. package/resources/workspace-secrets.d.mts +0 -134
  835. package/resources/workspace-secrets.d.mts.map +0 -1
  836. package/resources/workspace-secrets.d.ts +0 -134
  837. package/resources/workspace-secrets.d.ts.map +0 -1
  838. package/resources/workspace-secrets.js +0 -52
  839. package/resources/workspace-secrets.js.map +0 -1
  840. package/resources/workspace-secrets.mjs +0 -48
  841. package/resources/workspace-secrets.mjs.map +0 -1
  842. package/resources/workspaces.d.mts +0 -70
  843. package/resources/workspaces.d.mts.map +0 -1
  844. package/resources/workspaces.d.ts +0 -70
  845. package/resources/workspaces.d.ts.map +0 -1
  846. package/resources/workspaces.js +0 -23
  847. package/resources/workspaces.js.map +0 -1
  848. package/resources/workspaces.mjs +0 -19
  849. package/resources/workspaces.mjs.map +0 -1
  850. package/resources.d.mts +0 -2
  851. package/resources.d.mts.map +0 -1
  852. package/resources.d.ts +0 -2
  853. package/resources.d.ts.map +0 -1
  854. package/resources.js +0 -5
  855. package/resources.js.map +0 -1
  856. package/resources.mjs +0 -2
  857. package/resources.mjs.map +0 -1
  858. package/src/api-promise.ts +0 -2
  859. package/src/core/README.md +0 -3
  860. package/src/core/api-promise.ts +0 -90
  861. package/src/core/resource.ts +0 -9
  862. package/src/core/streaming.ts +0 -319
  863. package/src/core/uploads.ts +0 -2
  864. package/src/error.ts +0 -2
  865. package/src/internal/README.md +0 -3
  866. package/src/internal/builtin-types.ts +0 -91
  867. package/src/internal/decoders/line.ts +0 -135
  868. package/src/internal/detect-platform.ts +0 -194
  869. package/src/internal/errors.ts +0 -31
  870. package/src/internal/headers.ts +0 -95
  871. package/src/internal/parse.ts +0 -68
  872. package/src/internal/qs/LICENSE.md +0 -13
  873. package/src/internal/qs/README.md +0 -3
  874. package/src/internal/qs/formats.ts +0 -10
  875. package/src/internal/qs/index.ts +0 -13
  876. package/src/internal/qs/stringify.ts +0 -385
  877. package/src/internal/qs/types.ts +0 -71
  878. package/src/internal/qs/utils.ts +0 -265
  879. package/src/internal/request-options.ts +0 -91
  880. package/src/internal/shim-types.ts +0 -24
  881. package/src/internal/shims.ts +0 -105
  882. package/src/internal/to-file.ts +0 -154
  883. package/src/internal/types.ts +0 -91
  884. package/src/internal/uploads.ts +0 -187
  885. package/src/internal/utils/base64.ts +0 -38
  886. package/src/internal/utils/bytes.ts +0 -32
  887. package/src/internal/utils/env.ts +0 -16
  888. package/src/internal/utils/log.ts +0 -126
  889. package/src/internal/utils/path.ts +0 -88
  890. package/src/internal/utils/query.ts +0 -5
  891. package/src/internal/utils/sleep.ts +0 -1
  892. package/src/internal/utils/uuid.ts +0 -15
  893. package/src/internal/utils/values.ts +0 -103
  894. package/src/internal/utils.ts +0 -7
  895. package/src/lib/.keep +0 -3
  896. package/src/pagination.ts +0 -2
  897. package/src/resource.ts +0 -2
  898. package/src/resources/account.ts +0 -158
  899. package/src/resources/agents/agents.ts +0 -616
  900. package/src/resources/agents/feedback.ts +0 -96
  901. package/src/resources/agents/index.ts +0 -75
  902. package/src/resources/agents/schedules.ts +0 -541
  903. package/src/resources/agents/variations.ts +0 -981
  904. package/src/resources/agents/webhook-deliveries.ts +0 -176
  905. package/src/resources/global-api-key.ts +0 -44
  906. package/src/resources/index.ts +0 -307
  907. package/src/resources/memory-layers/entries.ts +0 -373
  908. package/src/resources/memory-layers/index.ts +0 -29
  909. package/src/resources/memory-layers/memory-layers.ts +0 -314
  910. package/src/resources/objectives/feedback.ts +0 -171
  911. package/src/resources/objectives/index.ts +0 -115
  912. package/src/resources/objectives/objectives.ts +0 -1787
  913. package/src/resources/objectives/tasks.ts +0 -129
  914. package/src/resources/objectives/tool-calls.ts +0 -572
  915. package/src/resources/objectives/tools.ts +0 -74
  916. package/src/resources/search.ts +0 -52
  917. package/src/resources/shared.ts +0 -234
  918. package/src/resources/tenants/index.ts +0 -13
  919. package/src/resources/tenants/subjects.ts +0 -61
  920. package/src/resources/tenants/tenants.ts +0 -218
  921. package/src/resources/tool-sets/index.ts +0 -87
  922. package/src/resources/tool-sets/secrets.ts +0 -223
  923. package/src/resources/tool-sets/tool-sets.ts +0 -934
  924. package/src/resources/tool-sets/tools.ts +0 -456
  925. package/src/resources/webhooks.ts +0 -122
  926. package/src/resources/workspace-admin/index.ts +0 -12
  927. package/src/resources/workspace-admin/members.ts +0 -131
  928. package/src/resources/workspace-admin/profiles.ts +0 -58
  929. package/src/resources/workspace-admin/workspace-admin.ts +0 -302
  930. package/src/resources.ts +0 -1
  931. package/src/streaming.ts +0 -2
  932. package/src/tsconfig.json +0 -11
  933. package/src/uploads.ts +0 -2
  934. package/src/version.ts +0 -1
  935. package/streaming.d.mts +0 -3
  936. package/streaming.d.mts.map +0 -1
  937. package/streaming.d.ts +0 -3
  938. package/streaming.d.ts.map +0 -1
  939. package/streaming.js +0 -6
  940. package/streaming.js.map +0 -1
  941. package/streaming.mjs +0 -3
  942. package/streaming.mjs.map +0 -1
  943. package/uploads.d.mts +0 -3
  944. package/uploads.d.mts.map +0 -1
  945. package/uploads.d.ts +0 -3
  946. package/uploads.d.ts.map +0 -1
  947. package/uploads.js +0 -6
  948. package/uploads.js.map +0 -1
  949. package/uploads.mjs +0 -3
  950. package/uploads.mjs.map +0 -1
  951. package/version.d.mts +0 -2
  952. package/version.d.mts.map +0 -1
  953. package/version.d.ts +0 -2
  954. package/version.d.ts.map +0 -1
  955. package/version.js +0 -5
  956. package/version.js.map +0 -1
  957. package/version.mjs +0 -2
  958. package/version.mjs.map +0 -1
@@ -0,0 +1,356 @@
1
+ // Generated by redwood. Do not edit by hand.
2
+ import { pathSegment, snapshotParams } from '../core/http.js';
3
+ import { Page } from '../core/pagination.js';
4
+ import { Stream } from '../core/sse.js';
5
+ import { wireObjectiveEpisodicConfig } from '../types.js';
6
+ export class Objectives {
7
+ _client;
8
+ constructor(_client) {
9
+ this._client = _client;
10
+ }
11
+ /**
12
+ * List objectives
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const page = await client.objectives.list();
17
+ * for await (const item of page) {
18
+ * // auto-fetches every page
19
+ * }
20
+ * ```
21
+ */
22
+ async list(params, options) {
23
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
24
+ if (workspaceId === undefined)
25
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
26
+ const _base = snapshotParams(params);
27
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives`, query: { limit: params?.limit, cursor: params?.cursor, agentId: params?.agentId, parentObjectiveId: params?.parentObjectiveId, state: params?.state, profileId: params?.profileId, sortOrder: params?.sortOrder, includeInfo: params?.includeInfo, agentScheduleId: params?.agentScheduleId, labels: params?.labels, tenantId: params?.tenantId, subjectId: params?.subjectId, widgetId: params?.widgetId, widgetSessionId: params?.widgetSessionId } }, options);
28
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.list({ ..._base, cursor: cursor }, options));
29
+ }
30
+ /**
31
+ * Create a new objective
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const objective = await client.objectives.create({ agentId: 'sample', systemPromptData: { } });
36
+ * ```
37
+ */
38
+ create(params, options) {
39
+ return this._client.requestAPI(() => {
40
+ const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
41
+ if (workspaceId === undefined)
42
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
43
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives`, body: { agentId: params.agentId, variationId: params.variationId, metadata: params.metadata, systemPromptData: params.systemPromptData, firstUserMessage: params.firstUserMessage, secrets: params.secrets, memoryCascade: params.memoryCascade, firstUserMessageData: params.firstUserMessageData, episodicMemory: wireObjectiveEpisodicConfig(params.episodicMemory), tenant: params.tenant, subject: params.subject, pinnedParameters: params.pinnedParameters } };
44
+ }, options);
45
+ }
46
+ /**
47
+ * Get an objective by ID
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const objective = await client.objectives.retrieve('_123');
52
+ * ```
53
+ */
54
+ retrieve(id, params, options) {
55
+ return this._client.requestAPI(() => {
56
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
57
+ if (workspaceId === undefined)
58
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
59
+ return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('id', id)}` };
60
+ }, options);
61
+ }
62
+ /**
63
+ * List objective context windows
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const page = await client.objectives.listContextWindows('objective_123');
68
+ * for await (const item of page) {
69
+ * // auto-fetches every page
70
+ * }
71
+ * ```
72
+ */
73
+ async listContextWindows(objectiveId, params, options) {
74
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
75
+ if (workspaceId === undefined)
76
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
77
+ const _base = snapshotParams(params);
78
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/context_windows`, query: { limit: params?.limit, cursor: params?.cursor, includeInfo: params?.includeInfo, labels: params?.labels } }, options);
79
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listContextWindows(objectiveId, { ..._base, cursor: cursor }, options));
80
+ }
81
+ /**
82
+ * Get objective context diagnostics
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const getObjectiveDiagnosticsResponse = await client.objectives.retrieveDiagnostics('objective_123');
87
+ * ```
88
+ */
89
+ retrieveDiagnostics(objectiveId, params, options) {
90
+ return this._client.requestAPI(() => {
91
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
92
+ if (workspaceId === undefined)
93
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
94
+ return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/diagnostics` };
95
+ }, options);
96
+ }
97
+ /**
98
+ * List objective events
99
+ *
100
+ * @example
101
+ * ```ts
102
+ * const page = await client.objectives.listEvents('objective_123');
103
+ * for await (const item of page) {
104
+ * // auto-fetches every page
105
+ * }
106
+ * ```
107
+ */
108
+ async listEvents(objectiveId, params, options) {
109
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
110
+ if (workspaceId === undefined)
111
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
112
+ const _base = snapshotParams(params);
113
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/events`, query: { limit: params?.limit, cursor: params?.cursor, sortOrder: params?.sortOrder, includeInfo: params?.includeInfo, windowId: params?.windowId, sinceEventId: params?.sinceEventId, labels: params?.labels } }, options);
114
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listEvents(objectiveId, { ..._base, cursor: cursor }, options));
115
+ }
116
+ /**
117
+ * Stream objective events
118
+ *
119
+ * @example
120
+ * ```ts
121
+ * const stream = await client.objectives.streamEvents('objective_123');
122
+ * for await (const event of stream) {
123
+ * // typed event payloads; housekeeping frames are skipped
124
+ * }
125
+ * ```
126
+ */
127
+ async streamEvents(objectiveId, params, options) {
128
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
129
+ if (workspaceId === undefined)
130
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
131
+ const _spec = { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/events:stream`, stream: true };
132
+ const response = await this._client.rawRequest(_spec, options);
133
+ return new Stream(response, options?.signal, options?.lastEventId, ['ping', 'open'], options?.reconnect === false ? undefined : (lastEventId, signal) => this._client.rawRequest(_spec, { ...options, lastEventId, signal }));
134
+ }
135
+ /**
136
+ * List feedback for an objective
137
+ *
138
+ * @example
139
+ * ```ts
140
+ * const page = await client.objectives.listFeedback('objective_123');
141
+ * for await (const item of page) {
142
+ * // auto-fetches every page
143
+ * }
144
+ * ```
145
+ */
146
+ async listFeedback(objectiveId, params, options) {
147
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
148
+ if (workspaceId === undefined)
149
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
150
+ const _base = snapshotParams(params);
151
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/feedback`, query: { limit: params?.limit, cursor: params?.cursor, labels: params?.labels } }, options);
152
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listFeedback(objectiveId, { ..._base, cursor: cursor }, options));
153
+ }
154
+ /**
155
+ * Submit feedback for an objective
156
+ *
157
+ * @example
158
+ * ```ts
159
+ * const objectiveFeedback = await client.objectives.createFeedback('objective_123', { metadata: { }, data: { } });
160
+ * ```
161
+ */
162
+ createFeedback(objectiveId, params, options) {
163
+ return this._client.requestAPI(() => {
164
+ const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
165
+ if (workspaceId === undefined)
166
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
167
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/feedback`, body: { metadata: params.metadata, data: params.data } };
168
+ }, options);
169
+ }
170
+ /**
171
+ * List objective tasks
172
+ *
173
+ * @example
174
+ * ```ts
175
+ * const page = await client.objectives.listTasks('objective_123');
176
+ * for await (const item of page) {
177
+ * // auto-fetches every page
178
+ * }
179
+ * ```
180
+ */
181
+ async listTasks(objectiveId, params, options) {
182
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
183
+ if (workspaceId === undefined)
184
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
185
+ const _base = snapshotParams(params);
186
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tasks`, query: { limit: params?.limit, cursor: params?.cursor, sortOrder: params?.sortOrder } }, options);
187
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listTasks(objectiveId, { ..._base, cursor: cursor }, options));
188
+ }
189
+ /**
190
+ * Get an objective task by ID
191
+ *
192
+ * @example
193
+ * ```ts
194
+ * const objectiveTask = await client.objectives.retrieveTask('objective_123', '_123');
195
+ * ```
196
+ */
197
+ retrieveTask(objectiveId, id, params, options) {
198
+ return this._client.requestAPI(() => {
199
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
200
+ if (workspaceId === undefined)
201
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
202
+ return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tasks/${pathSegment('id', id)}` };
203
+ }, options);
204
+ }
205
+ /**
206
+ * List objective tool calls
207
+ *
208
+ * @example
209
+ * ```ts
210
+ * const page = await client.objectives.listToolCalls('objective_123');
211
+ * for await (const item of page) {
212
+ * // auto-fetches every page
213
+ * }
214
+ * ```
215
+ */
216
+ async listToolCalls(objectiveId, params, options) {
217
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
218
+ if (workspaceId === undefined)
219
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
220
+ const _base = snapshotParams(params);
221
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls`, query: { limit: params?.limit, cursor: params?.cursor, status: params?.status, includeInfo: params?.includeInfo, executionStatus: params?.executionStatus, labels: params?.labels } }, options);
222
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listToolCalls(objectiveId, { ..._base, cursor: cursor }, options));
223
+ }
224
+ /**
225
+ * Get an objective tool call by ID
226
+ *
227
+ * @example
228
+ * ```ts
229
+ * const objectiveToolCallWithResult = await client.objectives.retrieveToolCall('objective_123', 'tool_call_123');
230
+ * ```
231
+ */
232
+ retrieveToolCall(objectiveId, toolCallId, params, options) {
233
+ return this._client.requestAPI(() => {
234
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
235
+ if (workspaceId === undefined)
236
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
237
+ return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}` };
238
+ }, options);
239
+ }
240
+ /**
241
+ * Approve a tool call
242
+ *
243
+ * @example
244
+ * ```ts
245
+ * const objectiveToolCall = await client.objectives.approveToolCall('objective_123', 'tool_call_123');
246
+ * ```
247
+ */
248
+ approveToolCall(objectiveId, toolCallId, params, options) {
249
+ return this._client.requestAPI(() => {
250
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
251
+ if (workspaceId === undefined)
252
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
253
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}:approve` };
254
+ }, options);
255
+ }
256
+ /**
257
+ * Deny a tool call
258
+ *
259
+ * @example
260
+ * ```ts
261
+ * const objectiveToolCall = await client.objectives.denyToolCall('objective_123', 'tool_call_123');
262
+ * ```
263
+ */
264
+ denyToolCall(objectiveId, toolCallId, params, options) {
265
+ return this._client.requestAPI(() => {
266
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
267
+ if (workspaceId === undefined)
268
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
269
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}:deny`, body: { memo: params?.memo } };
270
+ }, options);
271
+ }
272
+ /**
273
+ * Set a bare tool call's content
274
+ *
275
+ * @example
276
+ * ```ts
277
+ * const objectiveToolCall = await client.objectives.setToolCallContent('objective_123', 'tool_call_123', { content: [{ text: { text: 'sample' }, type: 'text' }] });
278
+ * ```
279
+ */
280
+ setToolCallContent(objectiveId, toolCallId, params, options) {
281
+ return this._client.requestAPI(() => {
282
+ const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
283
+ if (workspaceId === undefined)
284
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
285
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}:setContent`, body: { content: params.content } };
286
+ }, options);
287
+ }
288
+ /**
289
+ * List objective tools
290
+ *
291
+ * @example
292
+ * ```ts
293
+ * const page = await client.objectives.listTools('objective_123');
294
+ * for await (const item of page) {
295
+ * // auto-fetches every page
296
+ * }
297
+ * ```
298
+ */
299
+ async listTools(objectiveId, params, options) {
300
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
301
+ if (workspaceId === undefined)
302
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
303
+ const _base = snapshotParams(params);
304
+ const response = await this._client.request({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tools`, query: { limit: params?.limit, cursor: params?.cursor } }, options);
305
+ return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listTools(objectiveId, { ..._base, cursor: cursor }, options));
306
+ }
307
+ /**
308
+ * Cancel an objective
309
+ *
310
+ * @example
311
+ * ```ts
312
+ * const objective = await client.objectives.cancel('objective_123');
313
+ * ```
314
+ */
315
+ cancel(objectiveId, params, options) {
316
+ return this._client.requestAPI(() => {
317
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
318
+ if (workspaceId === undefined)
319
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
320
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}:cancel`, body: { reason: params?.reason } };
321
+ }, options);
322
+ }
323
+ /**
324
+ * Compact an objective
325
+ *
326
+ * @example
327
+ * ```ts
328
+ * const compactObjectiveResponse = await client.objectives.compact('objective_123');
329
+ * ```
330
+ */
331
+ compact(objectiveId, params, options) {
332
+ return this._client.requestAPI(() => {
333
+ const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
334
+ if (workspaceId === undefined)
335
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
336
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}:compact`, body: { compactionConfig: params?.compactionConfig } };
337
+ }, options);
338
+ }
339
+ /**
340
+ * Continue an objective
341
+ *
342
+ * @example
343
+ * ```ts
344
+ * const objectiveEvent = await client.objectives.continue('objective_123', { message: 'sample' });
345
+ * ```
346
+ */
347
+ continue(objectiveId, params, options) {
348
+ return this._client.requestAPI(() => {
349
+ const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;
350
+ if (workspaceId === undefined)
351
+ throw new Error("Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.");
352
+ return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}:continue`, body: { message: params.message, enqueue: params.enqueue } };
353
+ }, options);
354
+ }
355
+ }
356
+ //# sourceMappingURL=objectives.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectives.js","sourceRoot":"","sources":["../../src/resources/objectives.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAE7C,OAAO,EAAuD,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnH,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBA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AAK,CAAC,uHAAuH,CAAC,CAAC;YACxK,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,eAAe,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC;QACnN,CAAC,EAAE,OAAO,CAAC,CAAC;IACd,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAmB,EAAE,MAA+B,EAAE,OAAwB;QACrF,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAiB,GAAG,EAAE;YAClD,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,SAAS,CAAC;YACjH,IAAI,WAAW,KAAK,SAAS;gBAAE,MAAM,IAAI,KAAK,CAAC,uHAAuH,CAAC,CAAC;YACxK,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,eAAe,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,WAAW,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;QAC1N,CAAC,EAAE,OAAO,CAAC,CAAC;IACd,CAAC;CACF","sourcesContent":["// Generated by redwood. Do not edit by hand.\n\nimport { HttpClient, RequestOptions, RequestSpec, APIPromise, pathSegment, snapshotParams } from '../core/http.js';\nimport { Page } from '../core/pagination.js';\nimport { Stream } from '../core/sse.js';\nimport type { AgentVariationSpec_CompactionConfig, CompactObjectiveResponse, CreateObjectiveRequest_Secret, CreateOperationMetadata, GetObjectiveDiagnosticsResponse, ListObjectiveContextWindowsResponse, ListObjectiveEventsResponse, ListObjectiveFeedbackResponse, ListObjectiveTasksResponse, ListObjectiveToolCallsResponse, ListObjectiveToolsResponse, ListObjectivesResponse, MemoryReference, Objective, ObjectiveContextWindow, ObjectiveEpisodicConfigParam, ObjectiveEvent, ObjectiveFeedback, ObjectiveFeedbackData, ObjectiveServiceListObjectiveToolCallsExecutionStatus, ObjectiveServiceListObjectiveToolCallsStatus, ObjectiveServiceListObjectivesState, ObjectiveTask, ObjectiveTool, ObjectiveToolCall, ObjectiveToolCallWithResult, SetToolCallContentRequest_ContentBlock, SubjectAssertion, TenantAssertion } from '../types.js';\nimport { wireObjectiveEpisodicConfig } from '../types.js';\n\nexport interface ObjectiveListParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n /**\n * Agent ID for filtering\n */\n agentId?: string;\n /**\n * Optional filters\n */\n parentObjectiveId?: string;\n /**\n * Filter by state\n */\n state?: ObjectiveServiceListObjectivesState;\n profileId?: string;\n /**\n * Sort order for results (asc or desc by creation time)\n */\n sortOrder?: string;\n /**\n * When set to true you may use more of your alloted API rate-limit\n */\n includeInfo?: boolean;\n /**\n * Filter to objectives produced by a specific AgentSchedule. Accepts\n * canonical as_… form or external_id:<value> form.\n */\n agentScheduleId?: string;\n /**\n * Filters by metadata labels. Comma-separated key=value pairs,\n * e.g. \"env=prod,team=ai\". A resource matches only if every pair\n * matches exactly (AND semantics).\n */\n labels?: string;\n /**\n * Filter to objectives associated with a tenant. Accepts the canonical\n * `tenant_…` form or the `external_id:<value>` form.\n */\n tenantId?: string;\n /**\n * Filter to objectives associated with a subject. Accepts the canonical\n * `subj_…` form or the `external_id:<value>` form; the external_id form is\n * scoped within a tenant and requires `tenant_id` to also be set.\n */\n subjectId?: string;\n /**\n * Filter to objectives whose conversation ran through a widget. Accepts\n * the canonical `wgt_…` form or the `external_id:<value>` form.\n */\n widgetId?: string;\n /**\n * Filter to objectives created by a specific widget session.\n */\n widgetSessionId?: string;\n}\n\nexport interface ObjectiveCreateParams {\n agentId: string;\n /**\n * Arbitrary data rendered into the selected variation's system_prompt_template\n * (liquid) to produce the objective's system prompt. If the agent has a\n * system_prompt_data_schema, this must satisfy it.\n */\n systemPromptData: Record<string, unknown>;\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Optional explicit variation selection. Overrides the agent's variation_selection_mode.\n */\n variationId?: string;\n metadata?: CreateOperationMetadata;\n /**\n * Optional explicit first user message for the LLM chat history. When not set,\n * the selected variation's first_user_message_template is rendered with\n * first_user_message_data instead. If neither this field nor a\n * first_user_message_template is present, the request is rejected with InvalidArgument.\n */\n firstUserMessage?: string;\n /**\n * Secrets that can be used in the headers for tool calls using the secret interpolation format.\n */\n secrets?: Array<CreateObjectiveRequest_Secret>;\n /**\n * Memory layers/entries layered over the baseline cascade inherited\n * from the selected variation — element-level rules over inherited\n * styles, in CSS terms.\n * \n * Array order is resolution order: EARLIER elements are more specific\n * and are consulted first. Entries pinned via memory_entry_id behave\n * as single-entry layers at their position.\n * \n * System-managed layers (e.g., episodic) cannot be referenced here;\n * they attach themselves automatically based on the episodic key.\n * \n * Size cap: the TOTAL effective cascade (this field + the variation's\n * memory layer assignments) must not exceed 10 entries. A request\n * that would produce a larger cascade is rejected with\n * InvalidArgument.\n */\n memoryCascade?: Array<MemoryReference>;\n /**\n * Arbitrary data rendered into the selected variation's first_user_message_template\n * (liquid) to produce the first user message. Separate from `system_prompt_data`,\n * which renders the system prompt template.\n */\n firstUserMessageData?: Record<string, unknown>;\n /**\n * If the agent variation that is selected has episodic memory enabled, then this key is used to create/update a memory layer\n * specific to the episodic memory. The layer may have a TTL configured by the variation.\n */\n episodicMemory?: ObjectiveEpisodicConfigParam;\n /**\n * Optional tenant assertion — the customer's org/company identifier for the\n * end user this objective serves. Upserts the tenant record in the\n * workspace and associates the objective with it.\n */\n tenant?: TenantAssertion;\n /**\n * Optional subject assertion — the person within the tenant this objective\n * serves. Requires `tenant`; a subject asserted without a tenant is\n * rejected with InvalidArgument.\n */\n subject?: SubjectAssertion;\n /**\n * Parameters forced onto this objective's tool calls. A pinned parameter\n * is an overlay on a tool's JSON schema: the parameter is removed from\n * what the LLM sees, and its value is always overwritten server-side with\n * the pinned value — the model cannot choose a different value for it.\n */\n pinnedParameters?: Record<string, string>;\n}\n\nexport interface ObjectiveRetrieveParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveListContextWindowsParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n /**\n * When set to true you may use more of your alloted API rate-limit\n */\n includeInfo?: boolean;\n /**\n * Filters by metadata labels. Comma-separated key=value pairs,\n * e.g. \"env=prod,team=ai\". A resource matches only if every pair\n * matches exactly (AND semantics).\n */\n labels?: string;\n}\n\nexport interface ObjectiveRetrieveDiagnosticsParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveListEventsParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n /**\n * Sort order for results (asc or desc by creation time)\n */\n sortOrder?: string;\n /**\n * When set to true you may use more of your alloted API rate-limit\n */\n includeInfo?: boolean;\n /**\n * Optional context window ID to filter events by\n */\n windowId?: string;\n /**\n * Optional string to fetch events since an ID\n */\n sinceEventId?: string;\n /**\n * Filters by metadata labels. Comma-separated key=value pairs,\n * e.g. \"env=prod,team=ai\". A resource matches only if every pair\n * matches exactly (AND semantics).\n */\n labels?: string;\n}\n\nexport interface ObjectiveStreamEventsParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveListFeedbackParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n /**\n * Filters by metadata labels. Comma-separated key=value pairs,\n * e.g. \"env=prod,team=ai\". A resource matches only if every pair\n * matches exactly (AND semantics).\n */\n labels?: string;\n}\n\nexport interface ObjectiveCreateFeedbackParams {\n metadata: CreateOperationMetadata;\n data: ObjectiveFeedbackData;\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveListTasksParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n /**\n * Sort order for results\n */\n sortOrder?: string;\n}\n\nexport interface ObjectiveRetrieveTaskParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveListToolCallsParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n /**\n * Filter by tool call status\n */\n status?: ObjectiveServiceListObjectiveToolCallsStatus;\n /**\n * When set to true you may use more of your alloted API rate-limit\n */\n includeInfo?: boolean;\n /**\n * Filter by tool call execution status. Useful for reverse-harness\n * polling of bare tool calls waiting for externally supplied content\n * (TOOL_CALL_EXECUTION_STATUS_WAITING_FOR_CONTENT).\n */\n executionStatus?: ObjectiveServiceListObjectiveToolCallsExecutionStatus;\n /**\n * Filters by metadata labels. Comma-separated key=value pairs,\n * e.g. \"env=prod,team=ai\". A resource matches only if every pair\n * matches exactly (AND semantics).\n */\n labels?: string;\n}\n\nexport interface ObjectiveRetrieveToolCallParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveApproveToolCallParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveDenyToolCallParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * A memo to associate to the tool call denial. Use a memo to steer the LLM to a different decision or usage of the tool.\n */\n memo?: string;\n}\n\nexport interface ObjectiveSetToolCallContentParams {\n /**\n * The content to set on the tool call. Mirrors\n * ObjectiveToolCallResult.ContentBlock but writable: media blocks carry\n * raw data on input where the result-side carries a signed url on output.\n */\n content: Array<SetToolCallContentRequest_ContentBlock>;\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n}\n\nexport interface ObjectiveListToolsParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Maximum number of results to return\n */\n limit?: number;\n /**\n * Pagination cursor from previous response\n */\n cursor?: string;\n}\n\nexport interface ObjectiveCancelParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Optional reason for cancellation\n */\n reason?: string;\n}\n\nexport interface ObjectiveCompactParams {\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * Optional compaction config override. When not set, uses the variation's compaction_config.\n */\n compactionConfig?: AgentVariationSpec_CompactionConfig;\n}\n\nexport interface ObjectiveContinueParams {\n /**\n * The message to continue an objective that has completed (or you are enqueing)\n */\n message: string;\n /**\n * Defaults to the client-level `workspaceId` option or the CADENYA_WORKSPACE_ID environment variable.\n */\n workspaceId?: string;\n /**\n * When set to true, the message will be enqueued for when the agent loop is available to process it.\n */\n enqueue?: boolean;\n}\n\nexport class Objectives {\n constructor(private readonly _client: HttpClient) {}\n\n /**\n * List objectives\n * \n * @example\n * ```ts\n * const page = await client.objectives.list();\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async list(params?: ObjectiveListParams, options?: RequestOptions): Promise<Page<Objective>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectivesResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives`, query: { limit: params?.limit, cursor: params?.cursor, agentId: params?.agentId, parentObjectiveId: params?.parentObjectiveId, state: params?.state, profileId: params?.profileId, sortOrder: params?.sortOrder, includeInfo: params?.includeInfo, agentScheduleId: params?.agentScheduleId, labels: params?.labels, tenantId: params?.tenantId, subjectId: params?.subjectId, widgetId: params?.widgetId, widgetSessionId: params?.widgetSessionId } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.list({ ..._base, cursor: cursor }, options));\n }\n\n /**\n * Create a new objective\n * \n * @example\n * ```ts\n * const objective = await client.objectives.create({ agentId: 'sample', systemPromptData: { } });\n * ```\n */\n create(params: ObjectiveCreateParams, options?: RequestOptions): APIPromise<Objective> {\n return this._client.requestAPI<Objective>(() => {\n const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives`, body: { agentId: params.agentId, variationId: params.variationId, metadata: params.metadata, systemPromptData: params.systemPromptData, firstUserMessage: params.firstUserMessage, secrets: params.secrets, memoryCascade: params.memoryCascade, firstUserMessageData: params.firstUserMessageData, episodicMemory: wireObjectiveEpisodicConfig(params.episodicMemory), tenant: params.tenant, subject: params.subject, pinnedParameters: params.pinnedParameters } };\n }, options);\n }\n\n /**\n * Get an objective by ID\n * \n * @example\n * ```ts\n * const objective = await client.objectives.retrieve('_123');\n * ```\n */\n retrieve(id: string, params?: ObjectiveRetrieveParams, options?: RequestOptions): APIPromise<Objective> {\n return this._client.requestAPI<Objective>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('id', id)}` };\n }, options);\n }\n\n /**\n * List objective context windows\n * \n * @example\n * ```ts\n * const page = await client.objectives.listContextWindows('objective_123');\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async listContextWindows(objectiveId: string, params?: ObjectiveListContextWindowsParams, options?: RequestOptions): Promise<Page<ObjectiveContextWindow>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectiveContextWindowsResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/context_windows`, query: { limit: params?.limit, cursor: params?.cursor, includeInfo: params?.includeInfo, labels: params?.labels } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listContextWindows(objectiveId, { ..._base, cursor: cursor }, options));\n }\n\n /**\n * Get objective context diagnostics\n * \n * @example\n * ```ts\n * const getObjectiveDiagnosticsResponse = await client.objectives.retrieveDiagnostics('objective_123');\n * ```\n */\n retrieveDiagnostics(objectiveId: string, params?: ObjectiveRetrieveDiagnosticsParams, options?: RequestOptions): APIPromise<GetObjectiveDiagnosticsResponse> {\n return this._client.requestAPI<GetObjectiveDiagnosticsResponse>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/diagnostics` };\n }, options);\n }\n\n /**\n * List objective events\n * \n * @example\n * ```ts\n * const page = await client.objectives.listEvents('objective_123');\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async listEvents(objectiveId: string, params?: ObjectiveListEventsParams, options?: RequestOptions): Promise<Page<ObjectiveEvent>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectiveEventsResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/events`, query: { limit: params?.limit, cursor: params?.cursor, sortOrder: params?.sortOrder, includeInfo: params?.includeInfo, windowId: params?.windowId, sinceEventId: params?.sinceEventId, labels: params?.labels } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listEvents(objectiveId, { ..._base, cursor: cursor }, options));\n }\n\n /**\n * Stream objective events\n * \n * @example\n * ```ts\n * const stream = await client.objectives.streamEvents('objective_123');\n * for await (const event of stream) {\n * // typed event payloads; housekeeping frames are skipped\n * }\n * ```\n */\n async streamEvents(objectiveId: string, params?: ObjectiveStreamEventsParams, options?: RequestOptions): Promise<Stream<ObjectiveEvent>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _spec: RequestSpec = { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/events:stream`, stream: true };\n const response = await this._client.rawRequest(_spec, options);\n return new Stream<ObjectiveEvent>(response, options?.signal, options?.lastEventId, ['ping', 'open'], options?.reconnect === false ? undefined : (lastEventId, signal) => this._client.rawRequest(_spec, { ...options, lastEventId, signal }));\n }\n\n /**\n * List feedback for an objective\n * \n * @example\n * ```ts\n * const page = await client.objectives.listFeedback('objective_123');\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async listFeedback(objectiveId: string, params?: ObjectiveListFeedbackParams, options?: RequestOptions): Promise<Page<ObjectiveFeedback>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectiveFeedbackResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/feedback`, query: { limit: params?.limit, cursor: params?.cursor, labels: params?.labels } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listFeedback(objectiveId, { ..._base, cursor: cursor }, options));\n }\n\n /**\n * Submit feedback for an objective\n * \n * @example\n * ```ts\n * const objectiveFeedback = await client.objectives.createFeedback('objective_123', { metadata: { }, data: { } });\n * ```\n */\n createFeedback(objectiveId: string, params: ObjectiveCreateFeedbackParams, options?: RequestOptions): APIPromise<ObjectiveFeedback> {\n return this._client.requestAPI<ObjectiveFeedback>(() => {\n const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/feedback`, body: { metadata: params.metadata, data: params.data } };\n }, options);\n }\n\n /**\n * List objective tasks\n * \n * @example\n * ```ts\n * const page = await client.objectives.listTasks('objective_123');\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async listTasks(objectiveId: string, params?: ObjectiveListTasksParams, options?: RequestOptions): Promise<Page<ObjectiveTask>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectiveTasksResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tasks`, query: { limit: params?.limit, cursor: params?.cursor, sortOrder: params?.sortOrder } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listTasks(objectiveId, { ..._base, cursor: cursor }, options));\n }\n\n /**\n * Get an objective task by ID\n * \n * @example\n * ```ts\n * const objectiveTask = await client.objectives.retrieveTask('objective_123', '_123');\n * ```\n */\n retrieveTask(objectiveId: string, id: string, params?: ObjectiveRetrieveTaskParams, options?: RequestOptions): APIPromise<ObjectiveTask> {\n return this._client.requestAPI<ObjectiveTask>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tasks/${pathSegment('id', id)}` };\n }, options);\n }\n\n /**\n * List objective tool calls\n * \n * @example\n * ```ts\n * const page = await client.objectives.listToolCalls('objective_123');\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async listToolCalls(objectiveId: string, params?: ObjectiveListToolCallsParams, options?: RequestOptions): Promise<Page<ObjectiveToolCall>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectiveToolCallsResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls`, query: { limit: params?.limit, cursor: params?.cursor, status: params?.status, includeInfo: params?.includeInfo, executionStatus: params?.executionStatus, labels: params?.labels } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listToolCalls(objectiveId, { ..._base, cursor: cursor }, options));\n }\n\n /**\n * Get an objective tool call by ID\n * \n * @example\n * ```ts\n * const objectiveToolCallWithResult = await client.objectives.retrieveToolCall('objective_123', 'tool_call_123');\n * ```\n */\n retrieveToolCall(objectiveId: string, toolCallId: string, params?: ObjectiveRetrieveToolCallParams, options?: RequestOptions): APIPromise<ObjectiveToolCallWithResult> {\n return this._client.requestAPI<ObjectiveToolCallWithResult>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}` };\n }, options);\n }\n\n /**\n * Approve a tool call\n * \n * @example\n * ```ts\n * const objectiveToolCall = await client.objectives.approveToolCall('objective_123', 'tool_call_123');\n * ```\n */\n approveToolCall(objectiveId: string, toolCallId: string, params?: ObjectiveApproveToolCallParams, options?: RequestOptions): APIPromise<ObjectiveToolCall> {\n return this._client.requestAPI<ObjectiveToolCall>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}:approve` };\n }, options);\n }\n\n /**\n * Deny a tool call\n * \n * @example\n * ```ts\n * const objectiveToolCall = await client.objectives.denyToolCall('objective_123', 'tool_call_123');\n * ```\n */\n denyToolCall(objectiveId: string, toolCallId: string, params?: ObjectiveDenyToolCallParams, options?: RequestOptions): APIPromise<ObjectiveToolCall> {\n return this._client.requestAPI<ObjectiveToolCall>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}:deny`, body: { memo: params?.memo } };\n }, options);\n }\n\n /**\n * Set a bare tool call's content\n * \n * @example\n * ```ts\n * const objectiveToolCall = await client.objectives.setToolCallContent('objective_123', 'tool_call_123', { content: [{ text: { text: 'sample' }, type: 'text' }] });\n * ```\n */\n setToolCallContent(objectiveId: string, toolCallId: string, params: ObjectiveSetToolCallContentParams, options?: RequestOptions): APIPromise<ObjectiveToolCall> {\n return this._client.requestAPI<ObjectiveToolCall>(() => {\n const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tool_calls/${pathSegment('toolCallId', toolCallId)}:setContent`, body: { content: params.content } };\n }, options);\n }\n\n /**\n * List objective tools\n * \n * @example\n * ```ts\n * const page = await client.objectives.listTools('objective_123');\n * for await (const item of page) {\n * // auto-fetches every page\n * }\n * ```\n */\n async listTools(objectiveId: string, params?: ObjectiveListToolsParams, options?: RequestOptions): Promise<Page<ObjectiveTool>> {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n const _base = snapshotParams(params);\n const response = await this._client.request<ListObjectiveToolsResponse>({ method: 'GET', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}/tools`, query: { limit: params?.limit, cursor: params?.cursor } }, options);\n return new Page(response.items ?? [], response.pagination?.nextCursor, (cursor) => this.listTools(objectiveId, { ..._base, cursor: cursor }, options));\n }\n\n /**\n * Cancel an objective\n * \n * @example\n * ```ts\n * const objective = await client.objectives.cancel('objective_123');\n * ```\n */\n cancel(objectiveId: string, params?: ObjectiveCancelParams, options?: RequestOptions): APIPromise<Objective> {\n return this._client.requestAPI<Objective>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}:cancel`, body: { reason: params?.reason } };\n }, options);\n }\n\n /**\n * Compact an objective\n * \n * @example\n * ```ts\n * const compactObjectiveResponse = await client.objectives.compact('objective_123');\n * ```\n */\n compact(objectiveId: string, params?: ObjectiveCompactParams, options?: RequestOptions): APIPromise<CompactObjectiveResponse> {\n return this._client.requestAPI<CompactObjectiveResponse>(() => {\n const workspaceId = String(params?.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}:compact`, body: { compactionConfig: params?.compactionConfig } };\n }, options);\n }\n\n /**\n * Continue an objective\n * \n * @example\n * ```ts\n * const objectiveEvent = await client.objectives.continue('objective_123', { message: 'sample' });\n * ```\n */\n continue(objectiveId: string, params: ObjectiveContinueParams, options?: RequestOptions): APIPromise<ObjectiveEvent> {\n return this._client.requestAPI<ObjectiveEvent>(() => {\n const workspaceId = String(params.workspaceId ?? this._client.defaults['workspaceId'] ?? '').trim() || undefined;\n if (workspaceId === undefined) throw new Error(\"Missing 'workspaceId': pass it in params, set it on the client, or set the CADENYA_WORKSPACE_ID environment variable.\");\n return { method: 'POST', path: `/v1/workspaces/${pathSegment('workspaceId', workspaceId)}/objectives/${pathSegment('objectiveId', objectiveId)}:continue`, body: { message: params.message, enqueue: params.enqueue } };\n }, options);\n }\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { HttpClient, RequestOptions, APIPromise } from '../core/http.js';
2
+ import type { Profile } from '../types.js';
3
+ export declare class Profiles {
4
+ private readonly _client;
5
+ constructor(_client: HttpClient);
6
+ /**
7
+ * Retrieves the profile for the credentials accessing the API
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const profile = await client.profiles.whoami();
12
+ * ```
13
+ */
14
+ whoami(options?: RequestOptions): APIPromise<Profile>;
15
+ }
16
+ //# sourceMappingURL=profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/resources/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,UAAU;IAEhD;;;;;;;OAOG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAKtD"}
@@ -0,0 +1,21 @@
1
+ // Generated by redwood. Do not edit by hand.
2
+ export class Profiles {
3
+ _client;
4
+ constructor(_client) {
5
+ this._client = _client;
6
+ }
7
+ /**
8
+ * Retrieves the profile for the credentials accessing the API
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const profile = await client.profiles.whoami();
13
+ * ```
14
+ */
15
+ whoami(options) {
16
+ return this._client.requestAPI(() => {
17
+ return { method: 'GET', path: `/v1/whoami` };
18
+ }, options);
19
+ }
20
+ }
21
+ //# sourceMappingURL=profiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/resources/profiles.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAK7C,MAAM,OAAO,QAAQ;IACU;IAA7B,YAA6B,OAAmB;QAAnB,YAAO,GAAP,OAAO,CAAY;IAAG,CAAC;IAEpD;;;;;;;OAOG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAU,GAAG,EAAE;YAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAC/C,CAAC,EAAE,OAAO,CAAC,CAAC;IACd,CAAC;CACF","sourcesContent":["// Generated by redwood. Do not edit by hand.\n\nimport { HttpClient, RequestOptions, APIPromise } from '../core/http.js';\nimport type { Profile } from '../types.js';\n\nexport class Profiles {\n constructor(private readonly _client: HttpClient) {}\n\n /**\n * Retrieves the profile for the credentials accessing the API\n * \n * @example\n * ```ts\n * const profile = await client.profiles.whoami();\n * ```\n */\n whoami(options?: RequestOptions): APIPromise<Profile> {\n return this._client.requestAPI<Profile>(() => {\n return { method: 'GET', path: `/v1/whoami` };\n }, options);\n }\n}\n"]}