@orq-ai/node 3.14.5-rc.1 → 3.14.6

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 (494) hide show
  1. package/bin/mcp-server.js +213 -210
  2. package/bin/mcp-server.js.map +38 -38
  3. package/docs/sdks/agents/README.md +4 -8
  4. package/docs/sdks/budgets/README.md +2 -4
  5. package/docs/sdks/tools/README.md +2 -4
  6. package/examples/package-lock.json +6 -5
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +10 -10
  22. package/models/operations/duplicatetool.js +10 -10
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.js +10 -10
  27. package/models/operations/getbudget.js +2 -2
  28. package/models/operations/getevals.js +28 -28
  29. package/models/operations/listbudgets.js +2 -2
  30. package/models/operations/listcontacts.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +8 -8
  32. package/models/operations/listdatasets.js +2 -2
  33. package/models/operations/listdatasources.js +2 -2
  34. package/models/operations/retrievecontact.js +2 -2
  35. package/models/operations/retrievedatapoint.js +8 -8
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/retrievetool.js +10 -10
  39. package/models/operations/updatebudget.js +2 -2
  40. package/models/operations/updatecontact.js +2 -2
  41. package/models/operations/updatedatapoint.js +8 -8
  42. package/models/operations/updatedataset.js +2 -2
  43. package/models/operations/updatedatasource.js +2 -2
  44. package/models/operations/updateeval.js +28 -28
  45. package/models/operations/updatetool.js +10 -10
  46. package/package.json +4 -4
  47. package/packages/orq-rc/FUNCTIONS.md +103 -0
  48. package/packages/orq-rc/README.md +909 -0
  49. package/packages/orq-rc/RUNTIMES.md +48 -0
  50. package/packages/orq-rc/docs/sdks/agents/README.md +1319 -0
  51. package/packages/orq-rc/docs/sdks/budgets/README.md +401 -0
  52. package/packages/orq-rc/docs/sdks/chunking/README.md +95 -0
  53. package/packages/orq-rc/docs/sdks/contacts/README.md +450 -0
  54. package/packages/orq-rc/docs/sdks/datasets/README.md +836 -0
  55. package/packages/orq-rc/docs/sdks/deployments/README.md +312 -0
  56. package/packages/orq-rc/docs/sdks/evals/README.md +339 -0
  57. package/packages/orq-rc/docs/sdks/feedback/README.md +89 -0
  58. package/packages/orq-rc/docs/sdks/files/README.md +301 -0
  59. package/packages/orq-rc/docs/sdks/knowledge/README.md +1489 -0
  60. package/packages/orq-rc/docs/sdks/memorystores/README.md +1172 -0
  61. package/packages/orq-rc/docs/sdks/metrics/README.md +83 -0
  62. package/packages/orq-rc/docs/sdks/models/README.md +76 -0
  63. package/packages/orq-rc/docs/sdks/prompts/README.md +591 -0
  64. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +77 -0
  65. package/packages/orq-rc/docs/sdks/tools/README.md +490 -0
  66. package/packages/orq-rc/examples/README.md +31 -0
  67. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  68. package/packages/orq-rc/examples/package-lock.json +627 -0
  69. package/packages/orq-rc/examples/package.json +18 -0
  70. package/packages/orq-rc/jsr.json +28 -0
  71. package/packages/orq-rc/package-lock.json +3071 -0
  72. package/packages/orq-rc/package.json +43 -0
  73. package/packages/orq-rc/src/core.ts +13 -0
  74. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  75. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  76. package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
  77. package/packages/orq-rc/src/funcs/agentsList.ts +167 -0
  78. package/packages/orq-rc/src/funcs/agentsListActions.ts +169 -0
  79. package/packages/orq-rc/src/funcs/agentsListTasks.ts +183 -0
  80. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +175 -0
  81. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +173 -0
  82. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +179 -0
  83. package/packages/orq-rc/src/funcs/agentsRun.ts +163 -0
  84. package/packages/orq-rc/src/funcs/agentsStream.ts +190 -0
  85. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +188 -0
  86. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  87. package/packages/orq-rc/src/funcs/budgetsCreate.ts +160 -0
  88. package/packages/orq-rc/src/funcs/budgetsDelete.ts +167 -0
  89. package/packages/orq-rc/src/funcs/budgetsGet.ts +166 -0
  90. package/packages/orq-rc/src/funcs/budgetsList.ts +170 -0
  91. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +167 -0
  92. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  93. package/packages/orq-rc/src/funcs/contactsCreate.ts +165 -0
  94. package/packages/orq-rc/src/funcs/contactsDelete.ts +176 -0
  95. package/packages/orq-rc/src/funcs/contactsList.ts +169 -0
  96. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +175 -0
  97. package/packages/orq-rc/src/funcs/contactsUpdate.ts +176 -0
  98. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  99. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  100. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
  101. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  102. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  103. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  104. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  105. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  106. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  107. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  108. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  109. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  110. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  111. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  112. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  113. package/packages/orq-rc/src/funcs/deploymentsStream.ts +183 -0
  114. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  115. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  116. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  117. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  118. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  119. package/packages/orq-rc/src/funcs/filesCreate.ts +187 -0
  120. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  121. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  122. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  123. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  124. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  125. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  126. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  127. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  128. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  129. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  130. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  131. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  132. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  133. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  134. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  135. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  136. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  137. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  138. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  139. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  140. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  141. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  142. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +171 -0
  143. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
  144. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  145. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  146. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
  147. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
  148. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  149. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +181 -0
  150. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
  151. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  152. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
  153. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
  154. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  155. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
  156. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
  157. package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
  158. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  159. package/packages/orq-rc/src/funcs/promptsDelete.ts +164 -0
  160. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  161. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  162. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  163. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  164. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  165. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  166. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  167. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  168. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  169. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  170. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  171. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  172. package/packages/orq-rc/src/hooks/global.ts +44 -0
  173. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  174. package/packages/orq-rc/src/hooks/index.ts +6 -0
  175. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  176. package/packages/orq-rc/src/hooks/types.ts +112 -0
  177. package/packages/orq-rc/src/index.ts +9 -0
  178. package/packages/orq-rc/src/lib/base64.ts +37 -0
  179. package/packages/orq-rc/src/lib/config.ts +74 -0
  180. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  181. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  182. package/packages/orq-rc/src/lib/env.ts +89 -0
  183. package/packages/orq-rc/src/lib/event-streams.ts +135 -0
  184. package/packages/orq-rc/src/lib/files.ts +82 -0
  185. package/packages/orq-rc/src/lib/http.ts +323 -0
  186. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  187. package/packages/orq-rc/src/lib/logger.ts +9 -0
  188. package/packages/orq-rc/src/lib/matchers.ts +345 -0
  189. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  190. package/packages/orq-rc/src/lib/retries.ts +218 -0
  191. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  192. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  193. package/packages/orq-rc/src/lib/security.ts +264 -0
  194. package/packages/orq-rc/src/lib/url.ts +33 -0
  195. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +111 -0
  196. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +136 -0
  197. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  198. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  199. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  200. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  201. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  202. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  203. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  204. package/packages/orq-rc/src/mcp-server/server.ts +259 -0
  205. package/packages/orq-rc/src/mcp-server/shared.ts +74 -0
  206. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  207. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  208. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
  209. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +37 -0
  210. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +35 -0
  211. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
  212. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +37 -0
  213. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +35 -0
  214. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +37 -0
  215. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +37 -0
  216. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
  217. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +37 -0
  218. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  219. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +37 -0
  220. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +35 -0
  221. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +37 -0
  222. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +37 -0
  223. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +37 -0
  224. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +37 -0
  225. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  226. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  227. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  228. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  229. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  239. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  240. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  244. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  245. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  246. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
  247. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +35 -0
  248. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
  249. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
  250. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  251. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  252. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  253. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  254. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  255. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  256. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  257. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  258. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  259. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  260. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
  261. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  262. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
  263. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  264. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  265. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
  266. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  267. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  268. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  269. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  270. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  271. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  272. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  273. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  274. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
  275. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
  276. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
  277. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
  278. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
  279. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
  280. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
  281. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
  282. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
  283. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
  284. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
  285. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
  286. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
  287. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
  288. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
  289. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +30 -0
  290. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  291. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  292. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  293. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  294. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  295. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  296. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  297. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  298. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  299. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  300. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  301. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  302. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  303. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  304. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  305. package/packages/orq-rc/src/models/components/deployments.ts +8147 -0
  306. package/packages/orq-rc/src/models/components/index.ts +6 -0
  307. package/packages/orq-rc/src/models/components/security.ts +71 -0
  308. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  309. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  310. package/packages/orq-rc/src/models/errors/createeval.ts +80 -0
  311. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  312. package/packages/orq-rc/src/models/errors/deletecontact.ts +91 -0
  313. package/packages/orq-rc/src/models/errors/deleteeval.ts +80 -0
  314. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  315. package/packages/orq-rc/src/models/errors/getagent.ts +80 -0
  316. package/packages/orq-rc/src/models/errors/getagenttask.ts +80 -0
  317. package/packages/orq-rc/src/models/errors/getevals.ts +80 -0
  318. package/packages/orq-rc/src/models/errors/getpromptversion.ts +80 -0
  319. package/packages/orq-rc/src/models/errors/honoapierror.ts +90 -0
  320. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  321. package/packages/orq-rc/src/models/errors/index.ts +29 -0
  322. package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
  323. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  324. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  325. package/packages/orq-rc/src/models/errors/retrievecontact.ts +91 -0
  326. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  327. package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
  328. package/packages/orq-rc/src/models/errors/streamrunagent.ts +80 -0
  329. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  330. package/packages/orq-rc/src/models/errors/updatecontact.ts +83 -0
  331. package/packages/orq-rc/src/models/errors/updateeval.ts +80 -0
  332. package/packages/orq-rc/src/models/errors/updateprompt.ts +80 -0
  333. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  334. package/packages/orq-rc/src/models/operations/cleardataset.ts +78 -0
  335. package/packages/orq-rc/src/models/operations/createagent.ts +3104 -0
  336. package/packages/orq-rc/src/models/operations/createbudget.ts +745 -0
  337. package/packages/orq-rc/src/models/operations/createchunk.ts +428 -0
  338. package/packages/orq-rc/src/models/operations/createcontact.ts +267 -0
  339. package/packages/orq-rc/src/models/operations/createdataset.ts +302 -0
  340. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +6943 -0
  341. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  342. package/packages/orq-rc/src/models/operations/createeval.ts +9341 -0
  343. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  344. package/packages/orq-rc/src/models/operations/createknowledge.ts +1850 -0
  345. package/packages/orq-rc/src/models/operations/creatememory.ts +274 -0
  346. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +287 -0
  347. package/packages/orq-rc/src/models/operations/creatememorystore.ts +2032 -0
  348. package/packages/orq-rc/src/models/operations/createprompt.ts +7812 -0
  349. package/packages/orq-rc/src/models/operations/createtool.ts +4077 -0
  350. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  351. package/packages/orq-rc/src/models/operations/deletebudget.ts +69 -0
  352. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  353. package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
  354. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  355. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +87 -0
  356. package/packages/orq-rc/src/models/operations/deletedataset.ts +78 -0
  357. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  358. package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
  359. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  360. package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
  361. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
  362. package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
  363. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  364. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  365. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6547 -0
  366. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +10532 -0
  367. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1266 -0
  368. package/packages/orq-rc/src/models/operations/deployments.ts +2606 -0
  369. package/packages/orq-rc/src/models/operations/deploymentstream.ts +10655 -0
  370. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2349 -0
  371. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  372. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  373. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  374. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  375. package/packages/orq-rc/src/models/operations/getagent.ts +957 -0
  376. package/packages/orq-rc/src/models/operations/getagenttask.ts +259 -0
  377. package/packages/orq-rc/src/models/operations/getallmemories.ts +318 -0
  378. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +338 -0
  379. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1277 -0
  380. package/packages/orq-rc/src/models/operations/getallprompts.ts +2572 -0
  381. package/packages/orq-rc/src/models/operations/getalltools.ts +2308 -0
  382. package/packages/orq-rc/src/models/operations/getbudget.ts +441 -0
  383. package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
  384. package/packages/orq-rc/src/models/operations/getevals.ts +7486 -0
  385. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  386. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +1292 -0
  387. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2437 -0
  388. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2444 -0
  389. package/packages/orq-rc/src/models/operations/index.ts +102 -0
  390. package/packages/orq-rc/src/models/operations/invokeagent.ts +1569 -0
  391. package/packages/orq-rc/src/models/operations/listactions.ts +526 -0
  392. package/packages/orq-rc/src/models/operations/listagents.ts +1077 -0
  393. package/packages/orq-rc/src/models/operations/listagenttasks.ts +1106 -0
  394. package/packages/orq-rc/src/models/operations/listbudgets.ts +617 -0
  395. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  396. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
  397. package/packages/orq-rc/src/models/operations/listcontacts.ts +500 -0
  398. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4086 -0
  399. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  400. package/packages/orq-rc/src/models/operations/listdatasources.ts +454 -0
  401. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +1303 -0
  402. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  403. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2580 -0
  404. package/packages/orq-rc/src/models/operations/parse.ts +1295 -0
  405. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  406. package/packages/orq-rc/src/models/operations/retrieveaction.ts +426 -0
  407. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  408. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +3853 -0
  409. package/packages/orq-rc/src/models/operations/retrievedataset.ts +291 -0
  410. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  411. package/packages/orq-rc/src/models/operations/retrievememory.ts +201 -0
  412. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +220 -0
  413. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +1160 -0
  414. package/packages/orq-rc/src/models/operations/retrievetool.ts +2333 -0
  415. package/packages/orq-rc/src/models/operations/runagent.ts +4342 -0
  416. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3573 -0
  417. package/packages/orq-rc/src/models/operations/streamagent.ts +1367 -0
  418. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4355 -0
  419. package/packages/orq-rc/src/models/operations/updateagent.ts +3321 -0
  420. package/packages/orq-rc/src/models/operations/updatebudget.ts +628 -0
  421. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  422. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  423. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +6934 -0
  424. package/packages/orq-rc/src/models/operations/updatedataset.ts +386 -0
  425. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  426. package/packages/orq-rc/src/models/operations/updateeval.ts +9704 -0
  427. package/packages/orq-rc/src/models/operations/updateknowledge.ts +2341 -0
  428. package/packages/orq-rc/src/models/operations/updatememory.ts +283 -0
  429. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +296 -0
  430. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1363 -0
  431. package/packages/orq-rc/src/models/operations/updateprompt.ts +8176 -0
  432. package/packages/orq-rc/src/models/operations/updatetool.ts +4288 -0
  433. package/packages/orq-rc/src/sdk/agents.ts +238 -0
  434. package/packages/orq-rc/src/sdk/budgets.ts +99 -0
  435. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  436. package/packages/orq-rc/src/sdk/contacts.ts +99 -0
  437. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  438. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  439. package/packages/orq-rc/src/sdk/evals.ts +69 -0
  440. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  441. package/packages/orq-rc/src/sdk/files.ts +78 -0
  442. package/packages/orq-rc/src/sdk/index.ts +5 -0
  443. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  444. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  445. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  446. package/packages/orq-rc/src/sdk/models.ts +25 -0
  447. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  448. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  449. package/packages/orq-rc/src/sdk/sdk.ts +97 -0
  450. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  451. package/packages/orq-rc/src/types/async.ts +68 -0
  452. package/packages/orq-rc/src/types/blobs.ts +32 -0
  453. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  454. package/packages/orq-rc/src/types/enums.ts +16 -0
  455. package/packages/orq-rc/src/types/fp.ts +50 -0
  456. package/packages/orq-rc/src/types/index.ts +11 -0
  457. package/packages/orq-rc/src/types/operations.ts +105 -0
  458. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  459. package/packages/orq-rc/src/types/streams.ts +21 -0
  460. package/packages/orq-rc/tsconfig.json +41 -0
  461. package/src/lib/config.ts +2 -2
  462. package/src/mcp-server/mcp-server.ts +1 -1
  463. package/src/mcp-server/server.ts +1 -1
  464. package/src/models/operations/createbudget.ts +2 -2
  465. package/src/models/operations/createcontact.ts +2 -2
  466. package/src/models/operations/createdataset.ts +2 -2
  467. package/src/models/operations/createdatasetitem.ts +8 -8
  468. package/src/models/operations/createdatasource.ts +2 -2
  469. package/src/models/operations/createeval.ts +28 -28
  470. package/src/models/operations/createtool.ts +10 -10
  471. package/src/models/operations/duplicatetool.ts +10 -10
  472. package/src/models/operations/fileget.ts +2 -2
  473. package/src/models/operations/filelist.ts +2 -2
  474. package/src/models/operations/fileupload.ts +2 -2
  475. package/src/models/operations/getalltools.ts +10 -10
  476. package/src/models/operations/getbudget.ts +2 -2
  477. package/src/models/operations/getevals.ts +28 -28
  478. package/src/models/operations/listbudgets.ts +2 -2
  479. package/src/models/operations/listcontacts.ts +2 -2
  480. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  481. package/src/models/operations/listdatasets.ts +2 -2
  482. package/src/models/operations/listdatasources.ts +2 -2
  483. package/src/models/operations/retrievecontact.ts +2 -2
  484. package/src/models/operations/retrievedatapoint.ts +8 -8
  485. package/src/models/operations/retrievedataset.ts +2 -2
  486. package/src/models/operations/retrievedatasource.ts +2 -2
  487. package/src/models/operations/retrievetool.ts +10 -10
  488. package/src/models/operations/updatebudget.ts +2 -2
  489. package/src/models/operations/updatecontact.ts +2 -2
  490. package/src/models/operations/updatedatapoint.ts +8 -8
  491. package/src/models/operations/updatedataset.ts +2 -2
  492. package/src/models/operations/updatedatasource.ts +2 -2
  493. package/src/models/operations/updateeval.ts +28 -28
  494. package/src/models/operations/updatetool.ts +10 -10
