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