@orq-ai/node 4.5.0-rc.9 → 4.5.2

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 (710) hide show
  1. package/README.md +38 -28
  2. package/funcs/agentsList.d.ts +1 -1
  3. package/funcs/agentsList.d.ts.map +1 -1
  4. package/funcs/agentsList.js +5 -3
  5. package/funcs/agentsList.js.map +1 -1
  6. package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
  7. package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
  8. package/funcs/agentsPostV2AgentsA2a.js +120 -0
  9. package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
  10. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
  11. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
  12. package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
  13. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
  14. package/funcs/agentsResponsesGet.d.ts +19 -0
  15. package/funcs/agentsResponsesGet.d.ts.map +1 -0
  16. package/funcs/agentsResponsesGet.js +128 -0
  17. package/funcs/agentsResponsesGet.js.map +1 -0
  18. package/funcs/agentsStream.js +4 -2
  19. package/funcs/agentsStream.js.map +1 -1
  20. package/funcs/agentsStreamRun.js +4 -2
  21. package/funcs/agentsStreamRun.js.map +1 -1
  22. package/funcs/agentsUpdate.d.ts +1 -1
  23. package/funcs/agentsUpdate.d.ts.map +1 -1
  24. package/funcs/agentsUpdate.js.map +1 -1
  25. package/funcs/deploymentsStream.js +4 -2
  26. package/funcs/deploymentsStream.js.map +1 -1
  27. package/funcs/filesCreate.d.ts +1 -1
  28. package/funcs/filesCreate.js +8 -1
  29. package/funcs/filesCreate.js.map +1 -1
  30. package/funcs/routerAudioTranscriptionsCreate.js +7 -0
  31. package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
  32. package/funcs/routerAudioTranslationsCreate.js +7 -0
  33. package/funcs/routerAudioTranslationsCreate.js.map +1 -1
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +3 -3
  36. package/lib/config.js +3 -3
  37. package/lib/config.js.map +1 -1
  38. package/lib/event-streams.d.ts +5 -0
  39. package/lib/event-streams.d.ts.map +1 -1
  40. package/lib/event-streams.js.map +1 -1
  41. package/lib/matchers.d.ts.map +1 -1
  42. package/lib/matchers.js +0 -1
  43. package/lib/matchers.js.map +1 -1
  44. package/lib/security.d.ts.map +1 -1
  45. package/lib/security.js +1 -2
  46. package/lib/security.js.map +1 -1
  47. package/models/components/createagentresponse.d.ts +5 -0
  48. package/models/components/createagentresponse.d.ts.map +1 -1
  49. package/models/components/createagentresponse.js +2 -0
  50. package/models/components/createagentresponse.js.map +1 -1
  51. package/models/components/extendedmessage.d.ts +71 -0
  52. package/models/components/extendedmessage.d.ts.map +1 -0
  53. package/models/components/extendedmessage.js +98 -0
  54. package/models/components/extendedmessage.js.map +1 -0
  55. package/models/components/getagentresponse.d.ts +157 -0
  56. package/models/components/getagentresponse.d.ts.map +1 -0
  57. package/models/components/getagentresponse.js +175 -0
  58. package/models/components/getagentresponse.js.map +1 -0
  59. package/models/components/index.d.ts +3 -0
  60. package/models/components/index.d.ts.map +1 -1
  61. package/models/components/index.js +3 -0
  62. package/models/components/index.js.map +1 -1
  63. package/models/components/partdoneevent.js +1 -1
  64. package/models/components/reasoningpart.js +1 -1
  65. package/models/components/responsedoneevent.d.ts +5 -0
  66. package/models/components/responsedoneevent.d.ts.map +1 -1
  67. package/models/components/responsedoneevent.js +2 -0
  68. package/models/components/responsedoneevent.js.map +1 -1
  69. package/models/components/responsestartedevent.d.ts +5 -0
  70. package/models/components/responsestartedevent.d.ts.map +1 -1
  71. package/models/components/responsestartedevent.js +2 -0
  72. package/models/components/responsestartedevent.js.map +1 -1
  73. package/models/components/telemetry.d.ts +20 -0
  74. package/models/components/telemetry.d.ts.map +1 -0
  75. package/models/components/telemetry.js +57 -0
  76. package/models/components/telemetry.js.map +1 -0
  77. package/models/errors/index.d.ts +2 -0
  78. package/models/errors/index.d.ts.map +1 -1
  79. package/models/errors/index.js +2 -0
  80. package/models/errors/index.js.map +1 -1
  81. package/models/errors/postv2agentsa2a.d.ts +43 -0
  82. package/models/errors/postv2agentsa2a.d.ts.map +1 -0
  83. package/models/errors/postv2agentsa2a.js +94 -0
  84. package/models/errors/postv2agentsa2a.js.map +1 -0
  85. package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
  86. package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
  87. package/models/errors/postv2agentskeycardrefresh.js +94 -0
  88. package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
  89. package/models/operations/createagentrequest.d.ts +113 -500
  90. package/models/operations/createagentrequest.d.ts.map +1 -1
  91. package/models/operations/createagentrequest.js +103 -343
  92. package/models/operations/createagentrequest.js.map +1 -1
  93. package/models/operations/createagentresponserequest.d.ts +22 -1
  94. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  95. package/models/operations/createagentresponserequest.js +12 -2
  96. package/models/operations/createagentresponserequest.js.map +1 -1
  97. package/models/operations/createannotation.d.ts +1 -1
  98. package/models/operations/createannotation.d.ts.map +1 -1
  99. package/models/operations/createannotation.js +4 -0
  100. package/models/operations/createannotation.js.map +1 -1
  101. package/models/operations/createchatcompletion.d.ts +15 -2
  102. package/models/operations/createchatcompletion.d.ts.map +1 -1
  103. package/models/operations/createchatcompletion.js +3 -1
  104. package/models/operations/createchatcompletion.js.map +1 -1
  105. package/models/operations/createcompletion.d.ts +6 -2
  106. package/models/operations/createcompletion.d.ts.map +1 -1
  107. package/models/operations/createcompletion.js +2 -1
  108. package/models/operations/createcompletion.js.map +1 -1
  109. package/models/operations/createcontact.js +1 -1
  110. package/models/operations/createdataset.js +1 -1
  111. package/models/operations/createdatasetitem.js +4 -4
  112. package/models/operations/createdatasource.js +1 -1
  113. package/models/operations/createeval.js +16 -16
  114. package/models/operations/createfeedback.d.ts +2 -2
  115. package/models/operations/createidentity.js +1 -1
  116. package/models/operations/createprompt.d.ts +33 -32
  117. package/models/operations/createprompt.d.ts.map +1 -1
  118. package/models/operations/createprompt.js +33 -30
  119. package/models/operations/createprompt.js.map +1 -1
  120. package/models/operations/createresponse.d.ts.map +1 -1
  121. package/models/operations/createresponse.js +2 -1
  122. package/models/operations/createresponse.js.map +1 -1
  123. package/models/operations/createtool.js +6 -6
  124. package/models/operations/deploymentinvoke.d.ts +15 -0
  125. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  126. package/models/operations/deploymentinvoke.js +17 -1
  127. package/models/operations/deploymentinvoke.js.map +1 -1
  128. package/models/operations/deployments.d.ts +1 -0
  129. package/models/operations/deployments.d.ts.map +1 -1
  130. package/models/operations/deployments.js +1 -0
  131. package/models/operations/deployments.js.map +1 -1
  132. package/models/operations/deploymentstream.d.ts +15 -0
  133. package/models/operations/deploymentstream.d.ts.map +1 -1
  134. package/models/operations/deploymentstream.js +17 -1
  135. package/models/operations/deploymentstream.js.map +1 -1
  136. package/models/operations/fileget.js +1 -1
  137. package/models/operations/filelist.js +1 -1
  138. package/models/operations/fileupload.js +1 -1
  139. package/models/operations/getagentresponse.d.ts +20 -0
  140. package/models/operations/getagentresponse.d.ts.map +1 -0
  141. package/models/operations/getagentresponse.js +56 -0
  142. package/models/operations/getagentresponse.js.map +1 -0
  143. package/models/operations/getallprompts.d.ts +1 -0
  144. package/models/operations/getallprompts.d.ts.map +1 -1
  145. package/models/operations/getallprompts.js +1 -0
  146. package/models/operations/getallprompts.js.map +1 -1
  147. package/models/operations/getalltools.js +6 -6
  148. package/models/operations/getevals.js +16 -16
  149. package/models/operations/getoneprompt.d.ts +1 -0
  150. package/models/operations/getoneprompt.d.ts.map +1 -1
  151. package/models/operations/getoneprompt.js +1 -0
  152. package/models/operations/getoneprompt.js.map +1 -1
  153. package/models/operations/getpromptversion.d.ts +1 -0
  154. package/models/operations/getpromptversion.d.ts.map +1 -1
  155. package/models/operations/getpromptversion.js +1 -0
  156. package/models/operations/getpromptversion.js.map +1 -1
  157. package/models/operations/index.d.ts +3 -0
  158. package/models/operations/index.d.ts.map +1 -1
  159. package/models/operations/index.js +3 -0
  160. package/models/operations/index.js.map +1 -1
  161. package/models/operations/invokeagent.d.ts +26 -1
  162. package/models/operations/invokeagent.d.ts.map +1 -1
  163. package/models/operations/invokeagent.js +12 -1
  164. package/models/operations/invokeagent.js.map +1 -1
  165. package/models/operations/listagents.d.ts +114 -241
  166. package/models/operations/listagents.d.ts.map +1 -1
  167. package/models/operations/listagents.js +94 -182
  168. package/models/operations/listagents.js.map +1 -1
  169. package/models/operations/listdatasetdatapoints.js +4 -4
  170. package/models/operations/listdatasets.js +1 -1
  171. package/models/operations/listdatasources.js +1 -1
  172. package/models/operations/listidentities.js +1 -1
  173. package/models/operations/listpromptversions.d.ts +1 -0
  174. package/models/operations/listpromptversions.d.ts.map +1 -1
  175. package/models/operations/listpromptversions.js +1 -0
  176. package/models/operations/listpromptversions.js.map +1 -1
  177. package/models/operations/postv2agentsa2a.d.ts +119 -0
  178. package/models/operations/postv2agentsa2a.d.ts.map +1 -0
  179. package/models/operations/postv2agentsa2a.js +147 -0
  180. package/models/operations/postv2agentsa2a.js.map +1 -0
  181. package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
  182. package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
  183. package/models/operations/postv2agentskeycardrefresh.js +71 -0
  184. package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
  185. package/models/operations/retrieveagentrequest.d.ts +96 -242
  186. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  187. package/models/operations/retrieveagentrequest.js +84 -185
  188. package/models/operations/retrieveagentrequest.js.map +1 -1
  189. package/models/operations/retrievedatapoint.js +4 -4
  190. package/models/operations/retrievedataset.js +1 -1
  191. package/models/operations/retrievedatasource.js +1 -1
  192. package/models/operations/retrieveidentity.js +1 -1
  193. package/models/operations/retrievetool.js +6 -6
  194. package/models/operations/runagent.d.ts +27 -265
  195. package/models/operations/runagent.d.ts.map +1 -1
  196. package/models/operations/runagent.js +26 -163
  197. package/models/operations/runagent.js.map +1 -1
  198. package/models/operations/streamagent.d.ts +22 -1
  199. package/models/operations/streamagent.d.ts.map +1 -1
  200. package/models/operations/streamagent.js +11 -1
  201. package/models/operations/streamagent.js.map +1 -1
  202. package/models/operations/streamrunagent.d.ts +13 -255
  203. package/models/operations/streamrunagent.d.ts.map +1 -1
  204. package/models/operations/streamrunagent.js +15 -152
  205. package/models/operations/streamrunagent.js.map +1 -1
  206. package/models/operations/updateagent.d.ts +190 -507
  207. package/models/operations/updateagent.d.ts.map +1 -1
  208. package/models/operations/updateagent.js +144 -348
  209. package/models/operations/updateagent.js.map +1 -1
  210. package/models/operations/updatedatapoint.js +4 -4
  211. package/models/operations/updatedataset.js +1 -1
  212. package/models/operations/updatedatasource.js +1 -1
  213. package/models/operations/updateeval.d.ts +48 -0
  214. package/models/operations/updateeval.d.ts.map +1 -1
  215. package/models/operations/updateeval.js +60 -20
  216. package/models/operations/updateeval.js.map +1 -1
  217. package/models/operations/updateidentity.js +1 -1
  218. package/models/operations/updatememorystore.d.ts +2 -43
  219. package/models/operations/updatememorystore.d.ts.map +1 -1
  220. package/models/operations/updatememorystore.js +2 -45
  221. package/models/operations/updatememorystore.js.map +1 -1
  222. package/models/operations/updateprompt.d.ts +1 -0
  223. package/models/operations/updateprompt.d.ts.map +1 -1
  224. package/models/operations/updateprompt.js +1 -0
  225. package/models/operations/updateprompt.js.map +1 -1
  226. package/models/operations/updatetool.d.ts +60 -0
  227. package/models/operations/updatetool.d.ts.map +1 -1
  228. package/models/operations/updatetool.js +63 -9
  229. package/models/operations/updatetool.js.map +1 -1
  230. package/package.json +3 -4
  231. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  232. package/packages/orq-rc/src/core.ts +13 -0
  233. package/packages/orq-rc/src/funcs/agentsCreate.ts +161 -0
  234. package/packages/orq-rc/src/funcs/agentsDelete.ts +180 -0
  235. package/packages/orq-rc/src/funcs/agentsInvoke.ts +177 -0
  236. package/packages/orq-rc/src/funcs/agentsList.ts +184 -0
  237. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  238. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  239. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +183 -0
  240. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +182 -0
  241. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +180 -0
  242. package/packages/orq-rc/src/funcs/agentsRun.ts +162 -0
  243. package/packages/orq-rc/src/funcs/agentsStream.ts +204 -0
  244. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +189 -0
  245. package/packages/orq-rc/src/funcs/agentsUpdate.ts +184 -0
  246. package/packages/orq-rc/src/funcs/annotationsCreate.ts +171 -0
  247. package/packages/orq-rc/src/funcs/annotationsDelete.ts +171 -0
  248. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  249. package/packages/orq-rc/src/funcs/contactsCreate.ts +160 -0
  250. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  251. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  252. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
  253. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  254. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  255. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  256. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  257. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  258. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  259. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  260. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  261. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  262. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  263. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  264. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  265. package/packages/orq-rc/src/funcs/deploymentsStream.ts +186 -0
  266. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  267. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  268. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  269. package/packages/orq-rc/src/funcs/evalsInvoke.ts +181 -0
  270. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  271. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +183 -0
  272. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  273. package/packages/orq-rc/src/funcs/filesCreate.ts +198 -0
  274. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  275. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  276. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  277. package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
  278. package/packages/orq-rc/src/funcs/identitiesDelete.ts +176 -0
  279. package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
  280. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +175 -0
  281. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +176 -0
  282. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  283. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  284. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  285. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  286. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  287. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  288. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  289. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  290. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  291. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  292. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  293. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  294. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  295. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  296. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  297. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  298. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  299. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  300. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  301. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +162 -0
  302. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +176 -0
  303. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  304. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  305. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +185 -0
  306. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +180 -0
  307. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  308. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +184 -0
  309. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +177 -0
  310. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  311. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +179 -0
  312. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +174 -0
  313. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  314. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +180 -0
  315. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +175 -0
  316. package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
  317. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  318. package/packages/orq-rc/src/funcs/promptsDelete.ts +173 -0
  319. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  320. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  321. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  322. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  323. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  324. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  325. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +161 -0
  326. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +273 -0
  327. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +263 -0
  328. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +168 -0
  329. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +168 -0
  330. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +161 -0
  331. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +222 -0
  332. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +160 -0
  333. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +218 -0
  334. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +167 -0
  335. package/packages/orq-rc/src/funcs/routerOcr.ts +158 -0
  336. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +160 -0
  337. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +167 -0
  338. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  339. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  340. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +183 -0
  341. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
  342. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  343. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  344. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  345. package/packages/orq-rc/src/hooks/global.ts +44 -0
  346. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  347. package/packages/orq-rc/src/hooks/index.ts +6 -0
  348. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  349. package/packages/orq-rc/src/hooks/types.ts +112 -0
  350. package/packages/orq-rc/src/index.ts +9 -0
  351. package/packages/orq-rc/src/lib/base64.ts +37 -0
  352. package/packages/orq-rc/src/lib/config.ts +74 -0
  353. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  354. package/packages/orq-rc/src/lib/encodings.ts +497 -0
  355. package/packages/orq-rc/src/lib/env.ts +89 -0
  356. package/packages/orq-rc/src/lib/event-streams.ts +161 -0
  357. package/packages/orq-rc/src/lib/files.ts +82 -0
  358. package/packages/orq-rc/src/lib/http.ts +323 -0
  359. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  360. package/packages/orq-rc/src/lib/logger.ts +9 -0
  361. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  362. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  363. package/packages/orq-rc/src/lib/retries.ts +218 -0
  364. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  365. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  366. package/packages/orq-rc/src/lib/security.ts +263 -0
  367. package/packages/orq-rc/src/lib/url.ts +33 -0
  368. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  369. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  370. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  371. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  372. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  373. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  374. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  375. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  376. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +517 -0
  377. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  378. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  379. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  380. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  381. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  382. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  383. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  384. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  385. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  386. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  387. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  388. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  389. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  390. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  391. package/packages/orq-rc/src/models/components/index.ts +59 -0
  392. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  393. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  394. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  395. package/packages/orq-rc/src/models/components/partdoneevent.ts +139 -0
  396. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  397. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  398. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  399. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  400. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  401. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  402. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  403. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  404. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  405. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  406. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  407. package/packages/orq-rc/src/models/components/security.ts +32 -0
  408. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  409. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  410. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  411. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  412. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  413. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  414. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  415. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  416. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +230 -0
  417. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +214 -0
  418. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +200 -0
  419. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  420. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  421. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  422. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  423. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  424. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  425. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  426. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  427. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  428. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  429. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  430. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  431. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  432. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  433. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  434. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  435. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  436. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  437. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  438. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  439. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  440. package/packages/orq-rc/src/models/errors/index.ts +35 -0
  441. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  442. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  443. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  444. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  445. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  446. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  447. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +62 -0
  448. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  449. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  450. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  451. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  452. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  453. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  454. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  455. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  456. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  457. package/packages/orq-rc/src/models/operations/createagentrequest.ts +6393 -0
  458. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +644 -0
  459. package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
  460. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6392 -0
  461. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  462. package/packages/orq-rc/src/models/operations/createcompletion.ts +3418 -0
  463. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  464. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  465. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2551 -0
  466. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  467. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  468. package/packages/orq-rc/src/models/operations/createeval.ts +4170 -0
  469. package/packages/orq-rc/src/models/operations/createfeedback.ts +144 -0
  470. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  471. package/packages/orq-rc/src/models/operations/createimage.ts +1028 -0
  472. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  473. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  474. package/packages/orq-rc/src/models/operations/createknowledge.ts +944 -0
  475. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  476. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  477. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  478. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  479. package/packages/orq-rc/src/models/operations/createprompt.ts +5391 -0
  480. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  481. package/packages/orq-rc/src/models/operations/createresponse.ts +3325 -0
  482. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  483. package/packages/orq-rc/src/models/operations/createtool.ts +2499 -0
  484. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  485. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  486. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  487. package/packages/orq-rc/src/models/operations/deleteannotation.ts +79 -0
  488. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  489. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  490. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  491. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  492. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  493. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  494. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  495. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  496. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  497. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  498. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  499. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  500. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  501. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  502. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4525 -0
  503. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +729 -0
  504. package/packages/orq-rc/src/models/operations/deployments.ts +1269 -0
  505. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4653 -0
  506. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  507. package/packages/orq-rc/src/models/operations/fileget.ts +116 -0
  508. package/packages/orq-rc/src/models/operations/filelist.ts +172 -0
  509. package/packages/orq-rc/src/models/operations/fileupload.ts +170 -0
  510. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  511. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  512. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  513. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  514. package/packages/orq-rc/src/models/operations/getallprompts.ts +3165 -0
  515. package/packages/orq-rc/src/models/operations/getalltools.ts +1398 -0
  516. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  517. package/packages/orq-rc/src/models/operations/getevals.ts +2842 -0
  518. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  519. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  520. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3090 -0
  521. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3135 -0
  522. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  523. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  524. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  525. package/packages/orq-rc/src/models/operations/index.ts +116 -0
  526. package/packages/orq-rc/src/models/operations/invokeagent.ts +777 -0
  527. package/packages/orq-rc/src/models/operations/invokeeval.ts +1253 -0
  528. package/packages/orq-rc/src/models/operations/listagents.ts +2754 -0
  529. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  530. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  531. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  532. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  533. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  534. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  535. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  536. package/packages/orq-rc/src/models/operations/listmodels.ts +143 -0
  537. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3210 -0
  538. package/packages/orq-rc/src/models/operations/parse.ts +777 -0
  539. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  540. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  541. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  542. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  543. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2814 -0
  544. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  545. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  546. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  547. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +117 -0
  548. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  549. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  550. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  551. package/packages/orq-rc/src/models/operations/retrievetool.ts +1379 -0
  552. package/packages/orq-rc/src/models/operations/runagent.ts +4927 -0
  553. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  554. package/packages/orq-rc/src/models/operations/streamagent.ts +668 -0
  555. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5089 -0
  556. package/packages/orq-rc/src/models/operations/updateagent.ts +6824 -0
  557. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  558. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  559. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  560. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  561. package/packages/orq-rc/src/models/operations/updateeval.ts +4152 -0
  562. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  563. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  564. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  565. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  566. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  567. package/packages/orq-rc/src/models/operations/updateprompt.ts +5473 -0
  568. package/packages/orq-rc/src/models/operations/updatetool.ts +2810 -0
  569. package/packages/orq-rc/src/sdk/agents.ts +234 -0
  570. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  571. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  572. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  573. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  574. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  575. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  576. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  577. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  578. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  579. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  580. package/packages/orq-rc/src/sdk/evals.ts +84 -0
  581. package/packages/orq-rc/src/sdk/evaluators.ts +27 -0
  582. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  583. package/packages/orq-rc/src/sdk/files.ts +78 -0
  584. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  585. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  586. package/packages/orq-rc/src/sdk/images.ts +25 -0
  587. package/packages/orq-rc/src/sdk/index.ts +5 -0
  588. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  589. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  590. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  591. package/packages/orq-rc/src/sdk/models.ts +25 -0
  592. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  593. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  594. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  595. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  596. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  597. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  598. package/packages/orq-rc/src/sdk/responses.ts +53 -0
  599. package/packages/orq-rc/src/sdk/router.ts +72 -0
  600. package/packages/orq-rc/src/sdk/sdk.ts +115 -0
  601. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  602. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  603. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  604. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  605. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  606. package/packages/orq-rc/src/types/async.ts +68 -0
  607. package/packages/orq-rc/src/types/blobs.ts +32 -0
  608. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  609. package/packages/orq-rc/src/types/enums.ts +45 -0
  610. package/packages/orq-rc/src/types/fp.ts +50 -0
  611. package/packages/orq-rc/src/types/index.ts +11 -0
  612. package/packages/orq-rc/src/types/operations.ts +105 -0
  613. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  614. package/packages/orq-rc/src/types/streams.ts +21 -0
  615. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  616. package/sdk/agents.d.ts +16 -2
  617. package/sdk/agents.d.ts.map +1 -1
  618. package/sdk/agents.js +22 -2
  619. package/sdk/agents.js.map +1 -1
  620. package/sdk/files.d.ts +1 -1
  621. package/sdk/files.js +1 -1
  622. package/sdk/responses.d.ts +8 -0
  623. package/sdk/responses.d.ts.map +1 -1
  624. package/sdk/responses.js +10 -0
  625. package/sdk/responses.js.map +1 -1
  626. package/src/funcs/agentsList.ts +5 -0
  627. package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  628. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
  629. package/src/funcs/agentsResponsesGet.ts +182 -0
  630. package/src/funcs/agentsStream.ts +4 -1
  631. package/src/funcs/agentsStreamRun.ts +4 -1
  632. package/src/funcs/agentsUpdate.ts +2 -2
  633. package/src/funcs/deploymentsStream.ts +4 -1
  634. package/src/funcs/filesCreate.ts +12 -1
  635. package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
  636. package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
  637. package/src/lib/config.ts +3 -3
  638. package/src/lib/event-streams.ts +10 -1
  639. package/src/lib/matchers.ts +3 -2
  640. package/src/lib/security.ts +1 -2
  641. package/src/models/components/createagentresponse.ts +6 -0
  642. package/src/models/components/extendedmessage.ts +146 -0
  643. package/src/models/components/getagentresponse.ts +348 -0
  644. package/src/models/components/index.ts +3 -0
  645. package/src/models/components/partdoneevent.ts +1 -1
  646. package/src/models/components/reasoningpart.ts +1 -1
  647. package/src/models/components/responsedoneevent.ts +6 -0
  648. package/src/models/components/responsestartedevent.ts +6 -0
  649. package/src/models/components/telemetry.ts +48 -0
  650. package/src/models/errors/index.ts +2 -0
  651. package/src/models/errors/postv2agentsa2a.ts +96 -0
  652. package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  653. package/src/models/operations/createagentrequest.ts +243 -943
  654. package/src/models/operations/createagentresponserequest.ts +37 -2
  655. package/src/models/operations/createannotation.ts +5 -1
  656. package/src/models/operations/createchatcompletion.ts +14 -3
  657. package/src/models/operations/createcompletion.ts +8 -3
  658. package/src/models/operations/createcontact.ts +1 -1
  659. package/src/models/operations/createdataset.ts +1 -1
  660. package/src/models/operations/createdatasetitem.ts +4 -4
  661. package/src/models/operations/createdatasource.ts +1 -1
  662. package/src/models/operations/createeval.ts +16 -16
  663. package/src/models/operations/createfeedback.ts +2 -2
  664. package/src/models/operations/createidentity.ts +1 -1
  665. package/src/models/operations/createprompt.ts +59 -69
  666. package/src/models/operations/createresponse.ts +2 -1
  667. package/src/models/operations/createtool.ts +6 -6
  668. package/src/models/operations/deploymentinvoke.ts +39 -0
  669. package/src/models/operations/deployments.ts +1 -0
  670. package/src/models/operations/deploymentstream.ts +39 -0
  671. package/src/models/operations/fileget.ts +1 -1
  672. package/src/models/operations/filelist.ts +1 -1
  673. package/src/models/operations/fileupload.ts +1 -1
  674. package/src/models/operations/getagentresponse.ts +46 -0
  675. package/src/models/operations/getallprompts.ts +1 -0
  676. package/src/models/operations/getalltools.ts +6 -6
  677. package/src/models/operations/getevals.ts +16 -16
  678. package/src/models/operations/getoneprompt.ts +1 -0
  679. package/src/models/operations/getpromptversion.ts +1 -0
  680. package/src/models/operations/index.ts +3 -0
  681. package/src/models/operations/invokeagent.ts +45 -1
  682. package/src/models/operations/listagents.ts +218 -482
  683. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  684. package/src/models/operations/listdatasets.ts +1 -1
  685. package/src/models/operations/listdatasources.ts +1 -1
  686. package/src/models/operations/listidentities.ts +1 -1
  687. package/src/models/operations/listpromptversions.ts +1 -0
  688. package/src/models/operations/postv2agentsa2a.ts +252 -0
  689. package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  690. package/src/models/operations/retrieveagentrequest.ts +207 -497
  691. package/src/models/operations/retrievedatapoint.ts +4 -4
  692. package/src/models/operations/retrievedataset.ts +1 -1
  693. package/src/models/operations/retrievedatasource.ts +1 -1
  694. package/src/models/operations/retrieveidentity.ts +1 -1
  695. package/src/models/operations/retrievetool.ts +6 -6
  696. package/src/models/operations/runagent.ts +69 -493
  697. package/src/models/operations/streamagent.ts +40 -1
  698. package/src/models/operations/streamrunagent.ts +36 -493
  699. package/src/models/operations/updateagent.ts +380 -1003
  700. package/src/models/operations/updatedatapoint.ts +4 -4
  701. package/src/models/operations/updatedataset.ts +1 -1
  702. package/src/models/operations/updatedatasource.ts +1 -1
  703. package/src/models/operations/updateeval.ts +102 -16
  704. package/src/models/operations/updateidentity.ts +1 -1
  705. package/src/models/operations/updatememorystore.ts +3 -61
  706. package/src/models/operations/updateprompt.ts +1 -0
  707. package/src/models/operations/updatetool.ts +121 -7
  708. package/src/sdk/agents.ts +39 -1
  709. package/src/sdk/files.ts +1 -1
  710. package/src/sdk/responses.ts +19 -0