@@ -0,0 +1,1077 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListAgentsRequest = {
13
+ /**
14
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
15
+ */
16
+ limit?: number | undefined;
17
+ /**
18
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
19
+ */
20
+ startingAfter?: string | undefined;
21
+ /**
22
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
23
+ */
24
+ endingBefore?: string | undefined;
25
+ };
26
+
27
+ export const ListAgentsObject = {
28
+ List: "list",
29
+ } as const;
30
+ export type ListAgentsObject = ClosedEnum<typeof ListAgentsObject>;
31
+
32
+ /**
33
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
34
+ */
35
+ export const ListAgentsStatus = {
36
+ Live: "live",
37
+ Draft: "draft",
38
+ Pending: "pending",
39
+ Published: "published",
40
+ } as const;
41
+ /**
42
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
43
+ */
44
+ export type ListAgentsStatus = ClosedEnum<typeof ListAgentsStatus>;
45
+
46
+ /**
47
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
48
+ */
49
+ export const ListAgentsToolApprovalRequired = {
50
+ All: "all",
51
+ RespectTool: "respect_tool",
52
+ None: "none",
53
+ } as const;
54
+ /**
55
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
56
+ */
57
+ export type ListAgentsToolApprovalRequired = ClosedEnum<
58
+ typeof ListAgentsToolApprovalRequired
59
+ >;
60
+
61
+ export type ListAgentsConditions = {
62
+ /**
63
+ * The argument of the tool call to evaluate
64
+ */
65
+ condition: string;
66
+ /**
67
+ * The operator to use
68
+ */
69
+ operator: string;
70
+ /**
71
+ * The value to compare against
72
+ */
73
+ value: string;
74
+ };
75
+
76
+ export type ListAgentsTools = {
77
+ /**
78
+ * The id of the resource
79
+ */
80
+ id: string;
81
+ /**
82
+ * Optional tool key for custom tools
83
+ */
84
+ key?: string | undefined;
85
+ actionType: string;
86
+ displayName?: string | undefined;
87
+ requiresApproval?: boolean | undefined;
88
+ conditions?: Array<ListAgentsConditions> | undefined;
89
+ /**
90
+ * Optional MCP server reference for tools from MCP servers
91
+ */
92
+ mcpServer?: string | undefined;
93
+ /**
94
+ * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
95
+ */
96
+ timeout?: number | undefined;
97
+ };
98
+
99
+ export type ListAgentsSettings = {
100
+ /**
101
+ * Maximum iterations(llm calls) before the agent will stop executing.
102
+ */
103
+ maxIterations?: number | undefined;
104
+ /**
105
+ * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
106
+ */
107
+ maxExecutionTime?: number | undefined;
108
+ /**
109
+ * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
110
+ */
111
+ toolApprovalRequired?: ListAgentsToolApprovalRequired | undefined;
112
+ tools?: Array<ListAgentsTools> | undefined;
113
+ };
114
+
115
+ export type ListAgentsModel = {
116
+ /**
117
+ * The database ID of the primary model
118
+ */
119
+ id: string;
120
+ /**
121
+ * Optional integration ID for custom model configurations
122
+ */
123
+ integrationId?: string | null | undefined;
124
+ /**
125
+ * Optional array of fallback model IDs that will be used automatically in order if the primary model fails
126
+ */
127
+ fallbackModels?: Array<string> | null | undefined;
128
+ /**
129
+ * Maximum number of tokens for model responses
130
+ */
131
+ maxTokens?: number | undefined;
132
+ /**
133
+ * Temperature setting for model responses
134
+ */
135
+ temperature?: number | undefined;
136
+ };
137
+
138
+ export type ListAgentsTeamOfAgents = {
139
+ /**
140
+ * The unique key of the agent within the workspace
141
+ */
142
+ key: string;
143
+ /**
144
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
145
+ */
146
+ role?: string | undefined;
147
+ };
148
+
149
+ export type ListAgentsMetrics = {
150
+ totalCost?: number | undefined;
151
+ };
152
+
153
+ export type ListAgentsKnowledgeBases = {
154
+ /**
155
+ * Unique identifier of the knowledge base to search
156
+ */
157
+ knowledgeId: string;
158
+ };
159
+
160
+ export const ListAgentsHiddenPanels = {
161
+ Model: "model",
162
+ Tools: "tools",
163
+ KnowledgeBases: "knowledge_bases",
164
+ Variables: "variables",
165
+ RuntimeConstraints: "runtime_constraints",
166
+ } as const;
167
+ export type ListAgentsHiddenPanels = ClosedEnum<typeof ListAgentsHiddenPanels>;
168
+
169
+ export type ListAgentsData = {
170
+ id: string;
171
+ key: string;
172
+ workspaceId: string;
173
+ projectId: string;
174
+ createdById?: string | null | undefined;
175
+ updatedById?: string | null | undefined;
176
+ created?: string | undefined;
177
+ updated?: string | undefined;
178
+ role: string;
179
+ description: string;
180
+ systemPrompt?: string | undefined;
181
+ instructions: string;
182
+ /**
183
+ * The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
184
+ */
185
+ status: ListAgentsStatus;
186
+ settings?: ListAgentsSettings | undefined;
187
+ model: ListAgentsModel;
188
+ versionHash?: string | undefined;
189
+ /**
190
+ * Entity storage path in the format: `project/folder/subfolder/...`
191
+ *
192
+ * @remarks
193
+ *
194
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
195
+ *
196
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
197
+ */
198
+ path: string;
199
+ memoryStores: Array<string>;
200
+ /**
201
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
202
+ */
203
+ teamOfAgents: Array<ListAgentsTeamOfAgents>;
204
+ metrics?: ListAgentsMetrics | undefined;
205
+ /**
206
+ * Extracted variables from agent instructions
207
+ */
208
+ variables?: { [k: string]: any } | undefined;
209
+ /**
210
+ * Agent knowledge bases reference
211
+ */
212
+ knowledgeBases?: Array<ListAgentsKnowledgeBases> | undefined;
213
+ /**
214
+ * List of hidden collapsed panels in configuration. Duplicates are not allowed.
215
+ */
216
+ hiddenPanels?: Array<ListAgentsHiddenPanels> | undefined;
217
+ };
218
+
219
+ /**
220
+ * List of agents with their configurations including fallback models
221
+ */
222
+ export type ListAgentsResponseBody = {
223
+ object: ListAgentsObject;
224
+ data: Array<ListAgentsData>;
225
+ hasMore: boolean;
226
+ };
227
+
228
+ /** @internal */
229
+ export const ListAgentsRequest$inboundSchema: z.ZodType<
230
+ ListAgentsRequest,
231
+ z.ZodTypeDef,
232
+ unknown
233
+ > = z.object({
234
+ limit: z.number().default(10),
235
+ starting_after: z.string().optional(),
236
+ ending_before: z.string().optional(),
237
+ }).transform((v) => {
238
+ return remap$(v, {
239
+ "starting_after": "startingAfter",
240
+ "ending_before": "endingBefore",
241
+ });
242
+ });
243
+
244
+ /** @internal */
245
+ export type ListAgentsRequest$Outbound = {
246
+ limit: number;
247
+ starting_after?: string | undefined;
248
+ ending_before?: string | undefined;
249
+ };
250
+
251
+ /** @internal */
252
+ export const ListAgentsRequest$outboundSchema: z.ZodType<
253
+ ListAgentsRequest$Outbound,
254
+ z.ZodTypeDef,
255
+ ListAgentsRequest
256
+ > = z.object({
257
+ limit: z.number().default(10),
258
+ startingAfter: z.string().optional(),
259
+ endingBefore: z.string().optional(),
260
+ }).transform((v) => {
261
+ return remap$(v, {
262
+ startingAfter: "starting_after",
263
+ endingBefore: "ending_before",
264
+ });
265
+ });
266
+
267
+ /**
268
+ * @internal
269
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
270
+ */
271
+ export namespace ListAgentsRequest$ {
272
+ /** @deprecated use `ListAgentsRequest$inboundSchema` instead. */
273
+ export const inboundSchema = ListAgentsRequest$inboundSchema;
274
+ /** @deprecated use `ListAgentsRequest$outboundSchema` instead. */
275
+ export const outboundSchema = ListAgentsRequest$outboundSchema;
276
+ /** @deprecated use `ListAgentsRequest$Outbound` instead. */
277
+ export type Outbound = ListAgentsRequest$Outbound;
278
+ }
279
+
280
+ export function listAgentsRequestToJSON(
281
+ listAgentsRequest: ListAgentsRequest,
282
+ ): string {
283
+ return JSON.stringify(
284
+ ListAgentsRequest$outboundSchema.parse(listAgentsRequest),
285
+ );
286
+ }
287
+
288
+ export function listAgentsRequestFromJSON(
289
+ jsonString: string,
290
+ ): SafeParseResult<ListAgentsRequest, SDKValidationError> {
291
+ return safeParse(
292
+ jsonString,
293
+ (x) => ListAgentsRequest$inboundSchema.parse(JSON.parse(x)),
294
+ `Failed to parse 'ListAgentsRequest' from JSON`,
295
+ );
296
+ }
297
+
298
+ /** @internal */
299
+ export const ListAgentsObject$inboundSchema: z.ZodNativeEnum<
300
+ typeof ListAgentsObject
301
+ > = z.nativeEnum(ListAgentsObject);
302
+
303
+ /** @internal */
304
+ export const ListAgentsObject$outboundSchema: z.ZodNativeEnum<
305
+ typeof ListAgentsObject
306
+ > = ListAgentsObject$inboundSchema;
307
+
308
+ /**
309
+ * @internal
310
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
311
+ */
312
+ export namespace ListAgentsObject$ {
313
+ /** @deprecated use `ListAgentsObject$inboundSchema` instead. */
314
+ export const inboundSchema = ListAgentsObject$inboundSchema;
315
+ /** @deprecated use `ListAgentsObject$outboundSchema` instead. */
316
+ export const outboundSchema = ListAgentsObject$outboundSchema;
317
+ }
318
+
319
+ /** @internal */
320
+ export const ListAgentsStatus$inboundSchema: z.ZodNativeEnum<
321
+ typeof ListAgentsStatus
322
+ > = z.nativeEnum(ListAgentsStatus);
323
+
324
+ /** @internal */
325
+ export const ListAgentsStatus$outboundSchema: z.ZodNativeEnum<
326
+ typeof ListAgentsStatus
327
+ > = ListAgentsStatus$inboundSchema;
328
+
329
+ /**
330
+ * @internal
331
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
332
+ */
333
+ export namespace ListAgentsStatus$ {
334
+ /** @deprecated use `ListAgentsStatus$inboundSchema` instead. */
335
+ export const inboundSchema = ListAgentsStatus$inboundSchema;
336
+ /** @deprecated use `ListAgentsStatus$outboundSchema` instead. */
337
+ export const outboundSchema = ListAgentsStatus$outboundSchema;
338
+ }
339
+
340
+ /** @internal */
341
+ export const ListAgentsToolApprovalRequired$inboundSchema: z.ZodNativeEnum<
342
+ typeof ListAgentsToolApprovalRequired
343
+ > = z.nativeEnum(ListAgentsToolApprovalRequired);
344
+
345
+ /** @internal */
346
+ export const ListAgentsToolApprovalRequired$outboundSchema: z.ZodNativeEnum<
347
+ typeof ListAgentsToolApprovalRequired
348
+ > = ListAgentsToolApprovalRequired$inboundSchema;
349
+
350
+ /**
351
+ * @internal
352
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
353
+ */
354
+ export namespace ListAgentsToolApprovalRequired$ {
355
+ /** @deprecated use `ListAgentsToolApprovalRequired$inboundSchema` instead. */
356
+ export const inboundSchema = ListAgentsToolApprovalRequired$inboundSchema;
357
+ /** @deprecated use `ListAgentsToolApprovalRequired$outboundSchema` instead. */
358
+ export const outboundSchema = ListAgentsToolApprovalRequired$outboundSchema;
359
+ }
360
+
361
+ /** @internal */
362
+ export const ListAgentsConditions$inboundSchema: z.ZodType<
363
+ ListAgentsConditions,
364
+ z.ZodTypeDef,
365
+ unknown
366
+ > = z.object({
367
+ condition: z.string(),
368
+ operator: z.string(),
369
+ value: z.string(),
370
+ });
371
+
372
+ /** @internal */
373
+ export type ListAgentsConditions$Outbound = {
374
+ condition: string;
375
+ operator: string;
376
+ value: string;
377
+ };
378
+
379
+ /** @internal */
380
+ export const ListAgentsConditions$outboundSchema: z.ZodType<
381
+ ListAgentsConditions$Outbound,
382
+ z.ZodTypeDef,
383
+ ListAgentsConditions
384
+ > = z.object({
385
+ condition: z.string(),
386
+ operator: z.string(),
387
+ value: z.string(),
388
+ });
389
+
390
+ /**
391
+ * @internal
392
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
393
+ */
394
+ export namespace ListAgentsConditions$ {
395
+ /** @deprecated use `ListAgentsConditions$inboundSchema` instead. */
396
+ export const inboundSchema = ListAgentsConditions$inboundSchema;
397
+ /** @deprecated use `ListAgentsConditions$outboundSchema` instead. */
398
+ export const outboundSchema = ListAgentsConditions$outboundSchema;
399
+ /** @deprecated use `ListAgentsConditions$Outbound` instead. */
400
+ export type Outbound = ListAgentsConditions$Outbound;
401
+ }
402
+
403
+ export function listAgentsConditionsToJSON(
404
+ listAgentsConditions: ListAgentsConditions,
405
+ ): string {
406
+ return JSON.stringify(
407
+ ListAgentsConditions$outboundSchema.parse(listAgentsConditions),
408
+ );
409
+ }
410
+
411
+ export function listAgentsConditionsFromJSON(
412
+ jsonString: string,
413
+ ): SafeParseResult<ListAgentsConditions, SDKValidationError> {
414
+ return safeParse(
415
+ jsonString,
416
+ (x) => ListAgentsConditions$inboundSchema.parse(JSON.parse(x)),
417
+ `Failed to parse 'ListAgentsConditions' from JSON`,
418
+ );
419
+ }
420
+
421
+ /** @internal */
422
+ export const ListAgentsTools$inboundSchema: z.ZodType<
423
+ ListAgentsTools,
424
+ z.ZodTypeDef,
425
+ unknown
426
+ > = z.object({
427
+ id: z.string(),
428
+ key: z.string().optional(),
429
+ action_type: z.string(),
430
+ display_name: z.string().optional(),
431
+ requires_approval: z.boolean().default(false),
432
+ conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
433
+ .optional(),
434
+ mcpServer: z.string().optional(),
435
+ timeout: z.number().default(120),
436
+ }).transform((v) => {
437
+ return remap$(v, {
438
+ "action_type": "actionType",
439
+ "display_name": "displayName",
440
+ "requires_approval": "requiresApproval",
441
+ });
442
+ });
443
+
444
+ /** @internal */
445
+ export type ListAgentsTools$Outbound = {
446
+ id: string;
447
+ key?: string | undefined;
448
+ action_type: string;
449
+ display_name?: string | undefined;
450
+ requires_approval: boolean;
451
+ conditions?: Array<ListAgentsConditions$Outbound> | undefined;
452
+ mcpServer?: string | undefined;
453
+ timeout: number;
454
+ };
455
+
456
+ /** @internal */
457
+ export const ListAgentsTools$outboundSchema: z.ZodType<
458
+ ListAgentsTools$Outbound,
459
+ z.ZodTypeDef,
460
+ ListAgentsTools
461
+ > = z.object({
462
+ id: z.string(),
463
+ key: z.string().optional(),
464
+ actionType: z.string(),
465
+ displayName: z.string().optional(),
466
+ requiresApproval: z.boolean().default(false),
467
+ conditions: z.array(z.lazy(() => ListAgentsConditions$outboundSchema))
468
+ .optional(),
469
+ mcpServer: z.string().optional(),
470
+ timeout: z.number().default(120),
471
+ }).transform((v) => {
472
+ return remap$(v, {
473
+ actionType: "action_type",
474
+ displayName: "display_name",
475
+ requiresApproval: "requires_approval",
476
+ });
477
+ });
478
+
479
+ /**
480
+ * @internal
481
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
482
+ */
483
+ export namespace ListAgentsTools$ {
484
+ /** @deprecated use `ListAgentsTools$inboundSchema` instead. */
485
+ export const inboundSchema = ListAgentsTools$inboundSchema;
486
+ /** @deprecated use `ListAgentsTools$outboundSchema` instead. */
487
+ export const outboundSchema = ListAgentsTools$outboundSchema;
488
+ /** @deprecated use `ListAgentsTools$Outbound` instead. */
489
+ export type Outbound = ListAgentsTools$Outbound;
490
+ }
491
+
492
+ export function listAgentsToolsToJSON(
493
+ listAgentsTools: ListAgentsTools,
494
+ ): string {
495
+ return JSON.stringify(ListAgentsTools$outboundSchema.parse(listAgentsTools));
496
+ }
497
+
498
+ export function listAgentsToolsFromJSON(
499
+ jsonString: string,
500
+ ): SafeParseResult<ListAgentsTools, SDKValidationError> {
501
+ return safeParse(
502
+ jsonString,
503
+ (x) => ListAgentsTools$inboundSchema.parse(JSON.parse(x)),
504
+ `Failed to parse 'ListAgentsTools' from JSON`,
505
+ );
506
+ }
507
+
508
+ /** @internal */
509
+ export const ListAgentsSettings$inboundSchema: z.ZodType<
510
+ ListAgentsSettings,
511
+ z.ZodTypeDef,
512
+ unknown
513
+ > = z.object({
514
+ max_iterations: z.number().int().default(15),
515
+ max_execution_time: z.number().int().default(300),
516
+ tool_approval_required: ListAgentsToolApprovalRequired$inboundSchema.default(
517
+ "respect_tool",
518
+ ),
519
+ tools: z.array(z.lazy(() => ListAgentsTools$inboundSchema)).optional(),
520
+ }).transform((v) => {
521
+ return remap$(v, {
522
+ "max_iterations": "maxIterations",
523
+ "max_execution_time": "maxExecutionTime",
524
+ "tool_approval_required": "toolApprovalRequired",
525
+ });
526
+ });
527
+
528
+ /** @internal */
529
+ export type ListAgentsSettings$Outbound = {
530
+ max_iterations: number;
531
+ max_execution_time: number;
532
+ tool_approval_required: string;
533
+ tools?: Array<ListAgentsTools$Outbound> | undefined;
534
+ };
535
+
536
+ /** @internal */
537
+ export const ListAgentsSettings$outboundSchema: z.ZodType<
538
+ ListAgentsSettings$Outbound,
539
+ z.ZodTypeDef,
540
+ ListAgentsSettings
541
+ > = z.object({
542
+ maxIterations: z.number().int().default(15),
543
+ maxExecutionTime: z.number().int().default(300),
544
+ toolApprovalRequired: ListAgentsToolApprovalRequired$outboundSchema.default(
545
+ "respect_tool",
546
+ ),
547
+ tools: z.array(z.lazy(() => ListAgentsTools$outboundSchema)).optional(),
548
+ }).transform((v) => {
549
+ return remap$(v, {
550
+ maxIterations: "max_iterations",
551
+ maxExecutionTime: "max_execution_time",
552
+ toolApprovalRequired: "tool_approval_required",
553
+ });
554
+ });
555
+
556
+ /**
557
+ * @internal
558
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
559
+ */
560
+ export namespace ListAgentsSettings$ {
561
+ /** @deprecated use `ListAgentsSettings$inboundSchema` instead. */
562
+ export const inboundSchema = ListAgentsSettings$inboundSchema;
563
+ /** @deprecated use `ListAgentsSettings$outboundSchema` instead. */
564
+ export const outboundSchema = ListAgentsSettings$outboundSchema;
565
+ /** @deprecated use `ListAgentsSettings$Outbound` instead. */
566
+ export type Outbound = ListAgentsSettings$Outbound;
567
+ }
568
+
569
+ export function listAgentsSettingsToJSON(
570
+ listAgentsSettings: ListAgentsSettings,
571
+ ): string {
572
+ return JSON.stringify(
573
+ ListAgentsSettings$outboundSchema.parse(listAgentsSettings),
574
+ );
575
+ }
576
+
577
+ export function listAgentsSettingsFromJSON(
578
+ jsonString: string,
579
+ ): SafeParseResult<ListAgentsSettings, SDKValidationError> {
580
+ return safeParse(
581
+ jsonString,
582
+ (x) => ListAgentsSettings$inboundSchema.parse(JSON.parse(x)),
583
+ `Failed to parse 'ListAgentsSettings' from JSON`,
584
+ );
585
+ }
586
+
587
+ /** @internal */
588
+ export const ListAgentsModel$inboundSchema: z.ZodType<
589
+ ListAgentsModel,
590
+ z.ZodTypeDef,
591
+ unknown
592
+ > = z.object({
593
+ id: z.string(),
594
+ integration_id: z.nullable(z.string()).optional(),
595
+ fallback_models: z.nullable(z.array(z.string())).optional(),
596
+ max_tokens: z.number().int().optional(),
597
+ temperature: z.number().optional(),
598
+ }).transform((v) => {
599
+ return remap$(v, {
600
+ "integration_id": "integrationId",
601
+ "fallback_models": "fallbackModels",
602
+ "max_tokens": "maxTokens",
603
+ });
604
+ });
605
+
606
+ /** @internal */
607
+ export type ListAgentsModel$Outbound = {
608
+ id: string;
609
+ integration_id?: string | null | undefined;
610
+ fallback_models?: Array<string> | null | undefined;
611
+ max_tokens?: number | undefined;
612
+ temperature?: number | undefined;
613
+ };
614
+
615
+ /** @internal */
616
+ export const ListAgentsModel$outboundSchema: z.ZodType<
617
+ ListAgentsModel$Outbound,
618
+ z.ZodTypeDef,
619
+ ListAgentsModel
620
+ > = z.object({
621
+ id: z.string(),
622
+ integrationId: z.nullable(z.string()).optional(),
623
+ fallbackModels: z.nullable(z.array(z.string())).optional(),
624
+ maxTokens: z.number().int().optional(),
625
+ temperature: z.number().optional(),
626
+ }).transform((v) => {
627
+ return remap$(v, {
628
+ integrationId: "integration_id",
629
+ fallbackModels: "fallback_models",
630
+ maxTokens: "max_tokens",
631
+ });
632
+ });
633
+
634
+ /**
635
+ * @internal
636
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
637
+ */
638
+ export namespace ListAgentsModel$ {
639
+ /** @deprecated use `ListAgentsModel$inboundSchema` instead. */
640
+ export const inboundSchema = ListAgentsModel$inboundSchema;
641
+ /** @deprecated use `ListAgentsModel$outboundSchema` instead. */
642
+ export const outboundSchema = ListAgentsModel$outboundSchema;
643
+ /** @deprecated use `ListAgentsModel$Outbound` instead. */
644
+ export type Outbound = ListAgentsModel$Outbound;
645
+ }
646
+
647
+ export function listAgentsModelToJSON(
648
+ listAgentsModel: ListAgentsModel,
649
+ ): string {
650
+ return JSON.stringify(ListAgentsModel$outboundSchema.parse(listAgentsModel));
651
+ }
652
+
653
+ export function listAgentsModelFromJSON(
654
+ jsonString: string,
655
+ ): SafeParseResult<ListAgentsModel, SDKValidationError> {
656
+ return safeParse(
657
+ jsonString,
658
+ (x) => ListAgentsModel$inboundSchema.parse(JSON.parse(x)),
659
+ `Failed to parse 'ListAgentsModel' from JSON`,
660
+ );
661
+ }
662
+
663
+ /** @internal */
664
+ export const ListAgentsTeamOfAgents$inboundSchema: z.ZodType<
665
+ ListAgentsTeamOfAgents,
666
+ z.ZodTypeDef,
667
+ unknown
668
+ > = z.object({
669
+ key: z.string(),
670
+ role: z.string().optional(),
671
+ });
672
+
673
+ /** @internal */
674
+ export type ListAgentsTeamOfAgents$Outbound = {
675
+ key: string;
676
+ role?: string | undefined;
677
+ };
678
+
679
+ /** @internal */
680
+ export const ListAgentsTeamOfAgents$outboundSchema: z.ZodType<
681
+ ListAgentsTeamOfAgents$Outbound,
682
+ z.ZodTypeDef,
683
+ ListAgentsTeamOfAgents
684
+ > = z.object({
685
+ key: z.string(),
686
+ role: z.string().optional(),
687
+ });
688
+
689
+ /**
690
+ * @internal
691
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
692
+ */
693
+ export namespace ListAgentsTeamOfAgents$ {
694
+ /** @deprecated use `ListAgentsTeamOfAgents$inboundSchema` instead. */
695
+ export const inboundSchema = ListAgentsTeamOfAgents$inboundSchema;
696
+ /** @deprecated use `ListAgentsTeamOfAgents$outboundSchema` instead. */
697
+ export const outboundSchema = ListAgentsTeamOfAgents$outboundSchema;
698
+ /** @deprecated use `ListAgentsTeamOfAgents$Outbound` instead. */
699
+ export type Outbound = ListAgentsTeamOfAgents$Outbound;
700
+ }
701
+
702
+ export function listAgentsTeamOfAgentsToJSON(
703
+ listAgentsTeamOfAgents: ListAgentsTeamOfAgents,
704
+ ): string {
705
+ return JSON.stringify(
706
+ ListAgentsTeamOfAgents$outboundSchema.parse(listAgentsTeamOfAgents),
707
+ );
708
+ }
709
+
710
+ export function listAgentsTeamOfAgentsFromJSON(
711
+ jsonString: string,
712
+ ): SafeParseResult<ListAgentsTeamOfAgents, SDKValidationError> {
713
+ return safeParse(
714
+ jsonString,
715
+ (x) => ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
716
+ `Failed to parse 'ListAgentsTeamOfAgents' from JSON`,
717
+ );
718
+ }
719
+
720
+ /** @internal */
721
+ export const ListAgentsMetrics$inboundSchema: z.ZodType<
722
+ ListAgentsMetrics,
723
+ z.ZodTypeDef,
724
+ unknown
725
+ > = z.object({
726
+ total_cost: z.number().default(0),
727
+ }).transform((v) => {
728
+ return remap$(v, {
729
+ "total_cost": "totalCost",
730
+ });
731
+ });
732
+
733
+ /** @internal */
734
+ export type ListAgentsMetrics$Outbound = {
735
+ total_cost: number;
736
+ };
737
+
738
+ /** @internal */
739
+ export const ListAgentsMetrics$outboundSchema: z.ZodType<
740
+ ListAgentsMetrics$Outbound,
741
+ z.ZodTypeDef,
742
+ ListAgentsMetrics
743
+ > = z.object({
744
+ totalCost: z.number().default(0),
745
+ }).transform((v) => {
746
+ return remap$(v, {
747
+ totalCost: "total_cost",
748
+ });
749
+ });
750
+
751
+ /**
752
+ * @internal
753
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
754
+ */
755
+ export namespace ListAgentsMetrics$ {
756
+ /** @deprecated use `ListAgentsMetrics$inboundSchema` instead. */
757
+ export const inboundSchema = ListAgentsMetrics$inboundSchema;
758
+ /** @deprecated use `ListAgentsMetrics$outboundSchema` instead. */
759
+ export const outboundSchema = ListAgentsMetrics$outboundSchema;
760
+ /** @deprecated use `ListAgentsMetrics$Outbound` instead. */
761
+ export type Outbound = ListAgentsMetrics$Outbound;
762
+ }
763
+
764
+ export function listAgentsMetricsToJSON(
765
+ listAgentsMetrics: ListAgentsMetrics,
766
+ ): string {
767
+ return JSON.stringify(
768
+ ListAgentsMetrics$outboundSchema.parse(listAgentsMetrics),
769
+ );
770
+ }
771
+
772
+ export function listAgentsMetricsFromJSON(
773
+ jsonString: string,
774
+ ): SafeParseResult<ListAgentsMetrics, SDKValidationError> {
775
+ return safeParse(
776
+ jsonString,
777
+ (x) => ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)),
778
+ `Failed to parse 'ListAgentsMetrics' from JSON`,
779
+ );
780
+ }
781
+
782
+ /** @internal */
783
+ export const ListAgentsKnowledgeBases$inboundSchema: z.ZodType<
784
+ ListAgentsKnowledgeBases,
785
+ z.ZodTypeDef,
786
+ unknown
787
+ > = z.object({
788
+ knowledge_id: z.string(),
789
+ }).transform((v) => {
790
+ return remap$(v, {
791
+ "knowledge_id": "knowledgeId",
792
+ });
793
+ });
794
+
795
+ /** @internal */
796
+ export type ListAgentsKnowledgeBases$Outbound = {
797
+ knowledge_id: string;
798
+ };
799
+
800
+ /** @internal */
801
+ export const ListAgentsKnowledgeBases$outboundSchema: z.ZodType<
802
+ ListAgentsKnowledgeBases$Outbound,
803
+ z.ZodTypeDef,
804
+ ListAgentsKnowledgeBases
805
+ > = z.object({
806
+ knowledgeId: z.string(),
807
+ }).transform((v) => {
808
+ return remap$(v, {
809
+ knowledgeId: "knowledge_id",
810
+ });
811
+ });
812
+
813
+ /**
814
+ * @internal
815
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
816
+ */
817
+ export namespace ListAgentsKnowledgeBases$ {
818
+ /** @deprecated use `ListAgentsKnowledgeBases$inboundSchema` instead. */
819
+ export const inboundSchema = ListAgentsKnowledgeBases$inboundSchema;
820
+ /** @deprecated use `ListAgentsKnowledgeBases$outboundSchema` instead. */
821
+ export const outboundSchema = ListAgentsKnowledgeBases$outboundSchema;
822
+ /** @deprecated use `ListAgentsKnowledgeBases$Outbound` instead. */
823
+ export type Outbound = ListAgentsKnowledgeBases$Outbound;
824
+ }
825
+
826
+ export function listAgentsKnowledgeBasesToJSON(
827
+ listAgentsKnowledgeBases: ListAgentsKnowledgeBases,
828
+ ): string {
829
+ return JSON.stringify(
830
+ ListAgentsKnowledgeBases$outboundSchema.parse(listAgentsKnowledgeBases),
831
+ );
832
+ }
833
+
834
+ export function listAgentsKnowledgeBasesFromJSON(
835
+ jsonString: string,
836
+ ): SafeParseResult<ListAgentsKnowledgeBases, SDKValidationError> {
837
+ return safeParse(
838
+ jsonString,
839
+ (x) => ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)),
840
+ `Failed to parse 'ListAgentsKnowledgeBases' from JSON`,
841
+ );
842
+ }
843
+
844
+ /** @internal */
845
+ export const ListAgentsHiddenPanels$inboundSchema: z.ZodNativeEnum<
846
+ typeof ListAgentsHiddenPanels
847
+ > = z.nativeEnum(ListAgentsHiddenPanels);
848
+
849
+ /** @internal */
850
+ export const ListAgentsHiddenPanels$outboundSchema: z.ZodNativeEnum<
851
+ typeof ListAgentsHiddenPanels
852
+ > = ListAgentsHiddenPanels$inboundSchema;
853
+
854
+ /**
855
+ * @internal
856
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
857
+ */
858
+ export namespace ListAgentsHiddenPanels$ {
859
+ /** @deprecated use `ListAgentsHiddenPanels$inboundSchema` instead. */
860
+ export const inboundSchema = ListAgentsHiddenPanels$inboundSchema;
861
+ /** @deprecated use `ListAgentsHiddenPanels$outboundSchema` instead. */
862
+ export const outboundSchema = ListAgentsHiddenPanels$outboundSchema;
863
+ }
864
+
865
+ /** @internal */
866
+ export const ListAgentsData$inboundSchema: z.ZodType<
867
+ ListAgentsData,
868
+ z.ZodTypeDef,
869
+ unknown
870
+ > = z.object({
871
+ _id: z.string(),
872
+ key: z.string(),
873
+ workspace_id: z.string(),
874
+ project_id: z.string(),
875
+ created_by_id: z.nullable(z.string()).optional(),
876
+ updated_by_id: z.nullable(z.string()).optional(),
877
+ created: z.string().optional(),
878
+ updated: z.string().optional(),
879
+ role: z.string(),
880
+ description: z.string(),
881
+ system_prompt: z.string().optional(),
882
+ instructions: z.string(),
883
+ status: ListAgentsStatus$inboundSchema,
884
+ settings: z.lazy(() => ListAgentsSettings$inboundSchema).optional(),
885
+ model: z.lazy(() => ListAgentsModel$inboundSchema),
886
+ version_hash: z.string().optional(),
887
+ path: z.string(),
888
+ memory_stores: z.array(z.string()),
889
+ team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema)),
890
+ metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
891
+ variables: z.record(z.any()).optional(),
892
+ knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
893
+ .optional(),
894
+ hidden_panels: z.array(ListAgentsHiddenPanels$inboundSchema).optional(),
895
+ }).transform((v) => {
896
+ return remap$(v, {
897
+ "_id": "id",
898
+ "workspace_id": "workspaceId",
899
+ "project_id": "projectId",
900
+ "created_by_id": "createdById",
901
+ "updated_by_id": "updatedById",
902
+ "system_prompt": "systemPrompt",
903
+ "version_hash": "versionHash",
904
+ "memory_stores": "memoryStores",
905
+ "team_of_agents": "teamOfAgents",
906
+ "knowledge_bases": "knowledgeBases",
907
+ "hidden_panels": "hiddenPanels",
908
+ });
909
+ });
910
+
911
+ /** @internal */
912
+ export type ListAgentsData$Outbound = {
913
+ _id: string;
914
+ key: string;
915
+ workspace_id: string;
916
+ project_id: string;
917
+ created_by_id?: string | null | undefined;
918
+ updated_by_id?: string | null | undefined;
919
+ created?: string | undefined;
920
+ updated?: string | undefined;
921
+ role: string;
922
+ description: string;
923
+ system_prompt?: string | undefined;
924
+ instructions: string;
925
+ status: string;
926
+ settings?: ListAgentsSettings$Outbound | undefined;
927
+ model: ListAgentsModel$Outbound;
928
+ version_hash?: string | undefined;
929
+ path: string;
930
+ memory_stores: Array<string>;
931
+ team_of_agents: Array<ListAgentsTeamOfAgents$Outbound>;
932
+ metrics?: ListAgentsMetrics$Outbound | undefined;
933
+ variables?: { [k: string]: any } | undefined;
934
+ knowledge_bases?: Array<ListAgentsKnowledgeBases$Outbound> | undefined;
935
+ hidden_panels?: Array<string> | undefined;
936
+ };
937
+
938
+ /** @internal */
939
+ export const ListAgentsData$outboundSchema: z.ZodType<
940
+ ListAgentsData$Outbound,
941
+ z.ZodTypeDef,
942
+ ListAgentsData
943
+ > = z.object({
944
+ id: z.string(),
945
+ key: z.string(),
946
+ workspaceId: z.string(),
947
+ projectId: z.string(),
948
+ createdById: z.nullable(z.string()).optional(),
949
+ updatedById: z.nullable(z.string()).optional(),
950
+ created: z.string().optional(),
951
+ updated: z.string().optional(),
952
+ role: z.string(),
953
+ description: z.string(),
954
+ systemPrompt: z.string().optional(),
955
+ instructions: z.string(),
956
+ status: ListAgentsStatus$outboundSchema,
957
+ settings: z.lazy(() => ListAgentsSettings$outboundSchema).optional(),
958
+ model: z.lazy(() => ListAgentsModel$outboundSchema),
959
+ versionHash: z.string().optional(),
960
+ path: z.string(),
961
+ memoryStores: z.array(z.string()),
962
+ teamOfAgents: z.array(z.lazy(() => ListAgentsTeamOfAgents$outboundSchema)),
963
+ metrics: z.lazy(() => ListAgentsMetrics$outboundSchema).optional(),
964
+ variables: z.record(z.any()).optional(),
965
+ knowledgeBases: z.array(z.lazy(() => ListAgentsKnowledgeBases$outboundSchema))
966
+ .optional(),
967
+ hiddenPanels: z.array(ListAgentsHiddenPanels$outboundSchema).optional(),
968
+ }).transform((v) => {
969
+ return remap$(v, {
970
+ id: "_id",
971
+ workspaceId: "workspace_id",
972
+ projectId: "project_id",
973
+ createdById: "created_by_id",
974
+ updatedById: "updated_by_id",
975
+ systemPrompt: "system_prompt",
976
+ versionHash: "version_hash",
977
+ memoryStores: "memory_stores",
978
+ teamOfAgents: "team_of_agents",
979
+ knowledgeBases: "knowledge_bases",
980
+ hiddenPanels: "hidden_panels",
981
+ });
982
+ });
983
+
984
+ /**
985
+ * @internal
986
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
987
+ */
988
+ export namespace ListAgentsData$ {
989
+ /** @deprecated use `ListAgentsData$inboundSchema` instead. */
990
+ export const inboundSchema = ListAgentsData$inboundSchema;
991
+ /** @deprecated use `ListAgentsData$outboundSchema` instead. */
992
+ export const outboundSchema = ListAgentsData$outboundSchema;
993
+ /** @deprecated use `ListAgentsData$Outbound` instead. */
994
+ export type Outbound = ListAgentsData$Outbound;
995
+ }
996
+
997
+ export function listAgentsDataToJSON(listAgentsData: ListAgentsData): string {
998
+ return JSON.stringify(ListAgentsData$outboundSchema.parse(listAgentsData));
999
+ }
1000
+
1001
+ export function listAgentsDataFromJSON(
1002
+ jsonString: string,
1003
+ ): SafeParseResult<ListAgentsData, SDKValidationError> {
1004
+ return safeParse(
1005
+ jsonString,
1006
+ (x) => ListAgentsData$inboundSchema.parse(JSON.parse(x)),
1007
+ `Failed to parse 'ListAgentsData' from JSON`,
1008
+ );
1009
+ }
1010
+
1011
+ /** @internal */
1012
+ export const ListAgentsResponseBody$inboundSchema: z.ZodType<
1013
+ ListAgentsResponseBody,
1014
+ z.ZodTypeDef,
1015
+ unknown
1016
+ > = z.object({
1017
+ object: ListAgentsObject$inboundSchema,
1018
+ data: z.array(z.lazy(() => ListAgentsData$inboundSchema)),
1019
+ has_more: z.boolean(),
1020
+ }).transform((v) => {
1021
+ return remap$(v, {
1022
+ "has_more": "hasMore",
1023
+ });
1024
+ });
1025
+
1026
+ /** @internal */
1027
+ export type ListAgentsResponseBody$Outbound = {
1028
+ object: string;
1029
+ data: Array<ListAgentsData$Outbound>;
1030
+ has_more: boolean;
1031
+ };
1032
+
1033
+ /** @internal */
1034
+ export const ListAgentsResponseBody$outboundSchema: z.ZodType<
1035
+ ListAgentsResponseBody$Outbound,
1036
+ z.ZodTypeDef,
1037
+ ListAgentsResponseBody
1038
+ > = z.object({
1039
+ object: ListAgentsObject$outboundSchema,
1040
+ data: z.array(z.lazy(() => ListAgentsData$outboundSchema)),
1041
+ hasMore: z.boolean(),
1042
+ }).transform((v) => {
1043
+ return remap$(v, {
1044
+ hasMore: "has_more",
1045
+ });
1046
+ });
1047
+
1048
+ /**
1049
+ * @internal
1050
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1051
+ */
1052
+ export namespace ListAgentsResponseBody$ {
1053
+ /** @deprecated use `ListAgentsResponseBody$inboundSchema` instead. */
1054
+ export const inboundSchema = ListAgentsResponseBody$inboundSchema;
1055
+ /** @deprecated use `ListAgentsResponseBody$outboundSchema` instead. */
1056
+ export const outboundSchema = ListAgentsResponseBody$outboundSchema;
1057
+ /** @deprecated use `ListAgentsResponseBody$Outbound` instead. */
1058
+ export type Outbound = ListAgentsResponseBody$Outbound;
1059
+ }
1060
+
1061
+ export function listAgentsResponseBodyToJSON(
1062
+ listAgentsResponseBody: ListAgentsResponseBody,
1063
+ ): string {
1064
+ return JSON.stringify(
1065
+ ListAgentsResponseBody$outboundSchema.parse(listAgentsResponseBody),
1066
+ );
1067
+ }
1068
+
1069
+ export function listAgentsResponseBodyFromJSON(
1070
+ jsonString: string,
1071
+ ): SafeParseResult<ListAgentsResponseBody, SDKValidationError> {
1072
+ return safeParse(
1073
+ jsonString,
1074
+ (x) => ListAgentsResponseBody$inboundSchema.parse(JSON.parse(x)),
1075
+ `Failed to parse 'ListAgentsResponseBody' from JSON`,
1076
+ );
1077
+ }