@@ -0,0 +1,1398 @@
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 {
8
+ collectExtraKeys as collectExtraKeys$,
9
+ safeParse,
10
+ } from "../../lib/schemas.js";
11
+ import { ClosedEnum } from "../../types/enums.js";
12
+ import { Result as SafeParseResult } from "../../types/fp.js";
13
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
+
15
+ export type GetAllToolsRequest = {
16
+ /**
17
+ * Maximum number of tools per page (1-200). Omit to return all tools.
18
+ */
19
+ limit?: number | undefined;
20
+ /**
21
+ * 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.
22
+ */
23
+ startingAfter?: string | undefined;
24
+ /**
25
+ * 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.
26
+ */
27
+ endingBefore?: string | undefined;
28
+ };
29
+
30
+ export const GetAllToolsObject = {
31
+ List: "list",
32
+ } as const;
33
+ export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
34
+
35
+ /**
36
+ * The status of the tool. `Live` is the latest version of the tool. `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.
37
+ */
38
+ export const GetAllToolsDataToolsResponse200Status = {
39
+ Live: "live",
40
+ Draft: "draft",
41
+ Pending: "pending",
42
+ Published: "published",
43
+ } as const;
44
+ /**
45
+ * The status of the tool. `Live` is the latest version of the tool. `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.
46
+ */
47
+ export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
48
+ typeof GetAllToolsDataToolsResponse200Status
49
+ >;
50
+
51
+ /**
52
+ * The type must be "object"
53
+ */
54
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = {
55
+ Object: "object",
56
+ } as const;
57
+ /**
58
+ * The type must be "object"
59
+ */
60
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
61
+ ClosedEnum<
62
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
63
+ >;
64
+
65
+ /**
66
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
67
+ */
68
+ export type GetAllToolsDataParameters = {
69
+ /**
70
+ * The type must be "object"
71
+ */
72
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type;
73
+ /**
74
+ * The properties of the function parameters
75
+ */
76
+ properties: { [k: string]: any };
77
+ /**
78
+ * Array of required parameter names
79
+ */
80
+ required: Array<string>;
81
+ additionalProperties?: { [k: string]: any } | undefined;
82
+ };
83
+
84
+ export const DataLanguage = {
85
+ Python: "python",
86
+ } as const;
87
+ export type DataLanguage = ClosedEnum<typeof DataLanguage>;
88
+
89
+ export type DataCodeTool = {
90
+ /**
91
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
92
+ */
93
+ parameters?: GetAllToolsDataParameters | undefined;
94
+ language: DataLanguage;
95
+ /**
96
+ * The code to execute.
97
+ */
98
+ code: string;
99
+ };
100
+
101
+ /**
102
+ * Executes code snippets in a sandboxed environment, currently supporting Python.
103
+ */
104
+ export type DataCodeExecutionTool = {
105
+ id: string;
106
+ /**
107
+ * Entity storage path in the format: `project/folder/subfolder/...`
108
+ *
109
+ * @remarks
110
+ *
111
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
112
+ *
113
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
114
+ */
115
+ path: string;
116
+ /**
117
+ * Unique key of the tool as it will be displayed in the UI
118
+ */
119
+ key: string;
120
+ /**
121
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
122
+ */
123
+ displayName?: string | undefined;
124
+ /**
125
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
126
+ */
127
+ description: string;
128
+ /**
129
+ * The id of the user that created the tool
130
+ */
131
+ createdById?: string | undefined;
132
+ /**
133
+ * The id of the user that last updated the tool
134
+ */
135
+ updatedById?: string | undefined;
136
+ projectId: string;
137
+ workspaceId: string;
138
+ created: string;
139
+ updated: string;
140
+ /**
141
+ * The status of the tool. `Live` is the latest version of the tool. `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.
142
+ */
143
+ status: GetAllToolsDataToolsResponse200Status;
144
+ versionHash?: string | undefined;
145
+ type: "code";
146
+ codeTool: DataCodeTool;
147
+ };
148
+
149
+ /**
150
+ * The status of the tool. `Live` is the latest version of the tool. `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.
151
+ */
152
+ export const GetAllToolsDataToolsResponseStatus = {
153
+ Live: "live",
154
+ Draft: "draft",
155
+ Pending: "pending",
156
+ Published: "published",
157
+ } as const;
158
+ /**
159
+ * The status of the tool. `Live` is the latest version of the tool. `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.
160
+ */
161
+ export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
162
+ typeof GetAllToolsDataToolsResponseStatus
163
+ >;
164
+
165
+ export type DataHeaders = {
166
+ value: string;
167
+ encrypted: boolean;
168
+ };
169
+
170
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = {
171
+ Object: "object",
172
+ } as const;
173
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type =
174
+ ClosedEnum<
175
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
176
+ >;
177
+
178
+ export type GetAllToolsDataSchema = {
179
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type;
180
+ properties?: { [k: string]: any } | undefined;
181
+ required?: Array<string> | undefined;
182
+ };
183
+
184
+ export type DataTools = {
185
+ id: string;
186
+ name: string;
187
+ description?: string | undefined;
188
+ schema: GetAllToolsDataSchema;
189
+ };
190
+
191
+ /**
192
+ * The connection type used by the MCP server
193
+ */
194
+ export const DataConnectionType = {
195
+ Http: "http",
196
+ Sse: "sse",
197
+ } as const;
198
+ /**
199
+ * The connection type used by the MCP server
200
+ */
201
+ export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
202
+
203
+ export type DataMcp = {
204
+ /**
205
+ * The MCP server URL (cached for execution)
206
+ */
207
+ serverUrl: string;
208
+ /**
209
+ * HTTP headers for MCP server requests with encryption support
210
+ */
211
+ headers?: { [k: string]: DataHeaders } | undefined;
212
+ /**
213
+ * Array of tools available from the MCP server
214
+ */
215
+ tools: Array<DataTools>;
216
+ /**
217
+ * The connection type used by the MCP server
218
+ */
219
+ connectionType: DataConnectionType;
220
+ };
221
+
222
+ /**
223
+ * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
224
+ */
225
+ export type DataMCPTool = {
226
+ id: string;
227
+ /**
228
+ * Entity storage path in the format: `project/folder/subfolder/...`
229
+ *
230
+ * @remarks
231
+ *
232
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
233
+ *
234
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
235
+ */
236
+ path: string;
237
+ /**
238
+ * Unique key of the tool as it will be displayed in the UI
239
+ */
240
+ key: string;
241
+ /**
242
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
243
+ */
244
+ displayName?: string | undefined;
245
+ /**
246
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
247
+ */
248
+ description: string;
249
+ /**
250
+ * The id of the user that created the tool
251
+ */
252
+ createdById?: string | undefined;
253
+ /**
254
+ * The id of the user that last updated the tool
255
+ */
256
+ updatedById?: string | undefined;
257
+ projectId: string;
258
+ workspaceId: string;
259
+ created: string;
260
+ updated: string;
261
+ /**
262
+ * The status of the tool. `Live` is the latest version of the tool. `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.
263
+ */
264
+ status: GetAllToolsDataToolsResponseStatus;
265
+ versionHash?: string | undefined;
266
+ type: "mcp";
267
+ mcp: DataMcp;
268
+ };
269
+
270
+ /**
271
+ * The status of the tool. `Live` is the latest version of the tool. `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.
272
+ */
273
+ export const GetAllToolsDataToolsStatus = {
274
+ Live: "live",
275
+ Draft: "draft",
276
+ Pending: "pending",
277
+ Published: "published",
278
+ } as const;
279
+ /**
280
+ * The status of the tool. `Live` is the latest version of the tool. `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.
281
+ */
282
+ export type GetAllToolsDataToolsStatus = ClosedEnum<
283
+ typeof GetAllToolsDataToolsStatus
284
+ >;
285
+
286
+ /**
287
+ * The HTTP method to use.
288
+ */
289
+ export const GetAllToolsDataMethod = {
290
+ Get: "GET",
291
+ Post: "POST",
292
+ Put: "PUT",
293
+ Delete: "DELETE",
294
+ } as const;
295
+ /**
296
+ * The HTTP method to use.
297
+ */
298
+ export type GetAllToolsDataMethod = ClosedEnum<typeof GetAllToolsDataMethod>;
299
+
300
+ export type GetAllToolsHeaders2 = {
301
+ value: string;
302
+ encrypted: boolean;
303
+ };
304
+
305
+ export type GetAllToolsDataHeaders = GetAllToolsHeaders2 | string;
306
+
307
+ /**
308
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
309
+ */
310
+ export type DataBlueprint = {
311
+ /**
312
+ * The URL to send the request to.
313
+ */
314
+ url: string;
315
+ /**
316
+ * The HTTP method to use.
317
+ */
318
+ method: GetAllToolsDataMethod;
319
+ /**
320
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
321
+ */
322
+ headers?: { [k: string]: GetAllToolsHeaders2 | string } | undefined;
323
+ /**
324
+ * The body to send with the request.
325
+ */
326
+ body?: { [k: string]: any } | undefined;
327
+ };
328
+
329
+ /**
330
+ * The type of the argument.
331
+ */
332
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
333
+ String: "string",
334
+ Number: "number",
335
+ Boolean: "boolean",
336
+ } as const;
337
+ /**
338
+ * The type of the argument.
339
+ */
340
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type =
341
+ ClosedEnum<
342
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
343
+ >;
344
+
345
+ /**
346
+ * The default value of the argument.
347
+ */
348
+ export type DataDefaultValue = string | number | boolean;
349
+
350
+ export type DataArguments = {
351
+ /**
352
+ * The type of the argument.
353
+ */
354
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type;
355
+ /**
356
+ * A description of the argument.
357
+ */
358
+ description: string;
359
+ /**
360
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
361
+ */
362
+ sendToModel: boolean;
363
+ /**
364
+ * The default value of the argument.
365
+ */
366
+ defaultValue?: string | number | boolean | undefined;
367
+ };
368
+
369
+ export type GetAllToolsDataHttp = {
370
+ /**
371
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
372
+ */
373
+ blueprint: DataBlueprint;
374
+ /**
375
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
376
+ */
377
+ arguments?: { [k: string]: DataArguments } | undefined;
378
+ };
379
+
380
+ /**
381
+ * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
382
+ */
383
+ export type DataHTTPTool = {
384
+ id: string;
385
+ /**
386
+ * Entity storage path in the format: `project/folder/subfolder/...`
387
+ *
388
+ * @remarks
389
+ *
390
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
391
+ *
392
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
393
+ */
394
+ path: string;
395
+ /**
396
+ * Unique key of the tool as it will be displayed in the UI
397
+ */
398
+ key: string;
399
+ /**
400
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
401
+ */
402
+ displayName?: string | undefined;
403
+ /**
404
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
405
+ */
406
+ description: string;
407
+ /**
408
+ * The id of the user that created the tool
409
+ */
410
+ createdById?: string | undefined;
411
+ /**
412
+ * The id of the user that last updated the tool
413
+ */
414
+ updatedById?: string | undefined;
415
+ projectId: string;
416
+ workspaceId: string;
417
+ created: string;
418
+ updated: string;
419
+ /**
420
+ * The status of the tool. `Live` is the latest version of the tool. `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.
421
+ */
422
+ status: GetAllToolsDataToolsStatus;
423
+ versionHash?: string | undefined;
424
+ type: "http";
425
+ http: GetAllToolsDataHttp;
426
+ };
427
+
428
+ /**
429
+ * The status of the tool. `Live` is the latest version of the tool. `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.
430
+ */
431
+ export const GetAllToolsDataStatus = {
432
+ Live: "live",
433
+ Draft: "draft",
434
+ Pending: "pending",
435
+ Published: "published",
436
+ } as const;
437
+ /**
438
+ * The status of the tool. `Live` is the latest version of the tool. `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.
439
+ */
440
+ export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
441
+
442
+ /**
443
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
444
+ */
445
+ export type DataSchema = {
446
+ /**
447
+ * The JSON Schema type
448
+ */
449
+ type: string;
450
+ /**
451
+ * The properties of the JSON Schema object
452
+ */
453
+ properties: { [k: string]: any };
454
+ /**
455
+ * Array of required property names
456
+ */
457
+ required: Array<string>;
458
+ additionalProperties?: { [k: string]: any } | undefined;
459
+ };
460
+
461
+ export type DataJsonSchema = {
462
+ /**
463
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
464
+ */
465
+ name: string;
466
+ /**
467
+ * A description of what the response format is for. This will be shown to the user.
468
+ */
469
+ description: string;
470
+ /**
471
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
472
+ */
473
+ schema: DataSchema;
474
+ /**
475
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
476
+ */
477
+ strict?: boolean | undefined;
478
+ };
479
+
480
+ /**
481
+ * A tool that enforces structured output format using JSON Schema for consistent response formatting.
482
+ */
483
+ export type DataJSONSchemaTool = {
484
+ id: string;
485
+ /**
486
+ * Entity storage path in the format: `project/folder/subfolder/...`
487
+ *
488
+ * @remarks
489
+ *
490
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
491
+ *
492
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
493
+ */
494
+ path: string;
495
+ /**
496
+ * Unique key of the tool as it will be displayed in the UI
497
+ */
498
+ key: string;
499
+ /**
500
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
501
+ */
502
+ displayName?: string | undefined;
503
+ /**
504
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
505
+ */
506
+ description: string;
507
+ /**
508
+ * The id of the user that created the tool
509
+ */
510
+ createdById?: string | undefined;
511
+ /**
512
+ * The id of the user that last updated the tool
513
+ */
514
+ updatedById?: string | undefined;
515
+ projectId: string;
516
+ workspaceId: string;
517
+ created: string;
518
+ updated: string;
519
+ /**
520
+ * The status of the tool. `Live` is the latest version of the tool. `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.
521
+ */
522
+ status: GetAllToolsDataStatus;
523
+ versionHash?: string | undefined;
524
+ type: "json_schema";
525
+ jsonSchema: DataJsonSchema;
526
+ };
527
+
528
+ /**
529
+ * The status of the tool. `Live` is the latest version of the tool. `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.
530
+ */
531
+ export const DataStatus = {
532
+ Live: "live",
533
+ Draft: "draft",
534
+ Pending: "pending",
535
+ Published: "published",
536
+ } as const;
537
+ /**
538
+ * The status of the tool. `Live` is the latest version of the tool. `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.
539
+ */
540
+ export type DataStatus = ClosedEnum<typeof DataStatus>;
541
+
542
+ /**
543
+ * The type must be "object"
544
+ */
545
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
546
+ Object: "object",
547
+ } as const;
548
+ /**
549
+ * The type must be "object"
550
+ */
551
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
552
+ ClosedEnum<
553
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
554
+ >;
555
+
556
+ /**
557
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
558
+ */
559
+ export type DataParameters = {
560
+ /**
561
+ * The type must be "object"
562
+ */
563
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
564
+ /**
565
+ * The properties of the function parameters
566
+ */
567
+ properties: { [k: string]: any };
568
+ /**
569
+ * Array of required parameter names
570
+ */
571
+ required: Array<string>;
572
+ additionalProperties?: { [k: string]: any } | undefined;
573
+ };
574
+
575
+ export type GetAllToolsDataFunction = {
576
+ /**
577
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
578
+ */
579
+ name: string;
580
+ /**
581
+ * A description of what the function does, used by the model to choose when and how to call the function.
582
+ */
583
+ description?: string | undefined;
584
+ /**
585
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
586
+ */
587
+ strict?: boolean | undefined;
588
+ /**
589
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
590
+ */
591
+ parameters?: DataParameters | undefined;
592
+ };
593
+
594
+ /**
595
+ * A custom function tool that allows the model to call predefined functions with structured parameters.
596
+ */
597
+ export type DataFunctionTool = {
598
+ id: string;
599
+ /**
600
+ * Entity storage path in the format: `project/folder/subfolder/...`
601
+ *
602
+ * @remarks
603
+ *
604
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
605
+ *
606
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
607
+ */
608
+ path: string;
609
+ /**
610
+ * Unique key of the tool as it will be displayed in the UI
611
+ */
612
+ key: string;
613
+ /**
614
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
615
+ */
616
+ displayName?: string | undefined;
617
+ /**
618
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
619
+ */
620
+ description: string;
621
+ /**
622
+ * The id of the user that created the tool
623
+ */
624
+ createdById?: string | undefined;
625
+ /**
626
+ * The id of the user that last updated the tool
627
+ */
628
+ updatedById?: string | undefined;
629
+ projectId: string;
630
+ workspaceId: string;
631
+ created: string;
632
+ updated: string;
633
+ /**
634
+ * The status of the tool. `Live` is the latest version of the tool. `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.
635
+ */
636
+ status: DataStatus;
637
+ versionHash?: string | undefined;
638
+ type: "function";
639
+ function: GetAllToolsDataFunction;
640
+ };
641
+
642
+ export type GetAllToolsData =
643
+ | DataFunctionTool
644
+ | DataJSONSchemaTool
645
+ | DataHTTPTool
646
+ | DataMCPTool
647
+ | DataCodeExecutionTool;
648
+
649
+ /**
650
+ * Successfully retrieved the list of tools.
651
+ */
652
+ export type GetAllToolsResponseBody = {
653
+ object: GetAllToolsObject;
654
+ data: Array<
655
+ | DataFunctionTool
656
+ | DataJSONSchemaTool
657
+ | DataHTTPTool
658
+ | DataMCPTool
659
+ | DataCodeExecutionTool
660
+ >;
661
+ hasMore: boolean;
662
+ };
663
+
664
+ /** @internal */
665
+ export type GetAllToolsRequest$Outbound = {
666
+ limit?: number | undefined;
667
+ starting_after?: string | undefined;
668
+ ending_before?: string | undefined;
669
+ };
670
+
671
+ /** @internal */
672
+ export const GetAllToolsRequest$outboundSchema: z.ZodType<
673
+ GetAllToolsRequest$Outbound,
674
+ z.ZodTypeDef,
675
+ GetAllToolsRequest
676
+ > = z.object({
677
+ limit: z.number().optional(),
678
+ startingAfter: z.string().optional(),
679
+ endingBefore: z.string().optional(),
680
+ }).transform((v) => {
681
+ return remap$(v, {
682
+ startingAfter: "starting_after",
683
+ endingBefore: "ending_before",
684
+ });
685
+ });
686
+
687
+ export function getAllToolsRequestToJSON(
688
+ getAllToolsRequest: GetAllToolsRequest,
689
+ ): string {
690
+ return JSON.stringify(
691
+ GetAllToolsRequest$outboundSchema.parse(getAllToolsRequest),
692
+ );
693
+ }
694
+
695
+ /** @internal */
696
+ export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
697
+ typeof GetAllToolsObject
698
+ > = z.nativeEnum(GetAllToolsObject);
699
+
700
+ /** @internal */
701
+ export const GetAllToolsDataToolsResponse200Status$inboundSchema:
702
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
703
+ GetAllToolsDataToolsResponse200Status,
704
+ );
705
+
706
+ /** @internal */
707
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
708
+ z.ZodNativeEnum<
709
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
710
+ > = z.nativeEnum(
711
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type,
712
+ );
713
+
714
+ /** @internal */
715
+ export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
716
+ GetAllToolsDataParameters,
717
+ z.ZodTypeDef,
718
+ unknown
719
+ > = collectExtraKeys$(
720
+ z.object({
721
+ type:
722
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
723
+ properties: z.record(z.any()),
724
+ required: z.array(z.string()),
725
+ }).catchall(z.any()),
726
+ "additionalProperties",
727
+ true,
728
+ );
729
+
730
+ export function getAllToolsDataParametersFromJSON(
731
+ jsonString: string,
732
+ ): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
733
+ return safeParse(
734
+ jsonString,
735
+ (x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
736
+ `Failed to parse 'GetAllToolsDataParameters' from JSON`,
737
+ );
738
+ }
739
+
740
+ /** @internal */
741
+ export const DataLanguage$inboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
742
+ z.nativeEnum(DataLanguage);
743
+
744
+ /** @internal */
745
+ export const DataCodeTool$inboundSchema: z.ZodType<
746
+ DataCodeTool,
747
+ z.ZodTypeDef,
748
+ unknown
749
+ > = z.object({
750
+ parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
751
+ language: DataLanguage$inboundSchema,
752
+ code: z.string(),
753
+ });
754
+
755
+ export function dataCodeToolFromJSON(
756
+ jsonString: string,
757
+ ): SafeParseResult<DataCodeTool, SDKValidationError> {
758
+ return safeParse(
759
+ jsonString,
760
+ (x) => DataCodeTool$inboundSchema.parse(JSON.parse(x)),
761
+ `Failed to parse 'DataCodeTool' from JSON`,
762
+ );
763
+ }
764
+
765
+ /** @internal */
766
+ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
+ DataCodeExecutionTool,
768
+ z.ZodTypeDef,
769
+ unknown
770
+ > = z.object({
771
+ _id: z.string().default("tool_01KKCE2SK4GY6K099BXPGRWFJ5"),
772
+ path: z.string(),
773
+ key: z.string(),
774
+ display_name: z.string().optional(),
775
+ description: z.string(),
776
+ created_by_id: z.string().optional(),
777
+ updated_by_id: z.string().optional(),
778
+ project_id: z.string(),
779
+ workspace_id: z.string(),
780
+ created: z.string(),
781
+ updated: z.string(),
782
+ status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
783
+ version_hash: z.string().optional(),
784
+ type: z.literal("code"),
785
+ code_tool: z.lazy(() => DataCodeTool$inboundSchema),
786
+ }).transform((v) => {
787
+ return remap$(v, {
788
+ "_id": "id",
789
+ "display_name": "displayName",
790
+ "created_by_id": "createdById",
791
+ "updated_by_id": "updatedById",
792
+ "project_id": "projectId",
793
+ "workspace_id": "workspaceId",
794
+ "version_hash": "versionHash",
795
+ "code_tool": "codeTool",
796
+ });
797
+ });
798
+
799
+ export function dataCodeExecutionToolFromJSON(
800
+ jsonString: string,
801
+ ): SafeParseResult<DataCodeExecutionTool, SDKValidationError> {
802
+ return safeParse(
803
+ jsonString,
804
+ (x) => DataCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
805
+ `Failed to parse 'DataCodeExecutionTool' from JSON`,
806
+ );
807
+ }
808
+
809
+ /** @internal */
810
+ export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
811
+ typeof GetAllToolsDataToolsResponseStatus
812
+ > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
813
+
814
+ /** @internal */
815
+ export const DataHeaders$inboundSchema: z.ZodType<
816
+ DataHeaders,
817
+ z.ZodTypeDef,
818
+ unknown
819
+ > = z.object({
820
+ value: z.string(),
821
+ encrypted: z.boolean().default(false),
822
+ });
823
+
824
+ export function dataHeadersFromJSON(
825
+ jsonString: string,
826
+ ): SafeParseResult<DataHeaders, SDKValidationError> {
827
+ return safeParse(
828
+ jsonString,
829
+ (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
830
+ `Failed to parse 'DataHeaders' from JSON`,
831
+ );
832
+ }
833
+
834
+ /** @internal */
835
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema:
836
+ z.ZodNativeEnum<
837
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
838
+ > = z.nativeEnum(
839
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type,
840
+ );
841
+
842
+ /** @internal */
843
+ export const GetAllToolsDataSchema$inboundSchema: z.ZodType<
844
+ GetAllToolsDataSchema,
845
+ z.ZodTypeDef,
846
+ unknown
847
+ > = z.object({
848
+ type:
849
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
850
+ properties: z.record(z.any()).optional(),
851
+ required: z.array(z.string()).optional(),
852
+ });
853
+
854
+ export function getAllToolsDataSchemaFromJSON(
855
+ jsonString: string,
856
+ ): SafeParseResult<GetAllToolsDataSchema, SDKValidationError> {
857
+ return safeParse(
858
+ jsonString,
859
+ (x) => GetAllToolsDataSchema$inboundSchema.parse(JSON.parse(x)),
860
+ `Failed to parse 'GetAllToolsDataSchema' from JSON`,
861
+ );
862
+ }
863
+
864
+ /** @internal */
865
+ export const DataTools$inboundSchema: z.ZodType<
866
+ DataTools,
867
+ z.ZodTypeDef,
868
+ unknown
869
+ > = z.object({
870
+ id: z.string().default("01KKCE2SK3T8PPZDQ9JJY0QVX1"),
871
+ name: z.string(),
872
+ description: z.string().optional(),
873
+ schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
874
+ });
875
+
876
+ export function dataToolsFromJSON(
877
+ jsonString: string,
878
+ ): SafeParseResult<DataTools, SDKValidationError> {
879
+ return safeParse(
880
+ jsonString,
881
+ (x) => DataTools$inboundSchema.parse(JSON.parse(x)),
882
+ `Failed to parse 'DataTools' from JSON`,
883
+ );
884
+ }
885
+
886
+ /** @internal */
887
+ export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
888
+ typeof DataConnectionType
889
+ > = z.nativeEnum(DataConnectionType);
890
+
891
+ /** @internal */
892
+ export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
893
+ z.object({
894
+ server_url: z.string(),
895
+ headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
896
+ tools: z.array(z.lazy(() => DataTools$inboundSchema)),
897
+ connection_type: DataConnectionType$inboundSchema,
898
+ }).transform((v) => {
899
+ return remap$(v, {
900
+ "server_url": "serverUrl",
901
+ "connection_type": "connectionType",
902
+ });
903
+ });
904
+
905
+ export function dataMcpFromJSON(
906
+ jsonString: string,
907
+ ): SafeParseResult<DataMcp, SDKValidationError> {
908
+ return safeParse(
909
+ jsonString,
910
+ (x) => DataMcp$inboundSchema.parse(JSON.parse(x)),
911
+ `Failed to parse 'DataMcp' from JSON`,
912
+ );
913
+ }
914
+
915
+ /** @internal */
916
+ export const DataMCPTool$inboundSchema: z.ZodType<
917
+ DataMCPTool,
918
+ z.ZodTypeDef,
919
+ unknown
920
+ > = z.object({
921
+ _id: z.string().default("tool_01KKCE2SK21418ZVT9MSP37012"),
922
+ path: z.string(),
923
+ key: z.string(),
924
+ display_name: z.string().optional(),
925
+ description: z.string(),
926
+ created_by_id: z.string().optional(),
927
+ updated_by_id: z.string().optional(),
928
+ project_id: z.string(),
929
+ workspace_id: z.string(),
930
+ created: z.string(),
931
+ updated: z.string(),
932
+ status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
933
+ version_hash: z.string().optional(),
934
+ type: z.literal("mcp"),
935
+ mcp: z.lazy(() => DataMcp$inboundSchema),
936
+ }).transform((v) => {
937
+ return remap$(v, {
938
+ "_id": "id",
939
+ "display_name": "displayName",
940
+ "created_by_id": "createdById",
941
+ "updated_by_id": "updatedById",
942
+ "project_id": "projectId",
943
+ "workspace_id": "workspaceId",
944
+ "version_hash": "versionHash",
945
+ });
946
+ });
947
+
948
+ export function dataMCPToolFromJSON(
949
+ jsonString: string,
950
+ ): SafeParseResult<DataMCPTool, SDKValidationError> {
951
+ return safeParse(
952
+ jsonString,
953
+ (x) => DataMCPTool$inboundSchema.parse(JSON.parse(x)),
954
+ `Failed to parse 'DataMCPTool' from JSON`,
955
+ );
956
+ }
957
+
958
+ /** @internal */
959
+ export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
960
+ typeof GetAllToolsDataToolsStatus
961
+ > = z.nativeEnum(GetAllToolsDataToolsStatus);
962
+
963
+ /** @internal */
964
+ export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
965
+ typeof GetAllToolsDataMethod
966
+ > = z.nativeEnum(GetAllToolsDataMethod);
967
+
968
+ /** @internal */
969
+ export const GetAllToolsHeaders2$inboundSchema: z.ZodType<
970
+ GetAllToolsHeaders2,
971
+ z.ZodTypeDef,
972
+ unknown
973
+ > = z.object({
974
+ value: z.string(),
975
+ encrypted: z.boolean().default(false),
976
+ });
977
+
978
+ export function getAllToolsHeaders2FromJSON(
979
+ jsonString: string,
980
+ ): SafeParseResult<GetAllToolsHeaders2, SDKValidationError> {
981
+ return safeParse(
982
+ jsonString,
983
+ (x) => GetAllToolsHeaders2$inboundSchema.parse(JSON.parse(x)),
984
+ `Failed to parse 'GetAllToolsHeaders2' from JSON`,
985
+ );
986
+ }
987
+
988
+ /** @internal */
989
+ export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
990
+ GetAllToolsDataHeaders,
991
+ z.ZodTypeDef,
992
+ unknown
993
+ > = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
994
+
995
+ export function getAllToolsDataHeadersFromJSON(
996
+ jsonString: string,
997
+ ): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
998
+ return safeParse(
999
+ jsonString,
1000
+ (x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
1001
+ `Failed to parse 'GetAllToolsDataHeaders' from JSON`,
1002
+ );
1003
+ }
1004
+
1005
+ /** @internal */
1006
+ export const DataBlueprint$inboundSchema: z.ZodType<
1007
+ DataBlueprint,
1008
+ z.ZodTypeDef,
1009
+ unknown
1010
+ > = z.object({
1011
+ url: z.string(),
1012
+ method: GetAllToolsDataMethod$inboundSchema,
1013
+ headers: z.record(
1014
+ z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]),
1015
+ ).optional(),
1016
+ body: z.record(z.any()).optional(),
1017
+ });
1018
+
1019
+ export function dataBlueprintFromJSON(
1020
+ jsonString: string,
1021
+ ): SafeParseResult<DataBlueprint, SDKValidationError> {
1022
+ return safeParse(
1023
+ jsonString,
1024
+ (x) => DataBlueprint$inboundSchema.parse(JSON.parse(x)),
1025
+ `Failed to parse 'DataBlueprint' from JSON`,
1026
+ );
1027
+ }
1028
+
1029
+ /** @internal */
1030
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema:
1031
+ z.ZodNativeEnum<
1032
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
1033
+ > = z.nativeEnum(
1034
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type,
1035
+ );
1036
+
1037
+ /** @internal */
1038
+ export const DataDefaultValue$inboundSchema: z.ZodType<
1039
+ DataDefaultValue,
1040
+ z.ZodTypeDef,
1041
+ unknown
1042
+ > = z.union([z.string(), z.number(), z.boolean()]);
1043
+
1044
+ export function dataDefaultValueFromJSON(
1045
+ jsonString: string,
1046
+ ): SafeParseResult<DataDefaultValue, SDKValidationError> {
1047
+ return safeParse(
1048
+ jsonString,
1049
+ (x) => DataDefaultValue$inboundSchema.parse(JSON.parse(x)),
1050
+ `Failed to parse 'DataDefaultValue' from JSON`,
1051
+ );
1052
+ }
1053
+
1054
+ /** @internal */
1055
+ export const DataArguments$inboundSchema: z.ZodType<
1056
+ DataArguments,
1057
+ z.ZodTypeDef,
1058
+ unknown
1059
+ > = z.object({
1060
+ type:
1061
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema,
1062
+ description: z.string(),
1063
+ send_to_model: z.boolean().default(true),
1064
+ default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
1065
+ }).transform((v) => {
1066
+ return remap$(v, {
1067
+ "send_to_model": "sendToModel",
1068
+ "default_value": "defaultValue",
1069
+ });
1070
+ });
1071
+
1072
+ export function dataArgumentsFromJSON(
1073
+ jsonString: string,
1074
+ ): SafeParseResult<DataArguments, SDKValidationError> {
1075
+ return safeParse(
1076
+ jsonString,
1077
+ (x) => DataArguments$inboundSchema.parse(JSON.parse(x)),
1078
+ `Failed to parse 'DataArguments' from JSON`,
1079
+ );
1080
+ }
1081
+
1082
+ /** @internal */
1083
+ export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
1084
+ GetAllToolsDataHttp,
1085
+ z.ZodTypeDef,
1086
+ unknown
1087
+ > = z.object({
1088
+ blueprint: z.lazy(() => DataBlueprint$inboundSchema),
1089
+ arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
1090
+ });
1091
+
1092
+ export function getAllToolsDataHttpFromJSON(
1093
+ jsonString: string,
1094
+ ): SafeParseResult<GetAllToolsDataHttp, SDKValidationError> {
1095
+ return safeParse(
1096
+ jsonString,
1097
+ (x) => GetAllToolsDataHttp$inboundSchema.parse(JSON.parse(x)),
1098
+ `Failed to parse 'GetAllToolsDataHttp' from JSON`,
1099
+ );
1100
+ }
1101
+
1102
+ /** @internal */
1103
+ export const DataHTTPTool$inboundSchema: z.ZodType<
1104
+ DataHTTPTool,
1105
+ z.ZodTypeDef,
1106
+ unknown
1107
+ > = z.object({
1108
+ _id: z.string().default("tool_01KKCE2SK0HPWT8RN8079XXBEF"),
1109
+ path: z.string(),
1110
+ key: z.string(),
1111
+ display_name: z.string().optional(),
1112
+ description: z.string(),
1113
+ created_by_id: z.string().optional(),
1114
+ updated_by_id: z.string().optional(),
1115
+ project_id: z.string(),
1116
+ workspace_id: z.string(),
1117
+ created: z.string(),
1118
+ updated: z.string(),
1119
+ status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1120
+ version_hash: z.string().optional(),
1121
+ type: z.literal("http"),
1122
+ http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
1123
+ }).transform((v) => {
1124
+ return remap$(v, {
1125
+ "_id": "id",
1126
+ "display_name": "displayName",
1127
+ "created_by_id": "createdById",
1128
+ "updated_by_id": "updatedById",
1129
+ "project_id": "projectId",
1130
+ "workspace_id": "workspaceId",
1131
+ "version_hash": "versionHash",
1132
+ });
1133
+ });
1134
+
1135
+ export function dataHTTPToolFromJSON(
1136
+ jsonString: string,
1137
+ ): SafeParseResult<DataHTTPTool, SDKValidationError> {
1138
+ return safeParse(
1139
+ jsonString,
1140
+ (x) => DataHTTPTool$inboundSchema.parse(JSON.parse(x)),
1141
+ `Failed to parse 'DataHTTPTool' from JSON`,
1142
+ );
1143
+ }
1144
+
1145
+ /** @internal */
1146
+ export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
1147
+ typeof GetAllToolsDataStatus
1148
+ > = z.nativeEnum(GetAllToolsDataStatus);
1149
+
1150
+ /** @internal */
1151
+ export const DataSchema$inboundSchema: z.ZodType<
1152
+ DataSchema,
1153
+ z.ZodTypeDef,
1154
+ unknown
1155
+ > = collectExtraKeys$(
1156
+ z.object({
1157
+ type: z.string(),
1158
+ properties: z.record(z.any()),
1159
+ required: z.array(z.string()),
1160
+ }).catchall(z.any()),
1161
+ "additionalProperties",
1162
+ true,
1163
+ );
1164
+
1165
+ export function dataSchemaFromJSON(
1166
+ jsonString: string,
1167
+ ): SafeParseResult<DataSchema, SDKValidationError> {
1168
+ return safeParse(
1169
+ jsonString,
1170
+ (x) => DataSchema$inboundSchema.parse(JSON.parse(x)),
1171
+ `Failed to parse 'DataSchema' from JSON`,
1172
+ );
1173
+ }
1174
+
1175
+ /** @internal */
1176
+ export const DataJsonSchema$inboundSchema: z.ZodType<
1177
+ DataJsonSchema,
1178
+ z.ZodTypeDef,
1179
+ unknown
1180
+ > = z.object({
1181
+ name: z.string(),
1182
+ description: z.string(),
1183
+ schema: z.lazy(() => DataSchema$inboundSchema),
1184
+ strict: z.boolean().optional(),
1185
+ });
1186
+
1187
+ export function dataJsonSchemaFromJSON(
1188
+ jsonString: string,
1189
+ ): SafeParseResult<DataJsonSchema, SDKValidationError> {
1190
+ return safeParse(
1191
+ jsonString,
1192
+ (x) => DataJsonSchema$inboundSchema.parse(JSON.parse(x)),
1193
+ `Failed to parse 'DataJsonSchema' from JSON`,
1194
+ );
1195
+ }
1196
+
1197
+ /** @internal */
1198
+ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1199
+ DataJSONSchemaTool,
1200
+ z.ZodTypeDef,
1201
+ unknown
1202
+ > = z.object({
1203
+ _id: z.string().default("tool_01KKCE2SJZ0X8V1GX791CBRBST"),
1204
+ path: z.string(),
1205
+ key: z.string(),
1206
+ display_name: z.string().optional(),
1207
+ description: z.string(),
1208
+ created_by_id: z.string().optional(),
1209
+ updated_by_id: z.string().optional(),
1210
+ project_id: z.string(),
1211
+ workspace_id: z.string(),
1212
+ created: z.string(),
1213
+ updated: z.string(),
1214
+ status: GetAllToolsDataStatus$inboundSchema.default("live"),
1215
+ version_hash: z.string().optional(),
1216
+ type: z.literal("json_schema"),
1217
+ json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
1218
+ }).transform((v) => {
1219
+ return remap$(v, {
1220
+ "_id": "id",
1221
+ "display_name": "displayName",
1222
+ "created_by_id": "createdById",
1223
+ "updated_by_id": "updatedById",
1224
+ "project_id": "projectId",
1225
+ "workspace_id": "workspaceId",
1226
+ "version_hash": "versionHash",
1227
+ "json_schema": "jsonSchema",
1228
+ });
1229
+ });
1230
+
1231
+ export function dataJSONSchemaToolFromJSON(
1232
+ jsonString: string,
1233
+ ): SafeParseResult<DataJSONSchemaTool, SDKValidationError> {
1234
+ return safeParse(
1235
+ jsonString,
1236
+ (x) => DataJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
1237
+ `Failed to parse 'DataJSONSchemaTool' from JSON`,
1238
+ );
1239
+ }
1240
+
1241
+ /** @internal */
1242
+ export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
1243
+ .nativeEnum(DataStatus);
1244
+
1245
+ /** @internal */
1246
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1247
+ z.ZodNativeEnum<
1248
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
1249
+ > = z.nativeEnum(
1250
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
1251
+ );
1252
+
1253
+ /** @internal */
1254
+ export const DataParameters$inboundSchema: z.ZodType<
1255
+ DataParameters,
1256
+ z.ZodTypeDef,
1257
+ unknown
1258
+ > = collectExtraKeys$(
1259
+ z.object({
1260
+ type:
1261
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1262
+ properties: z.record(z.any()),
1263
+ required: z.array(z.string()),
1264
+ }).catchall(z.any()),
1265
+ "additionalProperties",
1266
+ true,
1267
+ );
1268
+
1269
+ export function dataParametersFromJSON(
1270
+ jsonString: string,
1271
+ ): SafeParseResult<DataParameters, SDKValidationError> {
1272
+ return safeParse(
1273
+ jsonString,
1274
+ (x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
1275
+ `Failed to parse 'DataParameters' from JSON`,
1276
+ );
1277
+ }
1278
+
1279
+ /** @internal */
1280
+ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
1281
+ GetAllToolsDataFunction,
1282
+ z.ZodTypeDef,
1283
+ unknown
1284
+ > = z.object({
1285
+ name: z.string(),
1286
+ description: z.string().optional(),
1287
+ strict: z.boolean().optional(),
1288
+ parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
1289
+ });
1290
+
1291
+ export function getAllToolsDataFunctionFromJSON(
1292
+ jsonString: string,
1293
+ ): SafeParseResult<GetAllToolsDataFunction, SDKValidationError> {
1294
+ return safeParse(
1295
+ jsonString,
1296
+ (x) => GetAllToolsDataFunction$inboundSchema.parse(JSON.parse(x)),
1297
+ `Failed to parse 'GetAllToolsDataFunction' from JSON`,
1298
+ );
1299
+ }
1300
+
1301
+ /** @internal */
1302
+ export const DataFunctionTool$inboundSchema: z.ZodType<
1303
+ DataFunctionTool,
1304
+ z.ZodTypeDef,
1305
+ unknown
1306
+ > = z.object({
1307
+ _id: z.string().default("tool_01KKCE2SJXPSC741FEMFXHG2YB"),
1308
+ path: z.string(),
1309
+ key: z.string(),
1310
+ display_name: z.string().optional(),
1311
+ description: z.string(),
1312
+ created_by_id: z.string().optional(),
1313
+ updated_by_id: z.string().optional(),
1314
+ project_id: z.string(),
1315
+ workspace_id: z.string(),
1316
+ created: z.string(),
1317
+ updated: z.string(),
1318
+ status: DataStatus$inboundSchema.default("live"),
1319
+ version_hash: z.string().optional(),
1320
+ type: z.literal("function"),
1321
+ function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
1322
+ }).transform((v) => {
1323
+ return remap$(v, {
1324
+ "_id": "id",
1325
+ "display_name": "displayName",
1326
+ "created_by_id": "createdById",
1327
+ "updated_by_id": "updatedById",
1328
+ "project_id": "projectId",
1329
+ "workspace_id": "workspaceId",
1330
+ "version_hash": "versionHash",
1331
+ });
1332
+ });
1333
+
1334
+ export function dataFunctionToolFromJSON(
1335
+ jsonString: string,
1336
+ ): SafeParseResult<DataFunctionTool, SDKValidationError> {
1337
+ return safeParse(
1338
+ jsonString,
1339
+ (x) => DataFunctionTool$inboundSchema.parse(JSON.parse(x)),
1340
+ `Failed to parse 'DataFunctionTool' from JSON`,
1341
+ );
1342
+ }
1343
+
1344
+ /** @internal */
1345
+ export const GetAllToolsData$inboundSchema: z.ZodType<
1346
+ GetAllToolsData,
1347
+ z.ZodTypeDef,
1348
+ unknown
1349
+ > = z.union([
1350
+ z.lazy(() => DataFunctionTool$inboundSchema),
1351
+ z.lazy(() => DataJSONSchemaTool$inboundSchema),
1352
+ z.lazy(() => DataHTTPTool$inboundSchema),
1353
+ z.lazy(() => DataMCPTool$inboundSchema),
1354
+ z.lazy(() => DataCodeExecutionTool$inboundSchema),
1355
+ ]);
1356
+
1357
+ export function getAllToolsDataFromJSON(
1358
+ jsonString: string,
1359
+ ): SafeParseResult<GetAllToolsData, SDKValidationError> {
1360
+ return safeParse(
1361
+ jsonString,
1362
+ (x) => GetAllToolsData$inboundSchema.parse(JSON.parse(x)),
1363
+ `Failed to parse 'GetAllToolsData' from JSON`,
1364
+ );
1365
+ }
1366
+
1367
+ /** @internal */
1368
+ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
1369
+ GetAllToolsResponseBody,
1370
+ z.ZodTypeDef,
1371
+ unknown
1372
+ > = z.object({
1373
+ object: GetAllToolsObject$inboundSchema,
1374
+ data: z.array(
1375
+ z.union([
1376
+ z.lazy(() => DataFunctionTool$inboundSchema),
1377
+ z.lazy(() => DataJSONSchemaTool$inboundSchema),
1378
+ z.lazy(() => DataHTTPTool$inboundSchema),
1379
+ z.lazy(() => DataMCPTool$inboundSchema),
1380
+ z.lazy(() => DataCodeExecutionTool$inboundSchema),
1381
+ ]),
1382
+ ),
1383
+ has_more: z.boolean(),
1384
+ }).transform((v) => {
1385
+ return remap$(v, {
1386
+ "has_more": "hasMore",
1387
+ });
1388
+ });
1389
+
1390
+ export function getAllToolsResponseBodyFromJSON(
1391
+ jsonString: string,
1392
+ ): SafeParseResult<GetAllToolsResponseBody, SDKValidationError> {
1393
+ return safeParse(
1394
+ jsonString,
1395
+ (x) => GetAllToolsResponseBody$inboundSchema.parse(JSON.parse(x)),
1396
+ `Failed to parse 'GetAllToolsResponseBody' from JSON`,
1397
+ );
1398
+ }